Re: Custom SERVICE HTTP requests

2017-01-02 Thread james anderson
good afternoon; > On 2017-01-01, at 18:59, Andy Seaborne wrote: > > […] > >> >> As you might know, some triplestores (RDF4J, Dydra) provide an >> extension of the SPARQL protocol that allows sending query bindings >> separately from the query string. (Too bad it's not

Re: OR Operation

2017-01-02 Thread tina sani
Thank you Dave, Isn't there any operator we use for OR operation like we use + for AND. On Mon, Jan 2, 2017 at 6:18 PM, Dave Reynolds wrote: > On 02/01/17 14:56, tina sani wrote: > >> How can we declare/specify an Or operation in our Jena rules. For >> instance, >> if

Jena Tomee CXF issues

2017-01-02 Thread Bart van Leeuwen
Hi, When accessing my application after redeploying it in my Tomee [1] container I run into a exception which is caused by: javax.servlet.ServletException: Error processing webservice request org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:98)

Re: OR Operation

2017-01-02 Thread Dave Reynolds
On 02/01/17 14:56, tina sani wrote: How can we declare/specify an Or operation in our Jena rules. For instance, if we have something like this If ?x rdf:type emp:Managers OR ?x rdf:type emp:Programmer --> ?x rdf:type emp:Employee Expand the OR out to two rules: ?x rdf:type emp:Managers

OR Operation

2017-01-02 Thread tina sani
How can we declare/specify an Or operation in our Jena rules. For instance, if we have something like this If ?x rdf:type emp:Managers OR ?x rdf:type emp:Programmer --> ?x rdf:type emp:Employee

Re: ClosedException on calling Individual.isClass()

2017-01-02 Thread George News
On 02/01/2017 14:43, Andy Seaborne wrote: > > > On 02/01/17 12:37, George News wrote: >> Are there any kind of models available in current Jena version? I was >> storing the Dataset using TDB. Then I call getNamedModel() on the >> dataset and work with it or just with the in-memory. > > These

Re: ClosedException on calling Individual.isClass()

2017-01-02 Thread Andy Seaborne
On 02/01/17 12:37, George News wrote: Are there any kind of models available in current Jena version? I was storing the Dataset using TDB. Then I call getNamedModel() on the dataset and work with it or just with the in-memory. These don't need closing either. A graph is a stateless

Re: ClosedException on calling Individual.isClass()

2017-01-02 Thread George News
On 02/01/2017 13:57, A. Soroka wrote: >>> Since all your models seem to be in-memory then you could simply drop >>> the close(), it's not necessary here. >> >> Are there any kind of models available in current Jena version? I was >> storing the Dataset using TDB. Then I call getNamedModel() on

Re: ClosedException on calling Individual.isClass()

2017-01-02 Thread A. Soroka
>> Since all your models seem to be in-memory then you could simply drop >> the close(), it's not necessary here. > > Are there any kind of models available in current Jena version? I was storing > the Dataset using TDB. Then I call getNamedModel() on the dataset and work > with it or just with

Re: ClosedException on calling Individual.isClass()

2017-01-02 Thread George News
On 02/01/2017 13:00, Dave Reynolds wrote: >> >> Yes it does. I want to speedup things, as ontologies are not changing. >> >> >> >> true >> true >> >> >>> Does the code you haven't shown us close your OntModels somewhere? >> >> I call OntModel close on local models vars. But each

Re: ClosedException on calling Individual.isClass()

2017-01-02 Thread Dave Reynolds
On 02/01/17 11:22, George News wrote: On 02/01/2017 11:03, Dave Reynolds wrote: On 02/01/17 09:23, George News wrote: On 31/12/2016 16:42, Andy Seaborne wrote: sometime when concurrently calling the webservice Having code fragment does not help here - could it be that one request is

Re: ClosedException on calling Individual.isClass()

2017-01-02 Thread George News
On 02/01/2017 11:03, Dave Reynolds wrote: > On 02/01/17 09:23, George News wrote: >> >> On 31/12/2016 16:42, Andy Seaborne wrote: >>> sometime when concurrently calling the webservice >>> >>> Having code fragment does not help here - could it be that one >>> request is doing >>> >>>

Re: ClosedException on calling Individual.isClass()

2017-01-02 Thread Dave Reynolds
On 02/01/17 09:23, George News wrote: On 31/12/2016 16:42, Andy Seaborne wrote: sometime when concurrently calling the webservice Having code fragment does not help here - could it be that one request is doing Individual.isClass() while another is closing the model? if so, why is one

Re: Add(Sum) operation about individuals not working

2017-01-02 Thread Lorenz B.
I don't understand your question and also I don't understand the code: Is it the whole snippet? If yes, the code cannot compile... If no, show the whole code. setProperty overrides the value, but this makes sense since a team can only have one value for each league/cup. By the way, it's called

Re: ClosedException on calling Individual.isClass()

2017-01-02 Thread George News
On 31/12/2016 16:42, Andy Seaborne wrote: > >> sometime when concurrently calling the webservice > > Having code fragment does not help here - could it be that one > request is doing > > Individual.isClass() > > while another is closing the model? > > if so, why is one request closing a