com.complexible.stardog.StardogException: com.complexible.common.rdf.query.IteratorAsTupleQueryResult cannot be cast to org.openrdf.query.GraphQueryResult
at com.complexible.stardog.protocols.snarl.client.AbstractSNARLClient.graph(AbstractSNARLClient.java:219)
at com.complexible.stardog.protocols.snarl.client.AbstractSNARLClient.graph(AbstractSNARLClient.java:62)
at com.complexible.stardog.api.impl.SPECGraphQuery.execute(SPECGraphQuery.java:46)
at com.complexible.stardog.api.impl.SPECGraphQuery.execute(SPECGraphQuery.java:31)
Code snippet:
ConnectionConfiguration conConfig = ConnectionConfiguration
.to("test") // the name of the db to connect to
.credentials("admin", "admin").server("snarl://localhost:5820/") ;
// credentials to use while connecting
System.out.println("Test" + conConfig.getOptions());
Connection aConn = conConfig.connect();
String query = "Select * {?s <
http://www.w3.org/2004/02/skos/core#broader> <
http://dbpedia.org/resource/Category:Justin_Timberlake">}";
GraphQueryResult gquery = aConn.graph(query).execute();