- 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>
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 http://www.ilrt.bris.ac.uk/discovery/2001/09/rdf-xml-schema/ 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/ Dave
Received on Tuesday, 16 December 2003 17:23:33 UTC