W3C home > Mailing lists > Public > www-rdf-interest@w3.org > July 2003

RE: How to handle validation of XML within an RDF document?

From: Leo Sauermann <leo@gnowsis.com>
Date: Fri, 11 Jul 2003 11:32:09 +0200
To: "'Arron Ferguson'" <geek-kit@shaw.ca>, "'Rdf-Interest'" <www-rdf-interest@w3.org>
Message-ID: <000101c3478f$4d669610$0501a8c0@ZION>


arron wrote:

> My question with all of that is how do we get past the fact that 
> the XML Schema validation is going to fail because we now have 
> unknown attributes into the tag set and unknown elements in the 
> tag set. Or is this not an issue because this RDF document is 
> really the result of a transformation done by an RDF API (kind of 
> like XSL-FO is really the result of taking some XML, running it #
> through some XSLT document which results in the XSL-FO document) 
> and all this is done *after* the validation using XML Schema?



This is not an issue, if you an application application that takes an
XML file as input and wants to transform it into RDF for further
computation.

a typical example would be:

- Accept XML input "X"
- validate "X" against XML Schema "XML-Schema-for-X"
- use XSLT stylsheet "X-2-RDF" to transform "X" into "X/RDF", so "X" is
now in the RDF/XML representation
- use Raptor/Jena/Sesame or any other RDF Tool to parse "X/RDF" for
further computing, f.e. storage or inference.


a few hints:

- "X/RDF", the rdf representation can be very similiar to the XML
representation.

- especially if you use Namespaces (which I miss in your xml-schema
example)

- you can use RDFSchema to set a similiar check in the RDF world, but
there are only few validators for this, checkout
http://athena.ics.forth.gr:9090/RDF/VRP/index.html
this is old but does the best validation you can get.

- RDF is not just a XML dialect, it is a Graph model, so everything is
expressed as "Triples", this leads to a few architectural principles. I
assume you have read the 
http://www.w3.org/TR/rdf-primer/


happy rdf'ing !
Leo Sauermann
www.gnowsis.com
Received on Friday, 11 July 2003 05:30:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:00 GMT