with /tmp/query.sparql containing the simple SPARQL query
SELECT ?s
WHERE
{
?s ?p ?o .
}
I get an IndexOutOfBoundsException:
Exception in thread "main" java.lang.IndexOutOfBoundsException: 5
at scala.collection.mutable.ResizableArray$class.apply(ResizableArray.scala:43)
at scala.collection.mutable.ArrayBuffer.apply(ArrayBuffer.scala:48)
at net.sansa_stack.query.spark.semantic.QuerySystem$$anonfun$refactorUnionQueries$1.apply$mcVI$sp(SparqlQuerySystem.scala:167)
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:160)
at net.sansa_stack.query.spark.semantic.QuerySystem.refactorUnionQueries(SparqlQuerySystem.scala:142)
at net.sansa_stack.query.spark.semantic.QuerySystem$$anonfun$run$1.apply$mcVI$sp(SparqlQuerySystem.scala:48)
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:160)
at net.sansa_stack.query.spark.semantic.QuerySystem.run(SparqlQuerySystem.scala:46)
When trying to run the QuerySystem like so
with
/tmp/query.sparql
containing the simple SPARQL queryI get an
IndexOutOfBoundsException
:Modifying the query to
at least makes the error disappear.