Page MenuHomePhabricator

Semantic Maps does not export coordinates in RDF
Closed, DeclinedPublic

Description

Author: castagna.lists

Description:
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


Version: unspecified
Severity: normal

Details

Reference
bz33504
TitleReferenceAuthorSource BranchDest Branch
Draft: early draft of a comparison analysisrepos/search-platform/notebooks!1dcausseT355040_sholarly_articles_split_results_comparison_analysismain
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:07 AM
bzimport set Reference to bz33504.
bzimport added a subscriber: Unknown Object (MLST).

c_b_dvs wrote:

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.

c_b_dvs wrote:

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/

Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMaps/issues . We are sorry for the inconvenience.