ARQ — LIMIT clause

2015-03-31 Thread Maarten van Dessel
Hi everyone, SPARQL 1.1 Query Language specifies a LIMIT clause. Eg. > CONSTRUCT { ?s pre:predicate2 ?o } > WHERE { ?s pre:predicate1 ?o } > LIMIT 1 This would result in only one statement (if a match was found). This statement can then be added to the original model. SPARQL 1.1 Update does not

Re: Programmatic SPARQL 1.1

2015-03-16 Thread Maarten van Dessel
look at parameterizedsparqlstring. That is a good place to start. > On Mar 9, 2015 6:25 PM, "Maarten van Dessel" > wrote: > >> Hi everyone, >> >> I'm already familiar with the programmatic creation of SPARQL construct

Re: Changed model

2015-03-16 Thread Maarten van Dessel
sms+fhzkge8qo...@mail.gmail.com%3E> https://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/rdf/listeners/ChangedListener.html <https://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/rdf/listeners/ChangedListener.html> > Op 16-mrt.-2015, om 10:01 heeft Maa

Changed model

2015-03-16 Thread Maarten van Dessel
Hi everyone, Is there any way to discover if an UpdateRequest (eg. "INSERT { } WHERE { }") truly changed a model after execution? There are cases where a WHERE-clause can be to restrictive, which would result in the original model. Code example of how I see the solution: Model model

Re: Programmatic SPARQL 1.1

2015-03-10 Thread Maarten van Dessel
elete- or Insert-pattern the same way I can set the Where-pattern? Or do I miss something? Greets, Maarten > Op 10-mrt.-2015, om 09:32 heeft Maarten van Dessel > het volgende geschreven: > > Hi, > > Thanks for your answer. > > Isn't there any way to avoid Stri

Re: Programmatic SPARQL 1.1

2015-03-10 Thread Maarten van Dessel
ngs. But I want to avoid this as much as possible. Thanks, Maarten > Op 9-mrt.-2015, om 23:42 heeft Trevor Donaldson het > volgende geschreven: > > Take a look at parameterizedsparqlstring. That is a good place to start. > On Mar 9, 2015 6:25 PM, "Maarten van Dessel"

Programmatic SPARQL 1.1

2015-03-09 Thread Maarten van Dessel
Hi everyone, I'm already familiar with the programmatic creation of SPARQL construct queries: Query query = new Query(); query.setQueryConstructType(); ElementGroup group = new ElementGroup(); // query.setQueryPattern(group); // set WHERE clause BasicPattern basicPattern = new BasicPattern

Re: model.empty()

2015-03-02 Thread Maarten van Dessel
code? You are probably querying from an inferencing > model that imports example.com ontology. > > On Mon, Mar 2, 2015 at 4:58 PM, Maarten van Dessel > wrote: >> Hi everyone, >> >> I'm using construct queries in a project. I want to make decisions based on >>

model.empty()

2015-03-02 Thread Maarten van Dessel
Hi everyone, I'm using construct queries in a project. I want to make decisions based on wether the constructed model contains any data. Is there any way on how this can be known? Example query: CONSTRUCT { ?person .} WHERE {

model.empty()

2015-03-02 Thread Maarten van Dessel
Hi everyone, I'm using construct queries in a project. I want to make decisions based on wether the constructed model contains any data. Is there any way on how this can be known? Example query: CONSTRUCT { ?person >