Skip to content

Instantly share code, notes, and snippets.

# 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
.
cd /path/to/TDB-0.8.7
bin/tdbloader --loc=/mydatasetdata -v /full/path/to/rdf/or/ttl/files/
#!/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
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
@ricroberts
ricroberts / gist:657914
Created November 1, 2010 09:54
Notes on Amy Hoy's and Kelly Parkinson's Infoproducts show and tell.

Disclaimer: some of this stuff wasn’t explicitly said, it’s my interpretation of it (plus own ideas)

  • Could just write blog articles and just collect/expand them into an ebook.
  • people wouldn’t want to pay lots of times for each chapter, but it’s good to release early. Ways to get round this:
    - have a season ‘pass’ like peepcode where people can pay upfront for the whole thing or just buy one edition if that’s all they want.
    OR:
    - release book early with only one or two chapters for a cheap price, but increase the price as you add more content. Early buyers can get updates for free as they come out.
  • Make something that makes people feel better about themselves or relieves pain.
testStartAndStopEvent: function(test) {
browser.get('/events/start/1', function(res, $) {
res.should.have.status(200);
console.log(res.body); // => undefined
browser.get('/events/stop/1', function(res2, $) {
res2.should.have.status(200);
test.done();
});
});
}
@ricroberts
ricroberts / map.html
Created September 19, 2011 15:09
IMD Map Explorer Page Structure
<!doctype html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<title>IMD Map Explorer</title>
<link rel="stylesheet" type="text/css" href="stylesheets/map.css" />
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&region=GB"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="javascripts/raphael.js"></script>
</head>
@ricroberts
ricroberts / main-closure.html
Created September 19, 2011 15:38
IMD Map Explorer HTML page closure
<script type="text/javascript">
(function(){
})();
</script>
@ricroberts
ricroberts / swirrl.js
Created September 19, 2011 15:47
IMD Map Explorer swirrl namespace
// just set up the namespace, and a logger wrapper
window.swirrl = {
log: function(){
if(window.console){
window.console.log( Array.prototype.slice.call(arguments) );
}
}
};
@ricroberts
ricroberts / google-map.js
Created September 19, 2011 15:52
IMD Map Explorer map instance
var map = new google.maps.Map(document.getElementById("map_canvas"), {
zoom: 14,
center: new google.maps.LatLng(53.48, -2.245), // Manchester
mapTypeId: google.maps.MapTypeId.ROADMAP,
streetViewControl: false
});