There is well-known problem with dbPedia itself, not Jena.

See recent thread that I started,
There Andy gave a code snippet to choose explicitely RDF/XML which is
correct from dbPedia.
Use 3.1.0 rather that 3.1.1 .


2017-01-27 0:00 GMT+01:00 Paul Houle <[email protected]>:

> Hello,
>
>       I am having trouble loading the following URI from dbpedia:
>
> http://dbpedia.org/resource/David_Bowie
>
>      The Turtle returned here is ill-formed (has an en dash in a
>      prefixed name) and I want to work around it by getting the result
>      in some other language,  such as NT or JSON-LD which will hopefully
>      not be so ill-formed.   Dbpedia supports a wide range of formats,
>      such as
>
> Alternates: {"/data/David_Bowie.atom" 0.500000 {type
> application/atom+xml}}, {"/data/David_Bowie.jrdf" 0.600000 {type
> application/rdf+json}}, {"/data/David_Bowie.jsod" 0.500000 {type
> application/odata+json}}, {"/data/David_Bowie.json" 0.6
> 00000 {type application/json}}, {"/data/David_Bowie.jsonld" 0.500000
> {type application/ld+json}}, {"/data/David_Bowie.n3
> " 0.800000 {type text/n3}}, {"/data/David_Bowie.nt" 0.800000 {type
> text/rdf+n3}}, {"/data/David_Bowie.ttl" 0.700000 {type text/turtle}},
> {"/data/David_Bowie.xml" 0.950000 {type application/rdf+xml}}
>
> I try the following
>
>         Model world= RDFDataMgr.loadModel(sourceUri,Lang.JSONLD);
>
> which I imagined would work,  but it looks like it still fetches the
> Turtle and fails to parse it.  Is there an easy workaround other than
> fetching the data myself?
>
> --
>   Paul Houle
>   [email protected]
>



-- 
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

Reply via email to