This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chmod +x /etc/init.d/joseki | |
sudo update-rc.d joseki defaults | |
# start with | |
sudo /etc/init.d/joseki start | |
# stop with | |
sudo /etc/init.d/joseki stop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
### BEGIN INIT INFO | |
# Provides: joseki | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/TDB-0.8.7 | |
bin/tdbloader --loc=/mydatasetdata -v /full/path/to/rdf/or/ttl/files/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# init tdb | |
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" . | |
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset . | |
tdb:GraphTDB rdfs:subClassOf ja:Model . | |
<#mydatasetname > rdf:type tdb:DatasetTDB ; | |
rdfs:label "My Data Set" ; | |
tdb:location "/mydatasetdata" ; # or wherever you want the data to be stored | |
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Service 3 - SPARQL processor only handling a given dataset | |
<#service3> | |
rdf:type joseki:Service ; | |
rdfs:label "My New Service" ; | |
joseki:serviceRef "myservice" ; # web.xml must route this name to Joseki | |
# dataset part | |
joseki:dataset <#mydatasetname> ; | |
# Service part. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/Joseki-3.4.2 | |
./bin/rdfserver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<servlet-mapping> | |
<servlet-name>SPARQL service processor</servlet-name> | |
<url-pattern>/myservice</url-pattern> | |
</servlet-mapping> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/Joseki-3.4.2 | |
chmod u+x bin/* | |
cd /path/to/TDB-0.8.7 | |
chmod u+x bin/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export TDBROOT="/path/to/TDB-0.8.7" | |
export JOSEKIROOT="/path/to/Joseki-3.4.2" | |
export JENAROOT="/path/to/Jena-2.6.3" | |
export PATH="$TDBROOT/bin:$JOSEKIROOT/bin:$PATH" | |
export CLASSPATH=".:$JENAROOT/lib/*.jar:$TDBROOT/lib/*.jar:$JOSEKIROOT/lib/*.jar" |