N3/Turtle parser. (see also RDF parser)
Parses a N3/Turtle RDF document into a JavaScript array of triples which is then returned. Input should be a string containing serialized RDF.
var callback = function(string) { var triples = OAT.RDF.toTriples(string); alert("There are " + triples.length + " triples."); } OAT.AJAX.GET("myData.n3", false, callback, {type:OAT.AJAX.TYPE_TEXT});