Jump to content

Talk:Wikibase/EntityData

Add topic
From mediawiki.org
Latest comment: 5 years ago by Samwilson in topic Get error response in JSON?

N-Triples

[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Why does it say "application/nt" when the official MIME type is ""application/n-triples" ? WikiData also uses the correct "application/n-triples" in generated HTML pages

<link rel="alternate" href="https://www.wikidata.org/wiki/Special:EntityData/P2963.nt" type="application/n-triples"/> 109.193.244.89 (talk) 08:02, 12 May 2018 (UTC)Reply

There were several errors in the list. I’ve fixed them now (I hope). Lucas Werkmeister (WMDE) (talk) 16:42, 26 November 2018 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Get error response in JSON?

[edit]

If I'm retrieving JSON of a Wikidata item it's possible to use e.g.

https://www.wikidata.org/wiki/Special:EntityData/Q123.json

and get JSON back (which is great). But if there's an error, for example:

https://www.wikidata.org/wiki/Special:EntityData/Q123foo.json

then the response is HTML. Am I missing a request parameter or something, that would mean I get the error response in JSON as well? Sam Wilson 06:11, 18 October 2019 (UTC)Reply