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

Re: XML schema containing RDF schema

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Tue, 16 Dec 2003 22:18:00 +0000
To: Perrine Roucoux <perrine.roucoux@nist.gov>
Cc: www-rdf-interest <www-rdf-interest@w3.org>
Message-Id: <20031216221800.3205d334.dave.beckett@bristol.ac.uk>

On Tue, 16 Dec 2003 16:15:10 -0500
Perrine Roucoux <perrine.roucoux@nist.gov> wrote:
> I am working on an XML schema for a document that contains both XML
> and RDF. The RDF part has to follow an RDF schema.
> What I have for the moment is an XML schema that allows to have RDF in
> the document, using:
> <xsd:any namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
> And the RDF part has to be validated separately.
> This is not satisfying as the RDF part is mandatory in the document,
> and must validate.
> I tried to do it using:
> <xsd:element ref="rdf:RDF"/>
> So that at least I could require the RDF part to be present, but I am
> having problem with the import statement:
> I need an XML schema describing RDF for the 'schemaLocation' value of
> the <import>, and the only one I found was:
> http://www.w3.org/2000/07/rdf.xsd which uses XML schema version
> http://www.w3.org/1999/XMLSchema. As I am using XML schema version
> http://www.w3.org/2001/XMLSchema, this did not validate.
> Of course, I would like even better to be able to validate the RDF
> part with the RDF schema by using a statement in my XML schema, but I
> didn't find any way to do that.

I'm not an W3C XML Schema (WXS) expert.  I had a go in 2001, you can see
the debris at

Basically WXS isn't appropriate for loosely constrained XML markup
formats such as RDF/XML  You'll need lots of 'xsd:any's

See also http://ilrt.org/discovery/2002/01/dcxml-xsd/
and the final result http://dublincore.org/documents/dcmes-xml/

Received on Tuesday, 16 December 2003 17:23:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:48 UTC