Last modified: 2012-12-21 23:07:16 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 T43079, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41079 - RDF export of imported vocabulary concept: problem with a blank/underscore in the term
RDF export of imported vocabulary concept: problem with a blank/underscore in...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-16 11:36 UTC by Andreas Plank
Modified: 2012-12-21 23:07 UTC (History)
3 users (show)

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


Attachments

Description Andreas Plank 2012-10-16 11:36:43 UTC
Hi,

Using SMW 1.7 our Wiki has imported vocabulary concepts that have underscores or blanks in it (http://terms.gbif.org/wiki/MediaWiki:Smw_import_biorel). The RDF export however does not correctly export the rdf:about URL. Using the Special:Export_RDF feature (http://terms.gbif.org/wiki/Special:ExportRDF/Property%3Abiorel%3Aadjacent_to) the rdf:about URL becomes "to http://terms.gbif.org/biorel/1.0/adjacent" but it should be "http://terms.gbif.org/biorel/1.0/adjacent_to". That means the RDF becomes then gibberish.

I see that the RDF exporter does not handle blanks or underscores. Can this be fixed? Thank you!

Andreas
Comment 1 Gregor Hagedorn 2012-11-26 14:11:06 UTC
Examples: the vocabulary status vs="http://www.w3.org/2003/06/sw-vocab-status/ns#" defines a "term_status". We have a proxy defined for this here:
http://terms.gbif.org/wiki/Property:vs:term_status
with the import here:
http://terms.gbif.org/wiki/MediaWiki:Smw_import_vs

However, where used, it produces broken xml, because the namespace is defined as 
xmlns:vs="status http://www.w3.org/2003/06/sw-vocab-status/ns#" (starting with "status") and the RDF is created as:

<vs:term rdf:datatype="http://www.w3.org/2001/XMLSchema#string">recommended</vs:term>

i.e. with vs:term (which does not exist) instead of vs:term_status.

We use the newest version of SMW (yet on mw 1.18, however), see http://terms.gbif.org/wiki/Special:Version

For our project, this is a blocker.
Comment 2 Markus Krötzsch 2012-11-30 12:13:10 UTC
I cannot reproduce this problem using current SMW master. I have created two test pages. One which is an exact copy of http://terms.gbif.org/wiki/MediaWiki:Smw_import_vs; the other a Property page containing the following lines:

 [[imported from::vs:term_status]]

 [[has type::String]]

 [[Term status::recommended]]

(One should add the third line in a separate edit; otherwise the type is not stored when it is read.)

The RDF export for the property page contains:

xmlns:vs="http://www.w3.org/2003/06/sw-vocab-status/ns#"

and 

<vs:term_status rdf:datatype="http://www.w3.org/2001/XMLSchema#string">recommended</vs:term_status>

as expected.
Comment 3 Andreas Plank 2012-12-21 23:07:16 UTC
In Semantic MediaWiki 1.8 this problem does not occur any more.

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


Navigation
Links