Last modified: 2013-01-08 00:28:51 UTC
The Semantic Maps extension does not export geo coordinates in RDF. For example, here is Berlin with geo coordinates (i.e. it has an "has coordinates" property): http://mapping.referata.com/wiki/Berlin There are no coordinates in the RDF export http://mapping.referata.com/wiki/Special:ExportRDF/Berlin
Source code to look at is probably here: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticMediaWiki/includes/export/
I just ran into the same problem, was able to fix it by modifying the getDataItemExpElement function SMW_Exporter.php from this: case SMWDataItem::TYPE_GEO: /// TODO return null; to this: case SMWDataItem::TYPE_GEO: $lit = new SMWExpLiteral( $dataItem->getSerialization(), 'http://www.w3.org/2001/XMLSchema#string', $dataItem ); return $lit;
Thanks for the patch Chris - I've submitted it here https://gerrit.wikimedia.org/r/#/c/22045/ Paolo: thanks for reporting
Looks like this is not fixing the issue, see comments on gerrit.
I assume that it doesn't work with the latest version of SMW and Semantic Maps from github? Is there a recommended configuration to verify that it's still broken? For background, I find that the RDF export of coordinates works with Semantic MediaWiki 1.5.6 and Semantic Maps 0.7.6.1 (http://enipedia.tudelft.nl/wiki/Special:Version), but then something broke in between that version and Semantic MediaWiki 1.7.1 and Semantic Maps 1.0 (http://enipedia.tudelft.nl/enipediaTesting/index.php/Special:Version). This is the one that I had to patch. At least with this specific setup, I can verify that it works due to property:Point showing up on http://enipedia.tudelft.nl/enipediaTesting/index.php/Special:ExportRDF/Navajo_Powerplant
The patch needs further improvements before we can accept it. See https://gerrit.wikimedia.org/r/#/c/22045/