On 26/09/2013 15:33, "Daniel Kinzler" <[email protected]> wrote:
>Am 26.09.2013 14:54, schrieb Nicholas Humfrey: >> Wikidata uses a fork of EasyRdf: >> https://github.com/Wikidata/easyrdf_lite >> >> Which should handle this correctly. > >Looks like it doesn't, but I'll investigate. > >> However I don't seem to be able to content negotiate for Turtle today. >> This is returning HTML for me now: >> curl -H 'Accept: text/turtle' http://www.wikidata.org/wiki/Q76 >> >> Does anyone have an example curl command working? > >That's because <http://www.wikidata.org/wiki/Q76> is the URI of the HTML >document. The URI of the entity itself is ><http://www.wikidata.org/entity/Q76>, >which will perform content negotiation (though you need to tell curl to >follow >redirects): > >curl -L -H 'Accept: text/turtle' http://www.wikidata.org/entity/Q76 > >The URI of the turtle representation is ><https://www.wikidata.org/wiki/Special:EntityData/Q76.n3> >(<http://www.wikidata.org/entity/Q76.ttl> will also work). Oops, yes, I did know that, sorry! Why do you prefer .n3 over .ttl? (Turtle is a W3C Candidate Recommendation and Notation3 is an incomplete super-set of RDF) nick. ----------------------------- http://www.bbc.co.uk This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. ----------------------------- _______________________________________________ Wikidata-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-l
