Hi

I'm upgrading my app. to Jena 3.4.0 , and there is a regression
reading http://xmlns.com/foaf/0.1/ .

org.apache.jena.riot.RDFDataMgr.loadGraph("http://xmlns.com/foaf/0.1/";)
org.apache.jena.riot.RiotException: Failed to determine the content
type: (URI=http://xmlns.com/foaf/0.1/ : stream=text/html)
  at org.apache.jena.riot.RDFParser.parseURI(RDFParser.java:262)
  at org.apache.jena.riot.RDFParser.parse(RDFParser.java:241)
  at org.apache.jena.riot.RDFParserBuilder.parse(RDFParserBuilder.java:417)
  at org.apache.jena.riot.RDFDataMgr.parseFromURI(RDFDataMgr.java:890)
  at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:221)
  at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:102)
  at org.apache.jena.riot.RDFDataMgr.loadGraph(RDFDataMgr.java:353)

And with Jena 3.3.0 , it gives :

res0: org.apache.jena.graph.Graph =  {foaf:knows
@http://www.w3.org/2003/06/sw-vocab-status/ns#term_status "stable";
foaf:knows @rdfs:range foaf:Person; foaf:knows @rdfs:label "knows";
foaf:knows @rdfs:isDefinedBy foaf:; foaf:knows @rdfs:domain
foaf:Person; foaf:knows @rdfs:comment "A person known by this person
(indicating some level of reciprocated interaction between the
parties)."; foaf:knows @rdf:type owl:ObjectProperty; foaf:knows
@rdf:type rdf:Property; foaf:firstName
@http://www.w3.org/2003/06/sw-vocab-status/ns#term_status "testing";
foaf:firstName @rdfs:range rdfs:Literal; foaf:firstName @rdfs:label
"firstName"; foaf:firstName @rdfs:isDefinedBy foaf:; foaf:firstName
@rdfs:domain foaf:Person; foaf:firstName @rdfs:comment "The first name
of a person."; foaf:firstName @rdf:type o...

This is related to my previous (fixed) issue about RDFDataMgr
https://issues.apache.org/jira/browse/JENA-1349

-- 
Jean-Marc Vanel
http://www.semantic-forms.cc:9111/display?displayuri=http://jmvanel.free.fr/jmv.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