Re: RDF and RDFS Schemas?

* Sandro Hawke <sandro@w3.org> [2005-01-12 16:21-0500]
> 
> 
> > I'd like to hand-build some RDF/RDFS test cases using an XML Editor =
> > (e.g., XMLSpy) but - much to my surprise - I haven't been able to find =
> > an XML Schema (or even a DTD) for either of these.  (Or nothing recent =
> > anyway - I found "attempts" at creating XML Schemas for RDF but they're =
> > all over 5 years old.) =20
> > 
> > My first question is: Does anybody have, or know where I can locate, an =
> > XML Schema (or DTD) for RDF and RDFS (and perhaps OWL)?  My second =
> > question is more general: why is it so difficult to find these things?  =
> > I would think they'd be available on W3.org smack-dab in the middle of =
> > the RDF project material where they'd be easy to find.
> 
> The short answer is that it's not possible to make an XML Schema or
> DTD for RDF in general.  I'm not sure how to explain why not, but it
> may be clear if you think about how RDF/XML doesn't constrain much;
> almost any XML inside an rdf:RDF element is valid RDF/XML.   So a DTD
> wouldn't help much, even if one could be written.
 
http://www.w3.org/TR/rdf-syntax-grammar/#section-Schemas
has a relax-ng schema, right there in the RDF syntax spec. 

It captures something of the RDF syntax rules, probably not everything, 
and is ignorant of errors that occur within the RDF graph structures. 
But I believe folks have found it useful (eg. there's some EMACS thingie
that checks your syntax as you edit). There are W3C XML Schema versions 
floating around too, though I think they capture a little less.

Dan

> Try looking instead for "RDF Authoring Tools" and see if you have
> better luck.
> 
>       -- sandro

Received on Wednesday, 12 January 2005 21:38:53 UTC