This doc shows the use of a simple RDF strawman dump syntax, parsed in Javascript
using a syntactic profile of XML (the minXML proposal). The Javascript MinXML parser
is used here for convenience; no endorsement or otherwise of MinXML, SML etc should be assumed. Note also that the RDF triple syntax used
here is in no way standard.
The parsed RDF in turn can be fed to the
Javascript RDF query engine. This could make a nice testbed
for looking at the tradeoffs involved in the various XML profile proposals (eg. how do we do namespaces, language-tagging, datatypes etc...?)
It should also make for a nice type-and-test query environment for RDF.
TODO:
Test on wider range of JS implementations. Works in NS4, IE4, Win and
Linux at least...
learn javascript
redesign user interface so people know what is going on!
hook this into RDFViz for display of parsed and inferred data.
integrate DAML inference example (see rules in default kb) with the toyXML example
round-tripping. Get data from triples back into the xml window
Getting started. (1) select 'append parsed data into RDF query
scratchpad' to parse and load the data. (2) select 'go' on the default
query below to query the loaded data.
Parser Options
The first textarea contains pseudo-XML triples in a simple (undocumented
:-) syntax. Second contains output of parser. There are options for
outputting the parsed data to the RDF query engine (second half of the
demo...).
The data scratchpad here contains rules and data. Triples are
represented in a simple prolog-like syntax, with {curly braces} around
URIs. Rules can also be represented -- simple subClassOf rule included
here for illustration.
To use: get the tinyProlog data, paste into the textarea below, and enter
queries / rules... You might try variations on these too...
find out who is busy...
busy(dan, Day, Hour, What)
or... list members of groups...
member(Person,Group)
or... ask about schedule of busy XML experts...
busyXML(M,D,H,W,PP,P)