Setup SNORQL with Sesame Triple Store

Download D2R Server v0.6 (alpha)

Direct link

TGZ file: http://downloads.sourceforge.net/d2rq-map/d2r-server-0.6.tar.gz?use_mirror=internode

ZIP file: http://downloads.sourceforge.net/d2rq-map/d2r-server-0.6.zip?use_mirror=transact

D2R Server page

http://www4.wiwiss.fu-berlin.de/bizer/d2r-server/

Extract the contents of the archive file. Edit the file d2r-server-0.6/webapp/snorql/snorql.js. Find the line this_endpoint = document.location.href.match(/^([^?]*)snorql\//)[1] + ‘sparql’;. Change sparql to openrdf-sesame/repositories/<repo name you want to use> (in this case I used new-nvcl for the repo name). Create the file namespaces.js in the same directory and add the following lines (namespaces taken from here for the NVCL repo):

var D2R_namespacePrefixes = {
owl2xml: ‘http://www.w3.org/2006/12/owl2-xml#’,
nvcl: ‘http://www.auscope.org/ontology/vocabs/nvcl/0.3#’,
xsd: ‘http://www.w3.org/2001/XMLSchema#’,
rdfs: ‘http://www.w3.org/2000/01/rdf-schema#’,
rdf: ‘http://www.w3.org/1999/02/22-rdf-syntax-ns#’,
skos: ‘http://www.w3.org/2004/02/skos/core#’,
owl: ‘http://www.w3.org/2002/07/owl#’,
};

Copy the directory d2r-server-0.6/webapp/snorql to the webapps directory on your server. Do chown -R tomcat55:nogroup on the webapps/snorql directory.

Fusuk with SEsame

https://wiki.duraspace.org/display/FF/Triplestore+Setup

 

Advertisements

Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: