I have a question for you.
I have a triplestore "Jena TDB" and I have read that I can set up a SPARQL endpoint for locally stored RDF data. In particular, I saw that in the literature together with Jena TDB is used Fuseki. I loaded my files rdf in Jena TDB in this way:
public void store(){
String directory = "C:\\tdb";
String source = "C:\\file1.rdf";
String source1 = "C:\\file2.rdf";
Dataset dataset = openTDB(directory);
Model tdb = loadModel(source, dataset);
dataset.addNamedModel("File1", tdb);
Model tdb1 = loadModel(source1, dataset);
dataset.addNamedModel("File2", tdb1);
tdb.close();
tdb1.close();
dataset.close();
}
public Dataset openTDB(String directory){
// open TDB dataset
Dataset dataset = TDBFactory.createDataset(directory);
return dataset;
}
public Model loadModel(String source, Dataset dataset){
Model tdb = ModelFactory.createDefaultModel();
FileManager.get().readModel( tdb, source, "RDF/XML" );
return tdb;
}
I am reading the Fuseki documentation on Apache site and this post Desktop SPARQL client for Jena (TDB)?, but I have the problem.
In particular, I have downloaded Fuseki distribution and unzipped it. Then, I opened the command prompt and I went to the folder where I unzipped fuseki. Then, I launched this command:
fuseki-server --update --mem /C://TDB
and I opened the browser on localhost:3030 address. On the browser, I can choose the dataset (in the case C://TDB) and I can launch my query, for example:
select * {graph ; { ?s ?p ?o }}
The query result is:
Error 404: Not Found
Why? What am I doing wrong?
On Desktop SPARQL client for Jena (TDB)? post, I have read that I have to run the command:
java -jar fuseki-0.1.0-server.jar --update --loc data /dataset
but I don't understand who are data and dataset. In my case, how I can know this values? Is this my error?