I am new to Jenna TDB and Fuseki. I would like to load Lehigh University
Benchmark (LUBM) data generated with their data generator (ver.1.7) in to
Fuseki. This is about 400 .owl files. The following are the steps I took
and the config file I used.
*Step 1: *I used tdbload2 to create a database and index for the data using
this command.
tdbloader2 --loc=tdb ~/Owl/*.owl
*Step 2: *I ran fuseki server using the following config file that points
to the tdb folder from step 1.
./fuseki-server --config=my-config-tdb.ttl
*Config File: *
# TDB
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
tdb:GraphTDB rdfs:subClassOf ja:Model .
## ---------------------------------------------------------------
## Updatable TDB dataset with all services enabled.
<#service_1> rdf:type fuseki:Service ;
rdfs:label "TDB Service (RW)" ;
fuseki:name "ds" ;
fuseki:serviceQuery "query" ;
fuseki:serviceQuery "sparql" ;
#fuseki:serviceUpdate "update" ;
fuseki:serviceUpload "upload" ;
fuseki:serviceReadWriteGraphStore "data" ;
# A separate read-only graph store endpoint:
fuseki:serviceReadGraphStore "get" ;
fuseki:dataset <#tdb_dataset_readwrite> ;
<#tdb_dataset_readwrite> rdf:type ja:RDFDataset ;
ja:defaultGraph <#model_inf> ;
<#model_inf> a ja:InfModel ;
ja:baseModel <#tdbGraph> ;
ja:reasoner [
ja:reasonerURL
<http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>;
];
<#tdbDataset> rdf:type tdb:DatasetTDB ;
tdb:location "tdb" ;
tdb:unionDefaultGraph true ;
<#tdbGraph> rdf:type tdb:GraphTDB ;
tdb:dataset <#tdbDataset>
However, when I run a simple query such as the one below, on fuseki-server
UI, I run out of memory. I increased the server memory up to 5GB and still
have the same issue. If I use the tdbquery command however the same query
will respond within few mili second. I am using the config file here since
I need inferencing. Is there anything that I am doing wrong? I would
really appreciate any feed back.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ub: <http://cs.uga.edu#>
SELECT *
WHERE
?s ?p ?o .
}limit 100
Kind Regards.
Benchmark (LUBM) data generated with their data generator (ver.1.7) in to
Fuseki. This is about 400 .owl files. The following are the steps I took
and the config file I used.
*Step 1: *I used tdbload2 to create a database and index for the data using
this command.
tdbloader2 --loc=tdb ~/Owl/*.owl
*Step 2: *I ran fuseki server using the following config file that points
to the tdb folder from step 1.
./fuseki-server --config=my-config-tdb.ttl
*Config File: *
# TDB
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
tdb:GraphTDB rdfs:subClassOf ja:Model .
## ---------------------------------------------------------------
## Updatable TDB dataset with all services enabled.
<#service_1> rdf:type fuseki:Service ;
rdfs:label "TDB Service (RW)" ;
fuseki:name "ds" ;
fuseki:serviceQuery "query" ;
fuseki:serviceQuery "sparql" ;
#fuseki:serviceUpdate "update" ;
fuseki:serviceUpload "upload" ;
fuseki:serviceReadWriteGraphStore "data" ;
# A separate read-only graph store endpoint:
fuseki:serviceReadGraphStore "get" ;
fuseki:dataset <#tdb_dataset_readwrite> ;
<#tdb_dataset_readwrite> rdf:type ja:RDFDataset ;
ja:defaultGraph <#model_inf> ;
<#model_inf> a ja:InfModel ;
ja:baseModel <#tdbGraph> ;
ja:reasoner [
ja:reasonerURL
<http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>;
];
<#tdbDataset> rdf:type tdb:DatasetTDB ;
tdb:location "tdb" ;
tdb:unionDefaultGraph true ;
<#tdbGraph> rdf:type tdb:GraphTDB ;
tdb:dataset <#tdbDataset>
However, when I run a simple query such as the one below, on fuseki-server
UI, I run out of memory. I increased the server memory up to 5GB and still
have the same issue. If I use the tdbquery command however the same query
will respond within few mili second. I am using the config file here since
I need inferencing. Is there anything that I am doing wrong? I would
really appreciate any feed back.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ub: <http://cs.uga.edu#>
SELECT *
WHERE
?s ?p ?o .
}limit 100
Kind Regards.