When trying to create a StardocsConnection, I hit the following message:
General Exception : Could not find an appropriate view implementation of this connection for 'com.complexible.stardog.docs.StardocsConnection’.
I’m 99.99% sure that I have all the jars imported. I checked out the topic on the similar issue with ReasoningConnection, and it looked like it was solved by importing all the jars. I tried adding the jars in my gradle build file, and I also tried downloading the jars and manually adding them to my build path.
Here's what's in my code:
StardocsConnection sConn = ConnectionConfiguration
.to(dbTitle)
.server(stardogServer)
.credentials(stardogUser, stardogPw)
.connect()
.as(StardocsConnection.class);
I use an admin connection beforehand to create the database, which is done successfully - so I am connecting to the server. It fails when it gets to the StardocsConnection.
I also tried doing the StardocsConnection this way (below) and got the same issue. I've successfully used this method to create a ReasoningConnection. Again, the database is created, but it fails when it gets to .as(StardocsConnection.class).
StardocsConnection sConn = (admin.memory(dbTitle).connect())
.as(StardocsConnection.class);
--
-- --
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+unsubscribe@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
compile "com.complexible.stardog:client-http:$stardogVersion"
compile "com.complexible.stardog:server:$stardogVersion"
I also tried adding the jars that you specified manually to my build path in Eclipse from the Stardog files I have downloaded. I'm using Spring so I also have stardog-spring-4.1.jar added as so:
compile fileTree(dir: "lib-stardog", include: "*.jar")