Re: [ARQ] Programmatically add GRAPH to query

2018-12-21 Thread Andy Seaborne
1/ The data is likely wrong. Get it working with a query string in your program exactly like the tutorial. You have a graph name of in the code and in the data. The relative URIs will be resolved to absolute ones. Try using path.../src/main/resources/dataset-named-graph-1.ttl> in b

Re: [ARQ] Programmatically add GRAPH to query

2018-12-21 Thread Stefano Mariani
Hi Andy, Many thanks for your support. > To understand the algebra, I suggest looking at the code. I cloned Jena repo and I’m now looking at the jena-arq-examples module, thanks. > You don't need to manaipulate the algebra to build querys. It was in the tutorial, I thought it was more performa

Re: [ARQ] Programmatically add GRAPH to query

2018-12-20 Thread Andy Seaborne
On 19/12/2018 12:43, Stefano Mariani wrote: Hi Andy, Many thanks for your prompt reply. Mine is below. It's OpGraph for GRAPH. Thanks. Any documentation reference? To understand the algebra, I suggest looking at the code. You don't need to manaipulate the algebra to build querys. Jena

Re: [ARQ] Programmatically add GRAPH to query

2018-12-19 Thread Stefano Mariani
Hi Andy, Many thanks for your prompt reply. Mine is below. > It's OpGraph for GRAPH. Thanks. Any documentation reference? I tried the code in updated gist (lines 37-41) but I get error org.apache.jena.sparql.ARQInternalErrorException: QueryIterGraphInner.buildIterator: Not a URI or blan

Re: [ARQ] Programmatically add GRAPH to query

2018-12-19 Thread Andy Seaborne
Hi there. It's OpGraph for GRAPH. I can't see where the dataset is loaded. You don't get a "title" because the BGP is "?g dc:date ?date". Just adding it to project doesn't cause it to be set. Andy On 19/12/2018 10:58, Stefano Mariani wrote: Dear everybody, I’m learning to use Jena AR

[ARQ] Programmatically add GRAPH to query

2018-12-19 Thread Stefano Mariani
Dear everybody, I’m learning to use Jena ARQ, and I stumbled upon the following. I’m trying to re-create query q-ds-4.rq at http://jena.apache.org/tutorials/sparql_datasets.html programmatically using Sparql algebra, but I can’t find any clue in the documentation about how to add the GRAPH par