I think you want to read a Dataset: https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/riot/RDFDataMgr.html#read-org.apache.jena.query.Dataset-java.io.StringReader-java.lang.String-org.apache.jena.riot.Lang-
On Fri, 22 Nov 2019 at 16.45, Marc Agate <[email protected]> wrote: > Hi all, > > I need to build Models or Graphs from strings being a trig serialization > of a rdf resource. > I tried to do using Model.read or RDFDataMgr but both produce empty models > or graphs. > When I do the same operation with Turtle serialization, it works just fine. > > What do you think ? > > Run the following code to see that by yourself: > > > https://github.com/buda-base/editserv/blob/master/src/test/java/editservio/bdrc/edit/test/RDFDataMgrCheck.java > > Thx > > Marc >
