[Mulgara-dev] Mulgara SAIL and SPARQL tests

James Leigh james-nospam at leighnet.ca
Thu May 8 14:43:43 UTC 2008


On Thu, 2008-05-08 at 08:46 -0500, Paul Gearon wrote:
> 3 variables in the SELECT?  Do you mean in the basic graph pattern?
> ie. { ?x ?x ?x }
> 
> The fixed size was to make sure I knew what I was doing, as it isn't
> supposed to ever need more than that. I'd like to know what you did to
> exceed that boundary.
> 
> However, last night I realized that I'd been approaching this all
> wrong. I took broken code and made it work. I got too focused on
> fixing it without taking a step back to look at the operation as a
> whole. As a result I realized that this code was far too complex,
> tries to take into account too many corner cases (and fails) and is
> just badly conceived in the first place.
> 
> I've logged the issue here:
> http://mulgara.org/trac/ticket/105
> 
> The only issue here is that I have other stuff to do too, and I spent
> a lot of time on this already. If your problem can be solved by a
> tweak to the existing code, then I might just do that for now, as it
> will give me more time for other things before I get back to it.
> 
> Paul
> 

Here is the query and the local variables at the time of the exception.

James
---
SELECT
 $a
 $b
 $-anon-ctx1=file:/home/james/Projects/org.openrdf/sesame/trunk/testsuites/queryparser/sparql/target/classes/testcases-dawg/data-r2/triple-match/data-02.ttl 
FROM http://mulgara.org/local/server1# 
WHERE 
( and 
[$a $a $b $-anon-ctx1] 
[$-anon-ctx1 <mulgara:is> file:/home/james/Projects/org.openrdf/sesame/trunk/testsuites/queryparser/sparql/target/classes/testcases-dawg/data-r2/triple-match/data-02.ttl $_from]
) GIVEN 0 columns: (1 rows)


newConstraint	[$a $a $b $-anon-ctx1]	
newStore	XAStatementStoreImpl$ReadOnlyGraph  (id=524)	
equalSubject	true	
equalPredicate	true	
equalObject	false	
subject	0	
predicate	0	
object	0	
meta	0	
VAR	0	
inverseColumnOrder	[0, 1, 2, 3]	
uniqueVariables	[$a, $b]
index	3	
obj	$-anon-ctx1	


java.lang.ArrayIndexOutOfBoundsException: 2
	at org.mulgara.resolver.store.StatementStoreDuplicateResolution.<init>(StatementStoreDuplicateResolution.java:244)
	at org.mulgara.resolver.store.StatementStoreResolver.resolve(StatementStoreResolver.java:416)
	at org.mulgara.resolver.InternalResolver.resolve(InternalResolver.java:182)
	at org.mulgara.resolver.DatabaseOperationContext.resolveVariableModel(DatabaseOperationContext.java:711)
	at org.mulgara.resolver.DatabaseOperationContext.resolve(DatabaseOperationContext.java:633)
	at org.mulgara.resolver.LocalQueryResolver.resolve(LocalQueryResolver.java:203)
	at org.mulgara.resolver.DefaultConstraintHandlers$10.resolve(DefaultConstraintHandlers.java:241)
	at org.mulgara.resolver.ConstraintOperations.resolveConstraintExpression(ConstraintOperations.java:187)
	at org.mulgara.resolver.LocalQueryResolver.resolveConstraintOperation(LocalQueryResolver.java:129)
	at org.mulgara.resolver.DefaultConstraintHandlers$5.resolve(DefaultConstraintHandlers.java:171)
	at org.mulgara.resolver.ConstraintOperations.resolveConstraintExpression(ConstraintOperations.java:187)
	at org.mulgara.resolver.LocalQueryResolver.resolveE(LocalQueryResolver.java:285)
	at org.mulgara.resolver.DatabaseOperationContext.doQuery(DatabaseOperationContext.java:809)
	at org.mulgara.resolver.QueryOperation.execute(QueryOperation.java:138)
	at org.mulgara.resolver.MulgaraInternalTransaction.execute(MulgaraInternalTransaction.java:569)
	at org.mulgara.resolver.DatabaseSession.execute(DatabaseSession.java:639)
	at org.mulgara.resolver.DatabaseSession.query(DatabaseSession.java:402)
	at org.mulgara.sail.MulgaraTripleSource.evaluate(MulgaraTripleSource.java:87)
	at org.mulgara.sail.MulgaraEvaluationStrategy.evaluate(MulgaraEvaluationStrategy.java:40)
	at org.mulgara.sail.MulgaraEvaluationStrategy.evaluate(MulgaraEvaluationStrategy.java:32)
	at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:374)
	at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:335)
	at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:158)
	at org.mulgara.sail.MulgaraEvaluationStrategy.evaluate(MulgaraEvaluationStrategy.java:33)
	at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:359)
	at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:158)
	at org.mulgara.sail.MulgaraEvaluationStrategy.evaluate(MulgaraEvaluationStrategy.java:33)
	at org.mulgara.sail.MulgaraConnection.evaluate(MulgaraConnection.java:196)
	at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:46)
	at org.openrdf.repository.dataset.DatasetTupleQuery.evaluate(DatasetTupleQuery.java:28)
	at org.openrdf.query.parser.sparql.SPARQLQueryTest.runTest(SPARQLQueryTest.java:145)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:120)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)






More information about the Mulgara-dev mailing list