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

Mapping XML to RDF via XSLT: an implementation

  • From: Jonathan Borden <jborden@m...>
  • To: xml-dev@l..., www-rdf-interest@w...
  • Date: Tue, 12 Sep 2000 19:17:31 -0400

xml to rdf
To support the simplified RDF syntax and mapping of colloquial XML to RDF
(http://www.openhealth.org/RDF/rdf_Syntax_and_Names.htm) I have used Dan
Connolly's rdfp.xsl as a base. This is useful to see how 'arbitrary' or
'colloquial' XML maps to a set of RDF triples, it also demonstrates how
current RDF XML serializations map to a set of RDF triples.

The XSLT is available at http://www.openhealth.org/RDF/rdfp.xsl

This mapping effects edge labelling of XML graphs and uses XPointer
generation to create URIs for XML/RDF nodes. Note that 2 forms of xpointer
generation are switched by a param, the default uses attribute values to
identify an element.

A number of examples have been scrapped from the M&S and are available in
http://www.openhealth.org/RDF/  see test5.xml -> result5.xml (actually there
are about 14 pairs).

What it doesn't yet support:

rdf:aboutEach
rdf:aboutEachAttr

Bugs:

Many I'm sure! This is a work in progress.

In developing the mapping, I've noticed an errata in the M&S, specifically

"and using this third abbreviated form as:
<rdf:RDF>
  <rdf:Description about="http://www.w3.org/Home/Lassila">
    <s:Creator>
      <s:Person about="http://www.w3.org/staffId/85740">
 <v:Name>Ora Lassila</v:Name>
 <v:Email>lassila@w...</v:Email>
      </s:Person>
    </s:Creator>
  </rdf:Description>
</rdf:RDF>
"
Note that <s:Person about="..."> needs to be changed to

<s:Person rdf:about="..."> under most any reasonable interpretation of
defaulting namespaces for attributes (my preference is strongly that *all*
rdf attributes be explicitly placed in the rdf NS).

Jonathan Borden
The Open Healthcare Group
http://www.openhealth.org



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.