If you are only interested in running queries from your application
(and not adding/removing data), an easy temporary solution would be to
use Sesame's SPARQLRepository to run queries from Stardog's HTTP
server. For this to work, you need to first start the Stardog server
from the command-line using --disable-security option:
$ ./stardog-admin --disable-security server start
You should create your database and add data using the command-line
interface as well. Then you can connect to Stardog server from you
application (using only Sesame libraries in your classpath) and run
queries as follows:
SPARQLRepository repo = new
SPARQLRepository("
http://localhost:5822/myKB/query");
repo.initialize();
RepositoryConnection conn = repo.getConnection();
TupleQueryResult result =
conn.prepareTupleQuery(QueryLanguage.SPARQL, "SELECT * {?s ?p ?o}
LIMIT 5").evaluate();
QueryResultIO.write(result, TupleQueryResultFormat.JSON, System.out);
result.close();
conn.close();
repo.shutDown();
Just replace "myKB" in the URL with the name of the database you have.
Best,
Evren