[
Lists Home |
Date Index |
Thread Index
]
Jonathan Borden wrote:
> At one point I'd toyed around with the idea of using <a
> href="http://relaxngcc.sourceforge.net/en/index.htm" >RELAXNGCC</a> to
> emit RDF triples from a RELAXNG schema during the process of
> validation. It looked less than trivial, so I never got around to
> actually doing it, but it would be a cool project.
>
> Along these same lines one might emit triples during the process of
> validating any other XML dialect, using RELAXNGCC, or perhaps using
> Schematron or a custom language that could generate an XSLT to do the
> work.
I made a Schematron "screen-scraper" schematron-rdf (part of the freebie
Schematron Validator
at the Topologi website) that generates RDF from an instance and a
schema: the RDF triples
point to matched nodes in the original document.
This comes from my belief that RDF/XML is utterly wrong-headed: what is
needed is
a way to take any idiomatic XML and expose the triples in it.
One thing I have been thinking of is extending Schematron to allow this:
<rule context="x">
<relation path="@name" role="z" />
...
</rule>
would establish an RDF tiple.
Cheers
Rick Jelliffe
|