Check if OntClasses are connected.

2013-05-10 Thread Rafaila Gr
Hello, I am using Jena for interacting with an ontology, and I am looking for a way to find out weather two OntClasses are connected with each other with an object property, or not. Do you know if there is a function that does that? Actually, I am looking for a way to know weather a SPARQL quer

Re: Sparql Update Delete with no explicit graph

2013-05-10 Thread Andy Seaborne
On 10/05/13 14:52, Cekov, Luchesar wrote: Hi Damian, Many thanks! The query DELETE { GRAPH ?g { ?p ?o } } WHERE { GRAPH ?g { ?p ?o } } Worked! Just to make sure I made my point: Yes my store is configured so that the default graph is union of all the named graphs.

Re: Size of Jena TDB

2013-05-10 Thread Brian McBride
On 10/05/2013 15:29, Bill Roberts wrote: I'm pretty confident that an empty TDB database does not occupy 192MB. It does on a Mac - as explained in Andy's mail a little while ago. Gosh! I just reread Andy's message. Frederic says he is using Windows 7. Brian Not sure what OS Frederic

Re: Size of Jena TDB

2013-05-10 Thread Bill Roberts
> > > I'm pretty confident that an empty TDB database does not occupy 192MB. > It does on a Mac - as explained in Andy's mail a little while ago. Not sure what OS Frederic is using. total 393216 drwxr-xr-x 29 bill staff 986 10 May 15:27 ./ drwxr-xr-x 19 bill staff 646 10 May 15

Re: Size of Jena TDB

2013-05-10 Thread Frederic Toublanc
Ok thats strange. I made a few modification and now the save time is incredibly fast and the TDB is not growing anymore. I saved 300 elements and the TDB is still at 192MB nice nice !!! Here the changes : I addes the begin write transaction before calling getDefaultModel() // Begin write transact

Re: Size of Jena TDB

2013-05-10 Thread Brian McBride
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 the updatePrope

Re: Sparql Update Delete with no explicit graph

2013-05-10 Thread Cekov, Luchesar
Hi Damian, Many thanks! The query DELETE { GRAPH ?g { ?p ?o } } WHERE { GRAPH ?g { ?p ?o } } Worked! Just to make sure I made my point: Yes my store is configured so that the default graph is union of all the named graphs. That's way I am expecting when deleting wi

Re: Size of Jena TDB

2013-05-10 Thread Frederic Toublanc
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 the updateProperty part. What is strange is that when i juste create the TDB w

Re: Size of Jena TDB

2013-05-10 Thread Frederic Toublanc
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 > Hi Frederic, > > > > sorry MegaOctet = MegaBytes (in french) > > Merci. Pas probleme. > > On my machine, Windows reports an empty TDB

Re: Size of Jena TDB

2013-05-10 Thread Andy Seaborne
On 10/05/13 14:26, Frederic Toublanc wrote: So using TDB on windows is just a bad idea ? No possible way to reduce the size of the allocated space on windows ? Running on Windows is fine - see Brian's message where he's run your code on Windows. Also, as the files grow, the holes get filled

Re: Size of Jena TDB

2013-05-10 Thread Brian McBride
Hi Frederic, > sorry MegaOctet = MegaBytes (in french) Merci. Pas probleme. On my machine, Windows reports an empty TDB directory as occupying 192KB. I have loaded 10 variations of the RDF you provided into TDB using tdbloader. At the end of this operation Windows reports the tdb directory

Re: Size of Jena TDB

2013-05-10 Thread Frederic Toublanc
So using TDB on windows is just a bad idea ? No possible way to reduce the size of the allocated space on windows ? 2013/5/10 Andy Seaborne > On 10/05/13 12:03, Bill Roberts wrote: > >> (Brian: I think the usual French word for 'byte' is 'octet', hence >> I'm assuming mo = megabyte. Frederic,

Re: Size of Jena TDB

2013-05-10 Thread Andy Seaborne
On 10/05/13 12:03, Bill Roberts wrote: (Brian: I think the usual French word for 'byte' is 'octet', hence I'm assuming mo = megabyte. Frederic, is that correct?) Frederic, my experience is that an empty TDB directory is typically about 200MB because of the default space allocated to the various

Re: Sparql Update Delete with no explicit graph

2013-05-10 Thread Damian Steer
On 10/05/13 13:13, Cekov, Luchesar wrote: > Hi there, Hi, > I started using Jena TDB and Fuseki just recently and I am trying to post > some Sparql Update Delete statements. > I am experiencing a problem when deleting with no explicit graph specified. > > DELETE { ?p ?o } WHERE {

Sparql Update Delete with no explicit graph

2013-05-10 Thread Cekov, Luchesar
Hi there, I started using Jena TDB and Fuseki just recently and I am trying to post some Sparql Update Delete statements. I am experiencing a problem when deleting with no explicit graph specified. DELETE { ?p ?o } WHERE { ?p ?o .} The above will not delete any state

Re: Size of Jena TDB

2013-05-10 Thread Frederic Toublanc
Sorry my message was too long and couldn't be sent. Here is the file with all the information : rdf and implementation methods. 2013/5/10 Bill Roberts > (Brian: I think the usual French word for 'byte' is 'octet', hence I'm > assuming mo = megabyte. Frederic, is that correct?) > > Frederic,

Re: Size of Jena TDB

2013-05-10 Thread Bill Roberts
(Brian: I think the usual French word for 'byte' is 'octet', hence I'm assuming mo = megabyte. Frederic, is that correct?) Frederic, my experience is that an empty TDB directory is typically about 200MB because of the default space allocated to the various indexes. An example with 40 million t

Re: Size of Jena TDB

2013-05-10 Thread Brian McBride
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 the folowwing question : The size of our jena TDB is increasing as hell a

AUTO: Peter Haumer is out of the office. (returning 05/13/2013)

2013-05-10 Thread Peter Haumer
I am out of the office until 05/13/2013. This is an automatic reply. I am out of the office on May 10th. Thanks and best regards, Peter Haumer. Note: This is an automated response to your message "Re: Query declared properties returns too much" sent on 05/10/2013 2:36:43 AM. This is the onl

Re: Query declared properties returns too much

2013-05-10 Thread Ian Dickinson
On 10/05/13 09:36, Michael Trosin wrote: Hi, thank you very much for the detailed explanation and the link. Now I am a little bit confused which way is better: Using listDeclaredProperties or using the self-implemented listProperties provided by David Jordan. Well, as I said in my email to David

Re: Just learning JENA

2013-05-10 Thread Michael Trosin
Hi, I think it depends on what you are going to do exactly. As a next step you can get familiar with reading data from an ontology using Jena. Also SPARQL (see SPARQL-tutorial) could be a good next step. In my opinion it is good to get some experience through "learning by doing". Simply play a lit

Re: Just learning JENA

2013-05-10 Thread Damian Steer
On 10/05/13 04:24, buttarate pinet wrote: > Hello > > My name is Mr. Pinet. Hello, > I just learning Semantic, OWL, Jena. > I created RDF file next I want to development my semantic. > How I next step? There are a number of tutorials for jena, in English, French and Portuguese:

Just learning JENA

2013-05-10 Thread buttarate pinet
Hello   My name is Mr. Pinet. I just learning Semantic, OWL, Jena. I created RDF file next I want to development my semantic. How I next step?  and I want to good Semantic Web. I hope that I got you answer to me. Thank you very much Best Regards Mr.Pinet B.

Size of Jena TDB

2013-05-10 Thread Frederic Toublanc
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 the folowwing question : The size of our jena TDB is increasing as hell and we only insert light data (2kb per element when written to

Re: Query declared properties returns too much

2013-05-10 Thread Michael Trosin
Hi, thank you very much for the detailed explanation and the link. Now I am a little bit confused which way is better: Using listDeclaredProperties or using the self-implemented listProperties provided by David Jordan. Well, I made a short example to demonstrate, what the problem is. I have an on