Skip to content

Instantly share code, notes, and snippets.

@antoniogarrote
Created July 5, 2012 07:26
Show Gist options
  • Save antoniogarrote/3052005 to your computer and use it in GitHub Desktop.
Save antoniogarrote/3052005 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function(){
rdfstore.create({"communication": {
"parsers": {
"text/html" : DBWidgets.RDFaParser,
"application/rdf+xml": DBWidgets.RDFParser
},
"precedences": ["text/n3", "text/turtle", "application/rdf+xml", "text/html", "application/json"] }
},
function(store) {
DBWidgets.ProxyNetworkTransport.proxyUri = "http://localhost:3000/rdfstoreproxy";
store.setNetworkTransport(DBWidgets.ProxyNetworkTransport);
sko.ready(store, function(){
sko.rdf.prefixes.set("dbontology","http://dbpedia.org/ontology/");
sko.rdf.prefixes.set("dbprop","http://dbpedia.org/property/");
sko.defaultLanguage("en");
// register classes
for(var expression in DBWidgets.toolbarController.classesList) {
sko.Class.define(expression, DBWidgets.toolbarController.classesList[expression]);
}
sko.applyBindings("#toolbar", DBWidgets.toolbarController, function(){
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment