Re: question

2013-01-16 Thread hlel emna
I sent the message several times as it is urgent. I am registering on Gists, and I am looking how I add n-ary relationship but up to now no result, Please, help me.

Re: question

2013-01-16 Thread hlel emna
I add n-ary relation with this code: OntModel m= ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RULE_INF); String ns =http://www.w3.org/2002/07/owl#;; String base=http://www.w3.org/2002/07/owl;; //create classes OntClass f = m.createClass(ns+ femme ); OntClass h

Re: Import ontology using relative path

2013-01-16 Thread Andy Seaborne
On 16/01/13 10:05, iman paryudi wrote: I create ontology using Protege. This ontology is then saved at the same folder as the application. And to import the ontology, I use the following code: m.getDocumentManager().addAltEntry( http://www.myproject.com/ontologies/myproject.owl;,

Re: Now function a performance bottleneck

2013-01-16 Thread Andy Seaborne
On 16/01/13 01:02, Holger Knublauch wrote: Hi Andy, I ran a profiler through a typical scenario with our software and discovered that 10% of the clocked time was spent in the initialization of the xsd:dateTime literal needed by the afn:now() and NOW function. Below is a snapshot from Yourkit

Re: question

2013-01-16 Thread hlel emna
hi I do not think your example gist (please, how can I access it). my goal: creating a relation n-ary between date, woman, man. my code is correct??

Upgrading Jena Dependencies

2013-01-16 Thread Lewis John Mcgibbney
Hi, I've taken on a (rather dated) project which has the following jars physically stored within. -arq.jar -arq-extra.jar -iri.jar -jena.jar -virt_jena.jar -virtjdbc3.jar It should be noted that all compiled classes (inside the jar's) follow the 'com.hpl.blah.blah' package naming mechanism.

Re: Upgrading Jena Dependencies

2013-01-16 Thread Andy Seaborne
On 16/01/13 22:35, Lewis John Mcgibbney wrote: Hi, I've taken on a (rather dated) project which has the following jars physically stored within. -arq.jar -arq-extra.jar -iri.jar -jena.jar -virt_jena.jar -virtjdbc3.jar It should be noted that all compiled classes (inside the jar's) follow the

Re: Using a single quote in a SPARQL query

2013-01-16 Thread Andy Seaborne
On 16/01/13 22:02, Elli Schwarz wrote: Hello, I'm parsing a string into a SPARQL query using the following syntax: Query query = QueryFactory .create(SELECT * where {?foo ?bar 'FOO'}); String queryString = query.serialize(); System.out.println(queryString); and when the queryString is printed

Re: Now function a performance bottleneck

2013-01-16 Thread Holger Knublauch
On Jan 17, 2013, at 12:52 AM, Andy Seaborne wrote: On 16/01/13 01:02, Holger Knublauch wrote: Hi Andy, I ran a profiler through a typical scenario with our software and discovered that 10% of the clocked time was spent in the initialization of the xsd:dateTime literal needed by the

Re: question

2013-01-16 Thread Ian Dickinson
On 16/01/13 21:02, hlel emna wrote: hi I do not think your example gist (please, how can I access it). There was a problem at github earlier, but they've fixed it now. Just click on this link: https://gist.github.com/4543371 my goal: creating a relation n-ary between date, woman, man. my

Re: Now function a performance bottleneck

2013-01-16 Thread Andy Seaborne
On 16/01/13 23:24, Andy Seaborne wrote: The profile shows 140ms in Integer.toString and 15ms in calcTimezone. There is fast Integer to StringBuilder code in NumberUtils - it's used by TDB when reconstructing nodes from encoded binary values. Andy