Paolo Ciccarese created JENA-687:
------------------------------------
Summary: Can't read JSON-LD with Named Graphs
Key: JENA-687
URL: https://issues.apache.org/jira/browse/JENA-687
Project: Apache Jena
Issue Type: Bug
Components: Jena, RIOT
Affects Versions: Jena 2.11.2
Environment: Mac, Grails
Reporter: Paolo Ciccarese
With these two lines of code:
Dataset inMemoryDataset = DatasetFactory.createMem();
RDFDataMgr.read(inMemoryDataset, new
ByteArrayInputStream(item.toString().getBytes("UTF-8")), RDFLanguages.JSONLD);
I am trying to read the following JSON-LD:
{"@context":
"https://raw2.github.com/Annotopia/AtSmartStorage/master/web-app/data/OAContext.json","@graph":
[{"@id": "urn:temp:1","@type": "rdf:Graph","@graph": {"@id":
"http://www.example.org/artifact1","label": "yolo body 1"}},{"@id":
"urn:temp:2","@type": "rdf:Graph","@graph": {"@id":
"http://www.example.org/artifact2","label": "yolo body 2"}},{"@id":
"urn:temp:3","@type": "rdf:Graph","@graph": {"@id": "urn:temp:7","@type":
"oa:Annotation","hasBody": ["urn:temp:1","urn:temp:2"],"hasTarget":
"http://paolociccarese.info"}}]}
The RIOT parser gets stuck. No exceptions, just stuck. I am sure I was able to
read the above three weeks ago.
--
This message was sent by Atlassian JIRA
(v6.2#6252)