You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Bob DuCharme <bo...@snee.com> on 2019/12/01 22:52:43 UTC
Re: arq bug?
Thanks Andy!
Bob
On 11/30/19 5:20 PM, Andy Seaborne wrote:
> There aren't any results because
>
> 1:: --data puts the contents of ex002.ttl into the default graph.
>
> 2:: FROM <ex002.ttl> picks the named graph (resolved <ex002.ttl>) from
> the underlying database ... which isn't there so it's empty.
>
> No results.
>
> If you use
>
> --namedgraph ex002.ttl
>
> or remove the FROM
>
> it works.
>
> This was a change to make all the datasets behave the same way.
>
> Andy
>
>> On 30/11/2019 18:00, Bob DuCharme wrote:
>>> An example in my book "Learning SPARQL" suggests the following
>>> command line with the query at
>>> http://learningsparql.com/2ndeditionexamples/ex007.rq :
>>>
>>> arq --query ex007.rq
>>>
>>> This worked fine as shown with Jena 3.10.0 build date
>>> 2018-12-30T15:45:57+0000 but got the Exception shown below with
>>> 3.13.1 build date 2019-10-06T18:57:39+0000. When I add --data
>>> ex002.ttl to that command line, I don't get the Exception, but it
>>> doesn't return any results either.
>>>
>>> Thanks,
>>>
>>> Bob
>>>
>>>
>>> java.lang.NullPointerException
>>> at
>>> org.apache.jena.query.QueryExecutionFactory.make(QueryExecutionFactory.java:615)
>>>
>>> at
>>> org.apache.jena.query.QueryExecutionFactory.create(QueryExecutionFactory.java:94)
>>>
>>> at arq.query.lambda$queryExec$0(query.java:224)
>>> at org.apache.jena.system.Txn.exec(Txn.java:77)
>>> at org.apache.jena.system.Txn.executeRead(Txn.java:115)
>>> at arq.query.queryExec(query.java:222)
>>> at arq.query.exec(query.java:153)
>>> at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
>>> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
>>> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
>>> at arq.arq.main(arq.java:28)
>>>