W3C home > Mailing lists > Public > www-rdf-interest@w3.org > August 2001

How can I validate RDF in XML docs?

From: by way of <iinmgc00@ucv.udc.es>
Date: Fri, 24 Aug 2001 07:46:54 -0400
Message-Id: <200108241148.HAA23463@tux.w3.org>
To: www-rdf-interest@w3.org
[freed from spam trap -rrs]

 Message-Id: <200108241137.NAA15929@ucv.udc.es>
 Date: Fri, 24 Aug 2001 07:37:58 -0400 (EDT)
 From: Manuel jesus Gonzalez Castro  <iinmgc00@ucv.udc.es>
 To: www-rdf-interest@w3.org

I'm trying to embed some RDF metadata in my XML documents. I use Xerces-J
XML parser to read and validate the documents, so tried the following: 

<?xml version="1.0"?>
...
<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  xsi:schemaLocation="http://www.w3.org/1999/02/22-rdf-syntax-ns#
                      http://www.w3.org/2000/07/rdf.xsd">
...                             
</rdf:RDF>

But the parser don't like the "http://www.w3.org/2000/07/rdf.xsd" XML
Schema because it's written in an older specification
("http://www.w3.org/1999/XMLSchema") than the current
("http://www.w3.org/2001/XMLSchema").

I found similar problems with the XML Schema for Dublin Core Metadata
located at
"http://dublincore.org/documents/2001/04/11/dcmes-xml/dcmes-xml-xsd.xsd".

So, 

1) Is there any XML Schema for RDF conforming the
"http://www.w3.org/2001/XMLSchema" specification?

2) If no, how can I validate an XML including RDF metadata using a XML
parser like Xerces?

Thanks in advance.

Manuel
------------------------------------------------
Manuel González
Mechanical Engineering Dep.
University of La Coruña
Spain
Received on Friday, 24 August 2001 07:48:50 GMT

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