Exception in thread "main" com.complexible.stardog.StardogException: Could not find an appropriate view implementation of this connection for 'com.complexible.stardog.api.reasoning.ReasoningConnection'.
at com.complexible.stardog.api.impl.AbstractConnection.as(AbstractConnection.java:126)...
I create the connection like this:
ReasoningConnection aReasoningConn = ConnectionConfiguration
.to("myDB")
.credentials("admin", "admin")
.server("snarl://127.0.0.1:5820")
.reasoning(false).connect().as(ReasoningConnection.class);
Hi all,I am having trouble to establish a reasoning connection. I have added all client jar files in the Eclipse project but I am getting this exception:
Exception in thread "main" com.complexible.stardog.StardogException: Could not find an appropriate view implementation of this connection for 'com.complexible.stardog.api.reasoning.ReasoningConnection'.
at com.complexible.stardog.api.impl.AbstractConnection.as(AbstractConnection.java:126)...
I create the connection like this:
ReasoningConnection aReasoningConn = ConnectionConfiguration
.to("myDB")
.credentials("admin", "admin")
.server("snarl://127.0.0.1:5820")
.reasoning(false).connect().as(ReasoningConnection.class);The database was created with RDFS reasoning type.
Any ideas how to resolve this?Cheers,Valentino
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
Are all the jars needed in the client folder of the distribution?
May 04, 2015 7:30:39 PM com.complexible.stardog.protocols.server.SPECServerFunction query
SEVERE: There was an error executing query: prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix foaf: <http://xmlns.com/foaf/0.1>
sELECT * where {?a a foaf:Person} limit 50 offset 0
com.complexible.stardog.StardogException: java.lang.NullPointerException
at com.complexible.stardog.StardogKernel.getConnection(StardogKernel.java:916)
at com.complexible.stardog.protocols.server.KernelServerFunction.getConnection(KernelServerFunction.java:67)
at com.complexible.stardog.protocols.server.SPECServerFunction.query(SPECServerFunction.java:463)
at com.complexible.stardog.protocols.server.SPECServerFunction.handleMessage(SPECServerFunction.java:138)
at com.complexible.stardog.protocols.http.annex.QueryPanelEndpoint.handleMessage(QueryPanelEndpoint.java:89)
at com.complexible.common.protocols.server.rpc.ServerHandler.handleMessage(ServerHandler.java:264)
at com.complexible.common.protocols.server.rpc.ServerHandler.channelRead(ServerHandler.java:147)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:32)
at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:299)
at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.complexible.stardog.db.DatabaseException: java.lang.NullPointerException
at com.complexible.stardog.db.DatabaseImpl.connect(DatabaseImpl.java:1054)
at com.complexible.stardog.db.DatabaseImpl.openConnection(DatabaseImpl.java:969)
at com.complexible.stardog.StardogKernel.getConnection(StardogKernel.java:879)
... 13 more
Caused by: java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:213)
at com.google.common.collect.SingletonImmutableList.<init>(SingletonImmutableList.java:40)
at com.google.common.collect.ImmutableList.of(ImmutableList.java:89)
at com.clarkparsia.pellet.api.term.TermFactory.functionEval(TermFactory.java:614)
at com.clarkparsia.pellet.api.term.builtins.FunctionAtomRewriter.rewrite(FunctionAtomRewriter.java:117)
at com.clarkparsia.blackout.OrtizTermFactory.datatypeAssertion(OrtizTermFactory.java:150)
at com.clarkparsia.blackout.OrtizTermFactory.negativeDatatypeAssertion(OrtizTermFactory.java:139)
at com.clarkparsia.blackout.ClausificationVisitor.visit(ClausificationVisitor.java:277)
at com.clarkparsia.pellet.api.term.impl.axiom.DataPropertyRangeImpl.accept(DataPropertyRangeImpl.java:27)
at com.clarkparsia.blackout.ClausificationVisitor.clausify(ClausificationVisitor.java:131)
at com.clarkparsia.blackout.BlackoutUtilities$Clausifier.handle(BlackoutUtilities.java:100)
at com.clarkparsia.blackout.NormalizationVisitor.addNormalizedAxiom(NormalizationVisitor.java:107)
at com.clarkparsia.blackout.NormalizationVisitor.visit(NormalizationVisitor.java:411)
at com.clarkparsia.pellet.api.term.impl.axiom.DataPropertyRangeImpl.accept(DataPropertyRangeImpl.java:27)
at com.clarkparsia.blackout.NormalizationVisitor.normalize(NormalizationVisitor.java:103)
at com.clarkparsia.blackout.BlackoutUtilities$Clausifier.clausify(BlackoutUtilities.java:90)
at com.clarkparsia.blackout.BlackoutUtilities$Clausifier.access$100(BlackoutUtilities.java:79)
at com.clarkparsia.blackout.BlackoutUtilities.clausify(BlackoutUtilities.java:76)
at com.complexible.stardog.reasoning.blackout.BlackoutReasoner.computeState(BlackoutReasoner.java:381)
at com.complexible.stardog.reasoning.blackout.BlackoutReasoner.getState(BlackoutReasoner.java:285)
at com.complexible.stardog.reasoning.blackout.BlackoutReasoner.openConnection(BlackoutReasoner.java:180)
at com.complexible.stardog.reasoning.ConnectableReasoner.openConnection(ConnectableReasoner.java:137)
at com.complexible.stardog.reasoning.ConnectableReasoner.openConnection(ConnectableReasoner.java:35)
at com.complexible.stardog.db.DatabaseImpl.connect(DatabaseImpl.java:1044)
... 15 more
I am using just FOAF. It's causing some warnings due to non being RDFS but I would excpect to ignore non-RDFS axioms, like in 2.* versions.
Thanks, Evren. I guess I can do without those axioms for now.Any help regarding my original issue? I am still gettingException in thread "main" com.complexible.stardog.StardogException: Could not find an appropriate view implementation of this connection for 'com.complexible.stardog.api.reasoning.ReasoningConnection'.
at com.complexible.stardog.api.impl.AbstractConnection.as(AbstractConnection.java:126)although I have added ALL the client jars probably 20 times now. Can you please at least say which are the jars that cause this exception, so I can eyeball it?
StardogException: Could not find an appropriate view implementation of this connection for 'com.complexible.stardog.api.reasoning.ReasoningConnection'."
stardog-reasoning-api-4.2.jar
stardog-reasoning-shared-4.2.jar
stardog-reasoning-protocols-http-client-4.2.jar
stardog-reasoning-protocols-shared-4.2.jar
stardog-reasoning-cli-4.2.jar
stardog-reasoning-core-4.2.jar
stardog-reasoning-protocols-http-server-4.2.jar
stardog-reasoning-protocols-snarl-server-4.2.jar
stardog-reasoning-protocols-snarl-shared-4.2.jar--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
---
You received this message because you are subscribed to the Google Groups "Stardog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+unsubscribe@clarkparsia.com.
Yes. I'm sure they are there.Maybe there's too many of them and there is some kind of jar conflict?