RDF/XML parser. (see alsoN3/Turtle parser)
Parses an RDF/XML document, xmlDoc into an array of triples which is then returned. Input should be in xmlDocument format, e.g., created with OAT.Xml.createXmlDoc() or as a result of AJAX call of type XML. Urlis to use for prefix and is optional.
var callback = function(xmlDoc) { var triples = OAT.RDF.toTriples(xmlDoc); alert("There are " + triples.length + " triples."); } OAT.AJAX2.GET("myData.rdf", false, callback,{type:OAT.AJAX.TYPE_XML});