I loaded two .nq
files into TDB using the following code:
Dataset dataset = TDBFactory.createDataset("<path to directory with .nq files>");
Model tdb = dataset.getDefaultModel();
for (File file : folder.listFiles()) {
FileManager.get().readModel(tdb, file.getPath(),"N-TRIPLES");
}
After loading the data, I ran some simple queries for labels etc. which all worked.
What I am actually interested in, however, is found in separate graphs. Unfortunately, whenever I try to access data in such a graph, the query fails. My question is similar in nature as this one (I also tried all the graph selects as the user asking the questions, but the answer the user provided does not work for me).
The following query returns no results even though there should be quite a few graphs:
SELECT * WHERE { GRAPH ?g { ?s ?p ?o }}
I am very new to TDB and not very experienced. Did I load the data incorrectly or do I have to pay attention to some detail when I do the query?
The data is public you can find it here: http://webisa.webdatacommons.org/ (scroll down until you are at Data Dumps). All the graph queries work on the public endpoint but not on my TDB data set.