|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Mapping XML to RDF via XSLT: an implementation
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








