Thanks a lot Egon!
I am using the github project: hdt-java/hdt-fuseki now,
I just modified the 'fuseki_example.ttl' a little bit to make it point to two hdt files I have generated. But I got the following error message when I tried to start the fuseki with config file:
[fug2@virtuosodev11 hdt-fuseki]$ bin/hdtEndpoint.sh --config=fuseki_example.ttl
com.hp.hpl.jena.assembler.exceptions.AssemblerException: caught: Adjacency list bitmap and array should have the same size
doing:
root: file:///home/fug2/hdt-java/hdt-fuseki/fuseki_example.ttl#graph1 with type:
http://www.rdfhdt.org/fuseki#HDTGraph assembler class: class org.rdfhdt.hdtjena.HDTGraphAssembler
root: file:///home/fug2/hdt-java/hdt-fuseki/fuseki_example.ttl#dataset with type:
http://jena.hpl.hp.com/2005/11/Assembler#RDFDataset assembler class: class com.hp.hpl.jena.sparql.core.assembler.DatasetAssembler
-------------------------------------------------------------
the changed fuseki_example.ttl file is as follow:
@prefix : <#> .
@prefix fuseki: <
http://jena.apache.org/fuseki#> .
@prefix rdf: <
http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <
http://www.w3.org/2000/01/rdf-schema#> .
@prefix tdb: <
http://jena.hpl.hp.com/2008/tdb#> .
@prefix ja: <
http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix hdt: <
http://www.rdfhdt.org/fuseki#> .
[] rdf:type fuseki:Server ;
# Timeout - server-wide default: milliseconds.
# Format 1: "1000" -- 1 second timeout
# Format 2: "10000,60000" -- 10s timeout to first result, then 60s timeout for the rest of query.
# See java doc for ARQ.queryTimeout
# ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "10000" ] ;
# IMPORTANT: Import the HDT Assembler
ja:loadClass "org.rdfhdt.hdtjena.HDTGraphAssembler" ;
fuseki:services (
<#service1>
) .
# HDT Classes
hdt:HDTGraph rdfs:subClassOf ja:Graph .
## ---------------------------------------------------------------
## Create a Read-Only Dataset composed by many RDF Graphs, each from an HDT File.
<#service1> rdf:type fuseki:Service ;
fuseki:name "hdtservice" ;
fuseki:serviceQuery "query" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:dataset <#dataset> ;
.
<#dataset> rdf:type ja:RDFDataset ;
rdfs:label "Dataset" ;
ja:defaultGraph <#graph1> ;
ja:namedGraph
[ ja:graphName <
http://example.org/name1> ;
ja:graph <#graph2> ] ;
.
<#graph1> rdfs:label "RDF Graph1 from HDT file" ;
rdf:type hdt:HDTGraph ;
hdt:fileName "/export/home/SSD/BIGDATA/hdt/pc_compound_0.hdt" ;
# Optional: Keep the HDT and index in memory at all times.
# Uses more memory but it is potentially faster because avoids IO.
# hdt:keepInMemory "true" ;
.
<#graph2> rdfs:label "RDF Graph2 from HDT file" ;
rdf:type hdt:HDTGraph ;
hdt:fileName "/export/home/SSD/BIGDATA/hdt/pc_compound_1.hdt" ;
.
--
You received this message because you are subscribed to the Google Groups "BioHDT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
biohdt+un...@googlegroups.com.
To post to this group, send email to
bio...@googlegroups.com.
Visit this group at
https://groups.google.com/group/biohdt.
To view this discussion on the web visit
https://groups.google.com/d/msgid/biohdt/CAMPqvY8d_%3DZvkJ9zFwjChZ9HRuyCeQpDezqYZKX6VoU7biwncg%40mail.gmail.com.
For more options, visit
https://groups.google.com/d/optout.