How to refer to a DBpedia ressource ?

Following the principles of Linked Data, Resources are identified by an HTTP URI. They are dereferenceable, that is to say that one can access data describing an HTTP request by this URI. For example, the URI associated with the Louvre is http://fr.dbpedia.org/resource/Musée_du_Louvre .

Browser access

The figure below is obtained by consulting this adress with a web browser (HTML rendering).

The dereferenceable resources :

At the bottom of the page, links provide access to data in various formats:

  • RDF/XML
  • N3/Turtle
  • N-triples
  • JSON

Content negotiation

The URI identifying the resources do not directly correspond to the documents returned, they link to other addresses. This redirection depends of the type specified in the header http. By default, the web browser will ask an html file, URI http://fr.dbpedia.org/resource/Musée_du_Louvre then returns http://fr.dbpedia.org/page/Musée_du_Louvre which is an html page. The expected type can be specified using a tool like curl:

                        
                curl -H "Accept: application/rdf+xml" http://fr.dbpedia.org/resource/Musée_du_Louvre
                        
                    

The following table shows the value put in the header for the different types of available data.

  • html text/html http://fr.dbpedia.org/page/[page name]
  • XML/RDF application/rdf+xml http://fr.dbpedia.org/data/[page name].rdf
  • N-Triples (text/plain but the redirection is to html) http://fr.dbpedia.org/data/[page name].ntriples
  • N3/Turttle text/rdf+n3 http://fr.dbpedia.org/data/[page name].n3
  • JSON application/json http://fr.dbpedia.org/data/[page name].json