From: Bryan T. <br...@sy...> - 2014-10-31 10:25:49
|
Alice, The workbench choice of the "in use" namespace is recorded in java script in your browser client. That choice does not effect other workbench clients and does not effect the behavior of the various endpoints when using command line tools to query or update data in the database. Thus your command line requests are being made against a namespace that is not configured for RDR support. If you want to address a non-default bigdata namespace using curl or wget, you must use the appropriate URL for that namespace. This is all described on wiki.bigdata.com on the page for the nanoSparqlServer in the section on multi-tenancy. See http://wiki.bigdata.com/wiki/index.php/NanoSparqlServer#Multi-Tenancy_API Thanks, Bryan On Thursday, October 30, 2014, Alice Everett <ali...@ya...> wrote: > I found out an awesome feature in Bigdata called RDR and I am trying to > explore that too. Can you please let me know as to where am I going wrong > while querying RDR data (http://trac.bigdata.com/ticket/815). (My sample > RDF data, contains reification in its standard form: > http://www.w3.org/2001/sw/DataAccess/rq23/#queryReification > <http://www.w3.org/2001/sw/DataAccess/rq23/queryReification>) > Loading: > curl -X POST --data-binary 'uri=file:///home/SmallFacts.ttl' > http://192.168.145.1:9999/bigdata/sparql > (Additionally I changed my current namespace within the workbench opened > in my browser to RDR mode). > > After this I fired the following query and got the following error (Can > you please correct me as to where am I going wrong. I'll be very grateful > to you for the same): > @HP-ProBook-4430s:~/bigdataAnt$ curl -X POST > http://192.168.145.1:9999/bigdata/sparql --header > "X-BIGDATA-MAX-QUERY-MILLIS" --data-urlencode 'query=SELECT * {<<?s ?p ?o>> > ?p1 ?o1 }' -H 'Accept:application/rdr' > > SELECT * {<<?s ?p ?o>> ?p1 ?o1 } > java.util.concurrent.ExecutionException: > org.openrdf.query.QueryEvaluationException: java.lang.RuntimeException: > java.util.concurrent.ExecutionException: java.lang.RuntimeException: > java.util.concurrent.ExecutionException: java.lang.Exception: > task=ChunkTask{query=eeb24f0d-29b7-49d1-bddf-14869c463e76,bopId=4,partitionId=-1,sinkId=5,altSinkId=null}, > cause=java.util.concurrent.ExecutionException: java.lang.RuntimeException: > java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0 > at java.util.concurrent.FutureTask.report(FutureTask.java:122) > at java.util.concurrent.FutureTask.get(FutureTask.java:188) > at > com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.call(BigdataRDFContext.java:1277) > at > com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.call(BigdataRDFContext.java:503) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.openrdf.query.QueryEvaluationException: > java.lang.RuntimeException: java.util.concurrent.ExecutionException: > java.lang.RuntimeException: java.util.concurrent.ExecutionException: > java.lang.Exception: > task=ChunkTask{query=eeb24f0d-29b7-49d1-bddf-14869c463e76,bopId=4,partitionId=-1,sinkId=5,altSinkId=null}, > cause=java.util.concurrent.ExecutionException: java.lang.RuntimeException: > java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0 > at > com.bigdata.rdf.sail.Bigdata2Sesame2BindingSetIterator.hasNext(Bigdata2Sesame2BindingSetIterator.java:188) > at > org.openrdf.query.impl.TupleQueryResultImpl.hasNext(TupleQueryResultImpl.java:90) > at org.openrdf.query.QueryResultUtil.report(QueryResultUtil.java:52) > at > org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:63) > at > com.bigdata.rdf.sail.webapp.BigdataRDFContext$TupleQueryTask.doQuery(BigdataRDFContext.java:1386) > at > com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask$SparqlRestApiTask.call(BigdataRDFContext.java:1221) > at > com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask$SparqlRestApiTask.call(BigdataRDFContext.java:1171) > at > com.bigdata.rdf.task.ApiTaskForIndexManager.call(ApiTaskForIndexManager.java:67) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at > com.bigdata.rdf.task.AbstractApiTask.submitApiTask(AbstractApiTask.java:293) > ... 6 more > Caused by: java.lang.RuntimeException: > java.util.concurrent.ExecutionException: java.lang.RuntimeException: > java.util.concurrent.ExecutionException: java.lang.Exception: > task=ChunkTask{query=eeb24f0d-29b7-49d1-bddf-14869c463e76,bopId=4,partitionId=-1,sinkId=5,altSinkId=null}, > cause=java.util.concurrent.ExecutionException: java.lang.RuntimeException: > java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0 > at > com.bigdata.relation.accesspath.BlockingBuffer$BlockingIterator.checkFuture(BlockingBuffer.java:1523) > at > com.bigdata.relation.accesspath.BlockingBuffer$BlockingIterator._hasNext(BlockingBuffer.java:1710) > at > com.bigdata.relation.accesspath.BlockingBuffer$BlockingIterator.hasNext(BlockingBuffer.java:1563) > at > com.bigdata.striterator.AbstractChunkedResolverator._hasNext(AbstractChunkedResolverator.java:365) > at > com.bigdata.striterator.AbstractChunkedResolverator.hasNext(AbstractChunkedResolverator.java:341) > at > com.bigdata.rdf.sail.Bigdata2Sesame2BindingSetIterator.hasNext(Bigdata2Sesame2BindingSetIterator.java:134) > ... 15 more > Caused by: java.util.concurrent.ExecutionException: > java.lang.RuntimeException: java.util.concurrent.ExecutionException: > java.lang.Exception: > task=ChunkTask{query=eeb24f0d-29b7-49d1-bddf-14869c463e76,bopId=4,partitionId=-1,sinkId=5,altSinkId=null}, > cause=java.util.concurrent.ExecutionException: java.lang.RuntimeException: > java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0 > at java.util.concurrent.FutureTask.report(FutureTask.java:122) > at java.util.concurrent.FutureTask.get(FutureTask.java:188) > at > com.bigdata.relation.accesspath.BlockingBuffer$BlockingIterator.checkFuture(BlockingBuffer.java:1454) > ... 20 more > Caused by: java.lang.RuntimeException: > java.util.concurrent.ExecutionException: java.lang.Exception: > task=ChunkTask{query=eeb24f0d-29b7-49d1-bddf-14869c463e76,bopId=4,partitionId=-1,sinkId=5,altSinkId=null}, > cause=java.util.concurrent.ExecutionException: java.lang.RuntimeException: > java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0 > at > com.bigdata.rdf.sail.RunningQueryCloseableIterator.checkFuture(RunningQueryCloseableIterator.java:59) > at > com.bigdata.rdf.sail.RunningQueryCloseableIterator.close(RunningQueryCloseableIterator.java:73) > at > com.bigdata.rdf.sail.RunningQueryCloseableIterator.hasNext(RunningQueryCloseableIterator.java:82) > at > com.bigdata.striterator.ChunkedWrappedIterator.hasNext(ChunkedWrappedIterator.java:197) > at > com.bigdata.striterator.AbstractChunkedResolverator$ChunkConsumerTask.call(AbstractChunkedResolverator.java:222) > at > com.bigdata.striterator.AbstractChunkedResolverator$ChunkConsumerTask.call(AbstractChunkedResolverator.java:197) > > ... 4 more > Caused by: java.util.concurrent.ExecutionException: java.lang.Exception: > task=ChunkTask{query=eeb24f0d-29b7-49d1-bddf-14869c463e76,bopId=4,partitionId=-1,sinkId=5,altSinkId=null}, > cause=java.util.concurrent.ExecutionException: java.lang.RuntimeException: > java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0 > at com.bigdata.util.concurrent.Haltable.get(Haltable.java:273) > at > com.bigdata.bop.engine.AbstractRunningQuery.get(AbstractRunningQuery.java:1476) > at > com.bigdata.bop.engine.AbstractRunningQuery.get(AbstractRunningQuery.java:103) > at > com.bigdata.rdf.sail.RunningQueryCloseableIterator.checkFuture(RunningQueryCloseableIterator.java:46) > ... 9 more > Caused by: java.lang.Exception: > task=ChunkTask{query=eeb24f0d-29b7-49d1-bddf-14869c463e76,bopId=4,partitionId=-1,sinkId=5,altSinkId=null}, > cause=java.util.concurrent.ExecutionException: java.lang.RuntimeException: > java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0 > at > com.bigdata.bop.engine.ChunkedRunningQuery$ChunkTask.call(ChunkedRunningQuery.java:1335) > at > com.bigdata.bop.engine.ChunkedRunningQuery$ChunkTaskWrapper.run(ChunkedRunningQuery.java:894) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at com.bigdata.concurrent.FutureTaskMon.run(FutureTaskMon.java:63) > at > com.bigdata.bop.engine.ChunkedRunningQuery$ChunkFutureTask.run(ChunkedRunningQuery.java:789) > ... 3 more > Caused by: java.util.concurrent.ExecutionException: > java.lang.RuntimeException: java.lang.RuntimeException: > java.lang.ArrayIndexOutOfBoundsException: 0 > at java.util.concurrent.FutureTask.report(FutureTask.java:122) > at java.util.concurrent.FutureTask.get(FutureTask.java:188) > at > com.bigdata.bop.engine.ChunkedRunningQuery$ChunkTask.call(ChunkedRunningQuery.java:1315) > ... 8 more > Caused by: java.lang.RuntimeException: java.lang.RuntimeException: > java.lang.ArrayIndexOutOfBoundsException: 0 > at com.bigdata.bop.join.PipelineJoin$JoinTask.call(PipelineJoin.java:643) > at com.bigdata.bop.join.PipelineJoin$JoinTask.call(PipelineJoin.java:343) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at com.bigdata.concurrent.FutureTaskMon.run(FutureTaskMon.java:63) > at > com.bigdata.bop.engine.ChunkedRunningQuery$ChunkTask.call(ChunkedRunningQuery.java:1314) > ... 8 more > Caused by: java.lang.RuntimeException: > java.lang.ArrayIndexOutOfBoundsException: 0 > at > com.bigdata.bop.join.PipelineJoin$JoinTask$BindingSetConsumerTask.call(PipelineJoin.java:988) > at > com.bigdata.bop.join.PipelineJoin$JoinTask.consumeSource(PipelineJoin.java:700) > at com.bigdata.bop.join.PipelineJoin$JoinTask.call(PipelineJoin.java:584) > ... 12 more > Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 > at > com.bigdata.bop.join.PipelineJoin$JoinTask$BindingSetConsumerTask.reorderTasks(PipelineJoin.java:1317) > at > com.bigdata.bop.join.PipelineJoin$JoinTask$BindingSetConsumerTask.call(PipelineJoin.java:971) > ... 14 more > > -- ---- Bryan Thompson Chief Scientist & Founder SYSTAP, LLC 4501 Tower Road Greensboro, NC 27410 br...@sy... http://bigdata.com http://mapgraph.io CONFIDENTIALITY NOTICE: This email and its contents and attachments are for the sole use of the intended recipient(s) and are confidential or proprietary to SYSTAP. Any unauthorized review, use, disclosure, dissemination or copying of this email or its contents or attachments is prohibited. If you have received this communication in error, please notify the sender by reply email and permanently delete all copies of the email and its contents and attachments. |