Re: Update an existing TDB with a RDF file

2014-01-29 Thread Frederic Toublanc
Ok thx a lot :) You just have saved me a lot of time lol 2014/1/29 Martynas Jusevičius > Frederic, are you sure this hasn't been done before? I've used > JenaBean [1], but I know there are at least several other similar > projects. > > Martynas > > [1] https://code.google.com/p/jenabean/ > > On

Re: Update an existing TDB with a RDF file

2014-01-29 Thread Martynas Jusevičius
Frederic, are you sure this hasn't been done before? I've used JenaBean [1], but I know there are at least several other similar projects. Martynas [1] https://code.google.com/p/jenabean/ On Wed, Jan 29, 2014 at 2:58 PM, Frederic Toublanc wrote: > Ok thx a lot :) > > I will implement a way to m

Re: Update an existing TDB with a RDF file

2014-01-29 Thread Frederic Toublanc
Ok thx a lot :) I will implement a way to map a java object model to tripples :) 2014/1/29 Jean-Marc Vanel > For your convenience, I pasted together the first lines of both API > mentioned: > > // Make a TDB-backed dataset > String directory = "MyDatabases/Dataset1" ; > Dataset dataset = TDBFa

Re: Update an existing TDB with a RDF file

2014-01-29 Thread Jean-Marc Vanel
For your convenience, I pasted together the first lines of both API mentioned: // Make a TDB-backed dataset String directory = "MyDatabases/Dataset1" ; Dataset dataset = TDBFactory.createDataset(directory) ; dataset.begin(ReadWrite.READ) ; // Get model inside the transaction Model model = dataset.

Re: Update an existing TDB with a RDF file

2014-01-29 Thread Jean-Marc Vanel
Cher Frédéric, You just have to use the basic RDF API : http://jena.apache.org/tutorials/rdf_api.html with the TDB API : http://jena.apache.org/documentation/tdb/java_api.html Note that "update nodes" is not the right wording for what happens. An RDF model is bascally a collection of triples. So

Update an existing TDB with a RDF file

2014-01-29 Thread Frederic Toublanc
Hello there, Here is my question. I have an existing TDB containing triples. I have a RDF file and i want to update the existing TDB with the data contained in the RDF file. If nodes already exist they should be updated and new data added. Is it possible to do it with the Jena API ?