Skip to content

Instantly share code, notes, and snippets.

@bergos
Created August 23, 2015 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bergos/aeb8833f39f0049890d0 to your computer and use it in GitHub Desktop.
Save bergos/aeb8833f39f0049890d0 to your computer and use it in GitHub Desktop.
var rdf = require('rdf-ext')();
var turtleString = '' +
'@base <http://example.org/> .' +
'@prefix s: <http://schema.example.org/> .' +
'<me> s:owns ( <Apple> <Orange>).';
rdf.parseTurtle(turtleString, function (graph) {
console.log(graph.toString());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment