Reading a dbPedia resource with e.g. RDFDataMgr.loadGraph() does not currently work (it used to work with Jena 3.1.1 ). Apparently this is because of the 303 redirection. Is there another call in Jena API to handle redirections and accepting RDF MIME types ?
wget --save-headers --header='Accept: application/rdf+xml' http://dbpedia.org/resource/Rome --2017-01-19 09:30:08-- http://dbpedia.org/resource/Rome Résolution de dbpedia.org (dbpedia.org)… 194.109.129.58 Connexion à dbpedia.org (dbpedia.org)|194.109.129.58|:80… connecté. requête HTTP transmise, en attente de la réponse… *303 See Other* Emplacement : http://dbpedia.org/data/Rome.xml [suivant] --2017-01-19 09:30:08-- http://dbpedia.org/data/Rome.xml Réutilisation de la connexion existante à dbpedia.org:80. requête HTTP transmise, en attente de la réponse… 200 OK Taille : 1003627 (980K) [application/rdf+xml] Enregistre : «Rome.2» less Rome.2 HTTP/1.1 200 OK Date: Thu, 19 Jan 2017 08:30:08 GMT Content-Type: application/rdf+xml; charset=UTF-8 Content-Length: 1003627 Connection: keep-alive Vary: Accept-Encoding Server: Virtuoso/07.20.3217 (Linux) i686-generic-linux-glibc212-64 VDB Expires: Thu, 26 Jan 2017 08:30:08 GMT Link: <http://creativecommons.org/licenses/by-sa/3.0/>;rel="license",< http://dbpedia.org/data/Rome.n3>; rel="alternate"; type="text/n3"; title="Structured Descriptor Document (N3/Turtle format)", < http://dbpedia.org/data/Rome.json>; rel="alternate"; type="application/json"; title="Structured Descriptor Document (RDF/JSON format)", <http://dbpedia.org/data/Rome.atom>; rel="alternate"; type="application/atom+xml"; title="OData (Atom+Feed format)", < http://dbpedia.org/data/Rome.jsod>; rel="alternate"; type="application/odata+json"; title="OData (JSON format)", < http://dbpedia.org/page/Rome>; rel="alternate"; type="text/html"; title="XHTML+RDFa", <http://dbpedia.org/resource/Rome>; rel=" http://xmlns.com/foaf/0.1/primaryTopic", <http://dbpedia.org/resource/Rome>; rev="describedby", < http://mementoarchive.lanl.gov/dbpedia/timegate/http://dbpedia.org/data/Rome.xml>; rel="timegate" X-SPARQL-default-graph: http://dbpedia.org Cache-Control: max-age=604800 Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Access-Control-Allow-Methods: GET, POST, OPTIONS Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Accept-Encoding Accept-Ranges: bytes <?xml version="1.0" encoding="utf-8" ?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" ... -- Jean-Marc Vanel Profil: http://163.172.179.125:9111/display?displayuri=http%3A%2F%2Fjmvanel.free.fr%2Fjmv.rdf%23me Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web +33 (0)6 89 16 29 52 Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui
