On 07/07/14 22:52, Arsham Mesbah wrote:
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?
The difference is that the tbdquery is simply querying the data whereas
your fuseki set up is attaching the full OWL reasoner which simply does
not scale that well.
One facility that may be of use to you is that tdbloader can do some
RDFS inferences at data load time.
Dave