Re: D2R Server and Jena TDB.

2014-07-08 Thread Frederic Toublanc
, Rational Chief Architect, Portfolio Strategy Management Distinguished Engineer | Master Inventor | Academy of Technology Toronto Lab | +1-905-413-3077 (office) | +1-416-939-5063 (mobile) From: Frederic Toublanc frederic.toubl...@telemis.com To: users users@jena.apache.org, Date: 07

D2R Server and Jena TDB.

2014-07-07 Thread Frederic Toublanc
Hello everyone, We currently have a Jena TDB and we would like to install a D2R server and connect this D2R server directly to the Jena TDB. Do i have to export the content of the whole TDB in a .rdf file and then import this to D2R server, or is there a way to use an API or a service to make my

Re: D2R Server and Jena TDB.

2014-07-07 Thread Frederic Toublanc
want to use D2R and not TDB? Claude On Mon, Jul 7, 2014 at 3:57 PM, Frederic Toublanc frederic.toubl...@telemis.com wrote: Hello everyone, We currently have a Jena TDB and we would like to install a D2R server and connect this D2R server directly to the Jena TDB. Do i have

Re: Jena listStatement

2014-06-26 Thread Frederic Toublanc
it doesn't work though. What version of Jena ARQ ? 2.10.1 2014-06-25 19:11 GMT+02:00 Andy Seaborne a...@apache.org: On 24/06/14 14:32, Frederic Toublanc wrote: mm ? Before replying last time, I used your data and your query and got a result and also I went back over previous versions (I did ask

Re: Jena listStatement

2014-06-24 Thread Frederic Toublanc
/06/14 16:21, Frederic Toublanc wrote: I have an other problem. I have : http://com.telemis.core.aim.base/ImageAnnotation/http:// www.telemis.com/2013/measure-rdf/1.0/5d08eb78-8b40-4f6f- b56b-e18cd606d223-msr a http://com.telemis.core.aim.base/ImageAnnotation

Re: Jena listStatement

2014-06-24 Thread Frederic Toublanc
/XMLSchema#string .* 2014-06-24 9:31 GMT+02:00 Frederic Toublanc frederic.toubl...@telemis.com: Thanks for the answer Andy. You want me to post my example by using prefixes ? 2014-06-23 19:41 GMT+02:00 Andy Seaborne a...@apache.org: Frederic, As your pattern requirements become more complicated

Re: Jena listStatement

2014-06-24 Thread Frederic Toublanc
ResultSetFormatter.out(System.out, resultSet, queryJena); And here is the result of the out : --- | x | seq | === --- 2014-06-24 15:25 GMT+02:00 Andy Seaborne a...@apache.org: On 24/06/14 14:07, Frederic Toublanc wrote: I modified the uri for the example that's not the case

Re: Jena listStatement

2014-06-23 Thread Frederic Toublanc
= model.listStatements(new SimpleSelector( uri, null, null ); 2014-06-23 14:09 GMT+02:00 Frederic Toublanc frederic.toubl...@telemis.com : Hello everyone, I used JenaBean to persist my java model into the TDB database. I wrote the content of the model with *model.write(System.out,N3);* and i

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 ?

Re: Update an existing TDB with a RDF file

2014-01-29 Thread Frederic Toublanc
/jenabean/ On Wed, Jan 29, 2014 at 2:58 PM, Frederic Toublanc frederic.toubl...@telemis.com wrote: Ok thx a lot :) I will implement a way to map a java object model to tripples :) 2014/1/29 Jean-Marc Vanel jeanmarc.va...@gmail.com For your convenience, I pasted together the first

Fuseki configuration

2013-09-06 Thread Frederic Toublanc
Hello, I'd like to know how i can specify the system file mode of the fuseki server when it access the TDB. I'm using the following property when initializing the TDB in java : TDB.getContext().set(SystemTDB.symFileMode, FileMode.direct); And when i use Fuseki i would like it to connect to the

Disable logs

2013-07-29 Thread Frederic Toublanc
Hello, Is there a way to disable all logs of Jena TDB ? And how to disable the debug mode ? I set this option to false, but there are still logs. TDB.getContext().set(ARQ.symLogExec, false); G - com.hp.hpl.jena.tdb.transaction.NodeTableTrans - - [Debug] nodes: commitPrepare 2013-07-29

Re: Disable logs

2013-07-29 Thread Frederic Toublanc
Ok. Yes indead we are using slf4j for our application and the logging level was set to Debug. Thanks a lot for your answer. 2013/7/29 Andy Seaborne a...@apache.org On 29/07/13 10:37, Frederic Toublanc wrote: Hello, Is there a way to disable all logs of Jena TDB ? And how to disable

Re: How to backup/restore a Jena TDB

2013-07-02 Thread Frederic Toublanc
the management console - you shouldn't do backups from another JVM (like using the Java API) or likewise you could have problems. On Mon, Jul 1, 2013 at 3:38 PM, Frederic Toublanc frederic.toubl...@telemis.com wrote: Ok i can restore the export rdf file. But is there a way to specify

Re: How to backup/restore a Jena TDB

2013-07-02 Thread Frederic Toublanc
I solved the problem by removing this line when i retrieve and store data in TDB : // Set prefix namespace model.setNsPrefix(Measure.PREFIX, Measure.getURI()+#); I still use the tdbloader.bat to restore data. Everything works fine :) Thx for ur help. 2013/7/2 Frederic Toublanc frederic.toubl

How to backup/restore a Jena TDB

2013-07-01 Thread Frederic Toublanc
Hello everyone, I'm using this code to backup a Jena TDB : FileOutputStream fos = new FileOutputStream(new File(backupFilePath)); TDBBackup.backup(new Location(tdbLocation), fos); This generate a backup.rdf file But i really dunno how to restore this backup in a new jena TDB.

Re: How to backup/restore a Jena TDB

2013-07-01 Thread Frederic Toublanc
set to support transactions. Any clue ? 2013/7/1 Frederic Toublanc frederic.toubl...@telemis.com Ok i will try that thanks a lot. 2013/7/1 Rob Walpole robkwalp...@gmail.com You can use the tdbloader or tdbloader2 script (depending on your OS) which is found in the /bin directory of your

Re: Size of Jena TDB

2013-05-14 Thread Frederic Toublanc
I'm using Jena 2.10.0 and i'm not on a virtual machine. I will create a small example of our implementation and send it to you. Thanks for answering to me so quicky !! 2013/5/14 Frederic Toublanc frederic.toubl...@telemis.com Ok this works thanks a lot. I'm still testing the behaviour

Re: Size of Jena TDB

2013-05-13 Thread Frederic Toublanc
Anyway i still have a question. Here the changes : I addes the begin write transaction before calling getDefaultModel() // Begin write transaction ds.begin(ReadWrite.WRITE); model = ds.getDefaultModel(); At the end i close the connection as follow : // End transaction ds.end(); // Close

Question about transactions

2013-05-13 Thread Frederic Toublanc
Hello everyone, I have a question concerning transactions. I dont find any answer in the documentation so here is the questions. I start a transaction like this : ds.begin(ReadWrite.write); ds.getDefaultModel(); try { ds.commit; } catch (Exception ex) { ds.abort(); } finally { ds.end();} If

Re: Question about transactions

2013-05-13 Thread Frederic Toublanc
Ok thx a lot :) Yes by everythin i meant that the JVM dies or a power failure. 2013/5/13 Andy Seaborne a...@apache.org On 13/05/13 09:37, Frederic Toublanc wrote: Hello everyone, I have a question concerning transactions. I dont find any answer in the documentation so here

Re: Question about transactions

2013-05-13 Thread Frederic Toublanc
Ok now i have an other problem. Each time i end i write transaction the size of the TDB keeps growing because of the file journal.jrnl. 2013/5/13 Frederic Toublanc frederic.toubl...@telemis.com Ok thx a lot :) Yes by everythin i meant that the JVM dies or a power failure. 2013/5/13 Andy

Re: Question about transactions

2013-05-13 Thread Frederic Toublanc
to initiate this transfer of data from the journal to the database? It may also be of interest to the application to hold off this transfer from the journal to the database until a certain point in time. -Original Message- From: Frederic Toublanc [mailto:frederic.toubl...@telemis.com

Re: Size of Jena TDB

2013-05-13 Thread Frederic Toublanc
= TDBFactory.createDataset() ; ds.begin(ReadWrite.WRITE) ; ds.begin(ReadWrite.WRITE) ; ds.commit() ; ds.commit() ; } throws an exception on the second .begin. Andy On 13/05/13 07:30, Frederic Toublanc wrote: Anyway i still have a question. Here

Re: Size of Jena TDB

2013-05-10 Thread Frederic Toublanc
, at 11:18, Brian McBride br...@epimorphics.com wrote: Hi Frederic, On 10/05/2013 09:52, Frederic Toublanc wrote: Hello everyone, I really need some info about the size of the jena TDB. We need to be sure that this triplestore will fit to our needs, can someone please answer

Re: Size of Jena TDB

2013-05-10 Thread Frederic Toublanc
example isn't complete so I can't easily run it myself. Brian [1] http://jena.apache.org/**documentation/tdb/tdb_** transactions.html#api-for-**transactionshttp://jena.apache.org/documentation/tdb/tdb_transactions.html#api-for-transactions On 10/05/2013 12:51, Frederic Toublanc wrote

Re: Size of Jena TDB

2013-05-10 Thread Frederic Toublanc
= TDBFactory.createDataset(databasePath); 2013/5/10 Frederic Toublanc frederic.toubl...@telemis.com OK thats very strange because my empty TDB is not 192kb but 192MB as u can see in the screenshot below ... [image: Images intégrées 2] 2013/5/10 Brian McBride br...@epimorphics.com Hi Frederic, sorry

Re: Size of Jena TDB

2013-05-10 Thread Frederic Toublanc
...@epimorphics.com Hi Frederic, On 10/05/2013 14:50, Frederic Toublanc wrote: Looking at your code I notice you start a transaction near the start of saveElement and then have another begin/commit on each nested call to updateProperty. Is that what you meant to do? No sorry i forgot to remove

Question about the size of the Jena TDB

2013-05-08 Thread Frederic Toublanc
Hello everyone, We are implementing a solution based on Jena and we use the standalone jena TDB. We have a problem with the size of the triplestore. Indeed, after having inserted 15 elements (2ko each one as rdf format) we noticed that the size of the TDB increased from 192mo to 216mo : 24 mo is