W3C home > Mailing lists > Public > semantic-web@w3.org > November 2007

RDF validation of vocabulary

From: Karl Dubost <karl@w3.org>
Date: Mon, 26 Nov 2007 12:06:46 +0900
Message-Id: <F080D259-F3FE-4B74-8EA0-E60DD8FBC3AE@w3.org>
To: Semantic web list <semantic-web@w3.org>

Hi,

I was trying to validate an RDF document and I just realized that the  
RDF validator, was just checking
the document is well-formed and that is a graph, but not that the  
vocabulary is used appropriately.

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:myvocab="http:example.org/">
   <rdf:Description rdf:about="http://www.w3.org/">
     <dc:title>World Wide Web Consortium</dc:title>
     <dc:foobar>a foreign element to Dublin Core Vocabulary</dc:foobar>
     <myvocab:foo>an unknown vocab</myvocab:foo>
   </rdf:Description>
</rdf:RDF>


The vocabulary which is not part of Dublin Core for example will not  
be detected.
<dc:foobar>a foreign element to Dublin Core Vocabulary</dc:foobar>

Is there a way to check that your vocabulary is consistent.  The  
answer could be:

Your document is RDF valid but contains

* an unknown vocabulary: vocab,
* an element which is not part of dc vocabulary: foobar



--
Karl Dubost - W3C
http://www.w3.org/QA/
Be Strict To Be Cool
Received on Monday, 26 November 2007 03:06:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:22:53 GMT