I try to run integration test on org.eclipse.rdf4j.sail.memory.SchemaCachingRDFSInferencerMemInferencingTest gives ClassCastException. I tried fix it with different mvn command line options but with no success. I can find there are some correct compilations so it is possible but have no idea how to do it. Do you have the error as well? How to solve it?
Beginning of the stack trace is following:
Running org.eclipse.rdf4j.sail.memory.SchemaCachingRDFSInferencerMemInferencingTest
14:57:21.601 [main] ERROR exception while uploading input data
java.lang.ClassCastException: org.eclipse.rdf4j.sail.memory.model.MemLiteral cannot be cast to org.eclipse.rdf4j.model.Resource
at org.eclipse.rdf4j.sail.inferencer.fc.SchemaCachingRDFSInferencer.addRangeStatement(SchemaCachingRDFSInferencer.java:397) ~[rdf4j-storage-2.3-SNAPSHOT.jar:2.3-SNAPSHOT+32cd3d9]
at org.eclipse.rdf4j.sail.inferencer.fc.SchemaCachingRDFSInferencerConnection.processForSchemaCache(SchemaCachingRDFSInferencerConnection.java:84) ~[rdf4j-storage-2.3-SNAPSHOT.jar:2.3-SNAPSHOT+32cd3d9]
at org.eclipse.rdf4j.sail.inferencer.fc.SchemaCachingRDFSInferencerConnection.addStatement(SchemaCachingRDFSInferencerConnection.java:194) ~[rdf4j-storage-2.3-SNAPSHOT.jar:2.3-SNAPSHOT+32cd3d9]
at org.eclipse.rdf4j.sail.inferencer.fc.SchemaCachingRDFSInferencerConnection.addStatement(SchemaCachingRDFSInferencerConnection.java:184) ~[rdf4j-storage-2.3-SNAPSHOT.jar:2.3-SNAPSHOT+32cd3d9]
at org.eclipse.rdf4j.repository.sail.SailRepositoryConnection.addWithoutCommit(SailRepositoryConnection.java:363) ~[rdf4j-storage-2.3-SNAPSHOT.jar:2.3-SNAPSHOT+32cd3d9]
at org.eclipse.rdf4j.repository.base.AbstractRepositoryConnection.add(AbstractRepositoryConnection.java:509) ~[rdf4j-client-2.3-SNAPSHOT.jar:2.3-SNAPSHOT+32cd3d9]
Regards,
Jacek