Re: SPARQL Update over model

2017-02-16 Thread Julien Plu
Ok I found the trick: Dataset ds = DatasetFactory.create(); ds.addNamedModel("http://3cixty.com/cotedazur/test;, RDFDataMgr.loadModel("myfile"))); Thanks a lot for the hint!! -- Julien Plu PhD Student at Eurecom. Personal webpage: http://jplu.developpez.com FOAF file :

Re: SPARQL Update over model

2017-02-16 Thread Julien Plu
Sorry but I don't understand how to use the DatasetFactory to do what I'm looking for, is there such method that takes two parameters, one is the name of the graph and the other is the model? -- Julien Plu PhD Student at Eurecom. Personal webpage: http://jplu.developpez.com FOAF file :

Re: SPARQL Update over model

2017-02-16 Thread A. Soroka
Try starting with: https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/DatasetFactory.html (I probably should have said that to begin with.) --- A. Soroka The University of Virginia Library > On Feb 16, 2017, at 11:11 AM, Julien Plu >

Re: SPARQL Update over model

2017-02-16 Thread Julien Plu
Thanks! I will try to use https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/sparql/core/DatasetGraphBase.html seems to be what I'm looking for. -- Julien Plu PhD Student at Eurecom. Personal webpage: http://jplu.developpez.com FOAF file : http://jplu.developpez.com/julien Email

Re: SPARQL Update over model

2017-02-16 Thread A. Soroka
A model holds exactly one graph. Perhaps you want to be using a dataset [1]? --- A. Soroka The University of Virginia Library [1] https://www.w3.org/TR/rdf11-concepts/#section-dataset > On Feb 16, 2017, at 10:59 AM, Julien Plu > wrote: > > Hello, > > I'm

SPARQL Update over model

2017-02-16 Thread Julien Plu
Hello, I'm trying to make a SPARQL update query over a model, the problem is that the query has to delete a triple belonging to a specific graph: PREFIX dc: DELETE { GRAPH { <