JS-RDF: XML Parser tests

来源:百度文库 编辑:神马文学网 时间:2024/04/20 01:22:22
XML parser testbed, part of thejs-rdf testbed. This is a local RDF installation of the Javascript XML parsercreated by Michael Houghton. In the fullness of time, this might be glued in with the RDF javascript code.
Current status: this is simply a local copy with different HTML wrapper text and an RDF-based example file in the textarea below.
Instead of using the MinXML XML subset, this page allows us to experiment with connecting js-rdf to a real XML parser.
Todo: integrate with the main RDF query demo (based on the displayDocument() function used in this demo) write a function that extracts RDF from the XML DOM and adds it into js-rdf investigate namespace support; stabilise an xml vocabulary for simple RDF triple dumps.
Type or paste XML code here, and then press "Process"

If there is an error in your document, you will receive an error report in a new window.
Otherwise, a structured definition of your document will be presented.
Also, note that, while the parser itself avoids recursion, this demonstration is recursive, so with very large documents you may experience problems.
This installation maintained by: Dan Brickleydanbri@w3.org