Skip to content

Instantly share code, notes, and snippets.

<div class="post" xmlns:dc="http://purl.org/dc/terms/" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<h2 property="dc:title">SemanticJournal blog engine</h2>
<div class="post_meta">
By <span rel="dc:creator" resource="http://swirrl.com/ric.rdf#me" >Ric Roberts</span>
on <span property="dc:date" datatype="xsd:dateTime" content="2009-12-30T12:30:23+00:00" >30 Dec 2009</span>
</div>
<div class="post_content">
Sorry if I’ve introduced...
</div>
</div>
$:.unshift File.join(File.dirname(__FILE__), 'lib')
require 'capistrano/recipes/deploy/strategy/remote_cache'
module Capistrano
module Deploy
module Strategy
# Implements the deployment strategy that keeps a cached checkout of
# the source code on each remote server. Each deploy simply updates the
# cached checkout, and then does a copy from the cached copy to the
# final deployment location.
set :deploy_via, "remote_cache_with_project_root"
set :project_root, "subfolder_name"
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"
cd /path/to/Joseki-3.4.2
chmod u+x bin/*
cd /path/to/TDB-0.8.7
chmod u+x bin/*
<servlet-mapping>
<servlet-name>SPARQL service processor</servlet-name>
<url-pattern>/myservice</url-pattern>
</servlet-mapping>
cd /path/to/Joseki-3.4.2
./bin/rdfserver
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
# 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.