I have stored 80GB triples using FUSEKI 2 (latest version), which is actually a DbPedia dump. My problem happens when I run the following query. It is taking more than 5 minutes to return whereas at Snorql it takes less than one second.
SELECT (count(*) AS ?x) WHERE {
<http://dbpedia.org/resource/Finding_Nemo> rdf:type ?r2 .
?r3 ?p1 ?r2
}
My machine is 16GB RAM and I guess I am missing some configuration. I fear this query is doing some reasoning in the background. I do appreciate any help.
My configuration file is:
@prefix : <http://base/#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix fuseki: <http://jena.apache.org/fuseki#> .
:service_tdb_all a fuseki:Service;rdfs:label"TDB DBPEDIA";fuseki:dataset:tdb_dataset_readwrite;fuseki:name"DBPEDIA";fuseki:serviceQuery"query","sparql";fuseki:serviceReadGraphStore"get";fuseki:serviceReadWriteGraphStore"data";fuseki:serviceUpdate"update";fuseki:serviceUpload"upload".:
tdb_dataset_readwrite
a tdb:DatasetTDB;tdb:location"apache-jena-fuseki-2.5.0/run/databases/DBPEDIA".