Vahurzpu created this task. Vahurzpu added a project: Wikidata. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION A user pointed out on the Project Chat (link <https://www.wikidata.org/wiki/Wikidata:Project_chat#Your_data_isn't_rdfxml?>, permalink <https://www.wikidata.org/w/index.php?title=Wikidata:Project_chat&oldid=1180906455#Your_data_isn't_rdfxml?>) that the current RDF exports are not valid RDF. Specifically, running the following code (with rdflib 4.2.2): G = rdflib.Graph() G.load('https://www.wikidata.org/wiki/Special:EntityData/Q42.rdf') produces the error rdflib.exceptions.ParserError: https://www.wikidata.org/wiki/Special:EntityData/Q42.rdf:5125:2: rdf:nodeID value is not a valid NCName: 3d66a9a972a16b3583effd41e5f2aff4 The RDF specification states that a nodeID should have type rdf-id <https://www.w3.org/TR/rdf-syntax-grammar/#nodeIdAttr>, rdf-id is equivalent to NCName <https://www.w3.org/TR/rdf-syntax-grammar/#rdf-id>, and NCNames cannot start with numbers. It seems that prepending a letter should fix this issue. TASK DETAIL https://phabricator.wikimedia.org/T252731 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Vahurzpu Cc: Vahurzpu, Aklapper, darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
