https://bugzilla.wikimedia.org/show_bug.cgi?id=17953
Summary: rdf export does not generate valid XML
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: Normal
Component: Semantic MediaWiki
AssignedTo: [email protected]
ReportedBy: [email protected]
I go to the following URL:
http://wikis.company.com/wiki_instance/index.php/Special:ExportRDF/Namespace:Random_Page
And the XML that is generated is malformed. It appears that any tags that use
the dublin core namespace are not printed.
<swivt:Subject rdf:about="&wiki;Foobar">
...
< rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Author Name</>
< rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Title</>
...
As you might guess, those lines ought to look like this:
<dc:author rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Author
Name</dc:author>
<dc:title
rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Title</dc:title>
Upgrading from 1.3 to 1.4.2 caused this problem. We can't downgrade because we
really need the JSON export, but we need the rdf for backwards compatibility as
well.
We are running:
Apache 2
PHP 5
MedaWiki 1.14.0
SMW 1.4.2
Ubuntu
Digging through the code, I noticed that $property->getQName() inside the
printExpData(...) function (in SMW_SpecialOWLExport.php) is returning a blank
string for any DC tags. Unfortunately, I am not familiar with the codebase,
and I spent a long time spinning my wheels, trying to figure out where that
object gets constructed, with no success.
I should mention that we ran all of the command-line maintenance tools,
including the upgrade script and the one that rebuilds all of the semantic data
once we upgraded to 1.4.2. Other than this one issue, SMW / MW seem to
function as expected.
As I mentioned earlier, this behavior started upon upgrading from SMW 1.3 to
1.4.2 and is not present in 1.3. This bug is causing us a great deal of pain;
any assistance the developers might be able to offer would be greatly
appreciated.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l