<div dir="ltr"><div>Hi,</div><div><br></div><div>After looking at the RDF format closely, I am asking if the item, statement and reference IRIs could/should be directly resolvable to XML/JSON formatted resources.  </div><div><br></div><div>It seems that currently <a href="http://www.wikidata.org/entity/..">http://www.wikidata.org/entity/..</a>.. redirects to the UI at <a href="https://www.wikidata.org/wiki/">https://www.wikidata.org/wiki/</a> which is not what a machine reader would expect.</div><div>Without a simple method to resolve the IRIs (perhaps a RESTful API?), these RDF data objects are opaque for parsers.<br></div><div><br></div><div>Of course, with wbgetclaims, it is possible to get the statement like this:</div><div><a href="https://www.wikidata.org/w/api.php?action=wbgetclaims&format=xml&claim=Q20913766%24CD281698-E1D0-43A1-BEEA-E2A60E5A88F1" target="_blank">https://www.wikidata.org/w/api.php?action=wbgetclaims&format=xml&claim=Q20913766%24CD281698-E1D0-43A1-BEEA-E2A60E5A88F1</a></div><div><br></div><div>but the API expected GUID format does not match the RDF UUID representation (there is a $ or "%24" after the item instead of a -) and it returns both the statement and the references.  </div><div><br></div><div>Since the reference is its own node in the RDF,  it can be queried independently.  For example, to ask "return all of the statements where reference R is bound."  But then, the return value is a list of statement IDs and a subquery or separate query is then required to return the associated statement node. </div><div><br></div><div>I am also wondering why item, statement and reference "UUIDs" are not in canonical format in the RDF.  This is a question of compliance with IETF guidelines, which may or may not be relevant.</div><div><br></div><div>Item: Q20913766<br></div><div>Statement: Q20913766-CD281698-E1D0-43A1-BEEA-E2A60E5A88F1<br></div><div>Reference: 39f3ce979f9d84a0ebf09abe1702bf22326695e9<br></div><div><br></div><div>See: <a href="https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format" target="_blank">https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format</a><br></div><div>See: <a href="http://www.iana.org/assignments/urn-namespaces/urn-namespaces.xhtml" target="_blank">http://www.iana.org/assignments/urn-namespaces/urn-namespaces.xhtml</a> and <a href="http://tools.ietf.org/html/rfc4122" target="_blank">http://tools.ietf.org/html/rfc4122</a> for information on urn:uuid guidelines.</div><div><br></div><div>Thanks for your feedback,</div><div>Christopher</div></div>