Looks like a dup of
SES-428.
Quite right, well spotted, thanks. I'll look into what's available on the 3.0 branch and see about backporting it to Sesame 2 ok?
This can already be done with the ContextAwareRepository, by providing the null context as the only readContext.
The HTTP protocol has been extended to support the string "null" in graph parameter values as a token to indicate the null context in revision 11681.
ContextAwareConnection con = new ContextAwareConnection(testCon);
URI defaultGraph = null; // null context
con.setReadContexts(defaultGraph);
con.setInsertContext(defaultGraph);
con.setRemoveContexts(defaultGraph);
// any further operations on con (w/o an explicit context)
// will operate on the null context exclusively.
I am not quite sure what the exact cause is, but I am reopening this issue for you to take another look, because the build is currently broken. The following tests currently fail in the build:
>>> org.openrdf.repository.http.RDFSchemaHTTPRepositoryConnectionTest.testDefaultContext 2.187 4
>>> org.openrdf.repository.http.RDFSchemaHTTPRepositoryConnectionTest.testDefaultInsertContext 1.936 4
>>> org.openrdf.repository.http.RDFSchemaHTTPRepositoryConnectionTest.testExclusiveNullContext
>>> org.openrdf.repository.http.RDFSchemaHTTPRepositoryConnectionTest.testExclusiveNullContext 2.992 1
>>> org.openrdf.repository.sail.memory.RDFSchemaMemoryRepositoryConnectionTest.testExclusiveNullContext 0.02 1
>>> org.openrdf.repository.sail.nativerdf.RDFSchemaNativeRepositoryConnectionTest.testExclusiveNullContext 0.026 1
>>> org.openrdf.repository.sail.memory.RDFSchemaMemoryRepositoryConnectionTest.testDefaultContext 0.027 2
>>> org.openrdf.repository.sail.memory.RDFSchemaMemoryRepositoryConnectionTest.testDefaultInsertContext 0.01 2
>>> org.openrdf.repository.sail.nativerdf.RDFSchemaNativeRepositoryConnectionTest.testDefaultContext 0.037 2
>>> org.openrdf.repository.sail.nativerdf.RDFSchemaNativeRepositoryConnectionTest.testDefaultInsertContext 0.02 2
Can you check what's going on?
Thanks, those tests don't consider inferencing in the expected number of results. I will adjust the assertions.
I disabled the tests for RDF Schema repositories