Last modified: 2013-01-08 00:28:51 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 T35504, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33504 - Semantic Maps does not export coordinates in RDF
Semantic Maps does not export coordinates in RDF
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
SemanticMaps (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-04 09:32 UTC by Paolo Castagna
Modified: 2013-01-08 00:28 UTC (History)
4 users (show)

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


Attachments

Description Paolo Castagna 2012-01-04 09:32: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
Comment 1 Paolo Castagna 2012-01-04 10:39:08 UTC
Source code to look at is probably here: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticMediaWiki/includes/export/
Comment 2 Chris Davis 2012-08-30 12:32:03 UTC
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;
Comment 3 Jeroen De Dauw 2012-08-30 16:47:33 UTC
Thanks for the patch Chris - I've submitted it here https://gerrit.wikimedia.org/r/#/c/22045/

Paolo: thanks for reporting
Comment 4 Jeroen De Dauw 2012-08-30 21:45:04 UTC
Looks like this is not fixing the issue, see comments on gerrit.
Comment 5 Chris Davis 2012-08-31 06:42:12 UTC
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
Comment 6 Jeroen De Dauw 2013-01-08 00:28:51 UTC
The patch needs further improvements before we can accept it. See https://gerrit.wikimedia.org/r/#/c/22045/

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


Navigation
Links