[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XML parser in Javascript for RDF app? (feasible?)

  • From: Dan Brickley <Daniel.Brickley@b...>
  • To: "'xml-dev@i...'" <xml-dev@i...>
  • Date: Thu, 9 Dec 1999 22:24:13 +0000 (GMT)

javascript parse xml

XMLists,

Some time ago I remember a posting about there being an XML parser
(presumable an SMLish subset?) available that was written in
Javascript. Perhaps I hallucinated this! If not, I'd love to know where
this work is up to, whether available opensource etc.

Context:
We have some RDF query / logic demos now in Javascript, that work in
many pre-XML Javascript environments. The current implementation uses a
simple text representation of RDF data graphs instead of an XML
serialisation - I'm thinking it *might* be possible to actually parse
serialised graphs from XML in Javascript, using one of the various XML
graph serialisation syntaxes (RDF, BizTalk etc etc). Hence the interest in
an XML parser in Javascript...

I'm confident we can show simple RDF query and inference stuff
clientside in Javascript, eg. for decision support apps. What I'm
worried about is syntax, ie. prospects for parsing data graphs from XML
clientside in 100% Javascript.

(For the curious, this is based on Jan Grant's cute Javascript/Prolog
hack, http://rdf.desire.org/~cmjg/test/prolog.html -- I just glued it
together for rdf and made up the examples.)

There's an installation running as a part of a discussion doc I put
together as background context on RDF's origins... see:

js rdf query demo:  	http://www.w3.org/1999/11/11-WWWProposal/rdfqdemo.html
which is part of:	http://www.w3.org/1999/11/11-WWWProposal/

thanks for any tips on the XML/js front,

cheers,

Dan

ps. bug reports offlist please! this stuff doesn't run everywhere yet...

pps. non-XML data fragment follows. Clearly I'm using the wrong kinds of
brackets; suggestions welcomed... curly braces indicate a URI in the
current hack..., ie we have: 
	{relation-type-URI} ({objectURI}, {value} ).

We can parse this stuff in Javascript. I'd rather use XML instead but am
not sure if this is feasible... (bait for the SMLers... ;-)


Excerpts from: 	http://www.w3.org/1999/11/11-WWWProposal/rdfqdemo.html

{http://www.w3.org/1999/02/22-rdf-syntax-ns#type}
({http://www.w3.org/History/1989/proposal.html}
,{http://www.w3.org/1999/11/11-WWWProposal/vocab.rdf#Document}).

{http://purl.org/dc/elements/1.0/Title}
({http://www.w3.org/History/1989/proposal.html} , 
"Information Management: A Proposal").

{http://www.w3.org/1999/02/22-rdf-syntax-ns#type}
({http://www.w3.org/People/all#timbl%40w3.org}
,{http://www.w3.org/1999/11/11-WWWProposal/vocab.rdf#Person}).

{http://purl.org/dc/elements/1.0/Creator}
({http://www.w3.org/History/1989/proposal.html}
,{http://www.w3.org/People/all#timbl%40w3.org}).

{http://purl.org/dc/elements/1.0/Description}
({http://www.w3.org/History/1989/proposal.html} , 
"This proposal concerns the [...etc] ").


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



  • References:
    • VBScript error
      • From: "Srinivasan, Veeraraghavan (AZ15)" <Veeraraghavan.Srinivasan@i...>

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.