Last modified: 2013-01-21 15:25:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45620, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43620 - Semantic Maps Query via Ask API causes exception
Semantic Maps Query via Ask API causes exception
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticMaps (Other open bugs)
master
All All
: Unprioritized major (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-03 20:52 UTC by Jamie Thingelstad
Modified: 2013-01-21 15:25 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jamie Thingelstad 2013-01-03 20:52:44 UTC
First, I'm not clear at all if this is a bug in Semantic MediaWiki or in Semantic Maps. It could be either.

I'm using the Ask API to retrieve items from a wiki that have coordinates properties attached. The query is

http://roadsignmath.com/w/api.php?action=ask&query=%5B%5BCategory:Signs%5D%5D%5B%5BCoordinates::%2B%5D%5D%7C%3FCoordinates%7Climit=10

This throws an exception:

<?xml version="1.0"?>
<api>
  <error code="internal_api_error_MWException" info="Exception Caught: There is no result format for &#039;map&#039;." xml:space="preserve">

#0 /srv/www/mediawiki/public_html/w/extensions/SemanticMediaWiki/includes/params/SMW_ParamFormat.php(143): SMWQueryProcessor::getResultPrinter('map')
#1 /srv/www/mediawiki/public_html/w/extensions/Validator/includes/definitions/ParamDefinition.php(719): SMWParamFormat->formatValue('auto', Object(Param), Array, Array)
#2 /srv/www/mediawiki/public_html/w/extensions/Validator/includes/Param.php(213): ParamDefinition->format(Object(Param), Array, Array)
#3 /srv/www/mediawiki/public_html/w/extensions/Validator/includes/Validator.php(341): Param->format(Array, Array, Object(ValidatorOptions))
#4 /srv/www/mediawiki/public_html/w/extensions/Validator/includes/Validator.php(281): Validator->doParamProcessing()
#5 /srv/www/mediawiki/public_html/w/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php(59): Validator->validateParameters()
#6 /srv/www/mediawiki/public_html/w/extensions/SemanticMediaWiki/includes/api/ApiSMWQuery.php(51): SMWQueryProcessor::getProcessedParams(Array, Array)
#7 /srv/www/mediawiki/public_html/w/extensions/SemanticMediaWiki/includes/api/ApiAsk.php(46): ApiSMWQuery->getQuery('[[Category:Sign...', Array)
#8 /srv/www/mediawiki/public_html/w/includes/api/ApiMain.php(814): ApiAsk->execute()
#9 /srv/www/mediawiki/public_html/w/includes/api/ApiMain.php(369): ApiMain->executeAction()
#10 /srv/www/mediawiki/public_html/w/includes/api/ApiMain.php(347): ApiMain->executeActionWithErrorHandling()
#11 /srv/www/mediawiki/public_html/w/api.php(77): ApiMain->execute()
#12 {main}

</error>
</api>

I'm using the current master branch off of Git for both Semantic Maps and Maps. I'm using Semantic MediaWiki 1.8 and MediaWiki 1.20.2.

I am able to get around the exception if I pass "%7Cformat=json" along with the query parameter:

http://roadsignmath.com/w/api.php?action=ask&query=%5B%5BCategory:Signs%5D%5D%5B%5BCoordinates::%2B%5D%5D%7C%3FCoordinates%7Climit=10%7Cformat=json
Comment 1 Jeroen De Dauw 2013-01-08 22:08:47 UTC
I can no longer reproduce this on master, so I think it has been fixed. Can you confirm?
Comment 2 Jamie Thingelstad 2013-01-21 15:25:27 UTC
I upgraded to Semantic Maps 6f4d86358db4bf9b6e098b90f8ea01fb7474cbea and that query now works properly. Confirmed. Thanks.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links