Overview#
I had an opportunity to retrieve RDF data from Wikidata entity URIs, so here are my notes.
Without Content Negotiation#
First, make a request with empty headers as follows.
In this case, you can retrieve text data in JSON format as follows.
However, the desired RDF data cannot be obtained this way.
Using Content Negotiation#
Next, specify RDF/XML in the headers.
As a result, RDF data was successfully retrieved as follows.
Summary#
There may be some misunderstandings on my part, but I hope this serves as a helpful reference.