W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > January 2009

XHTML Vocab document

From: Toby A Inkster <tai@g5n.co.uk>
Date: Thu, 8 Jan 2009 15:02:37 +0000
Message-Id: <BB963207-57E2-4517-BDDE-A41F2C55D86C@g5n.co.uk>
To: RDFa <public-rdf-in-xhtml-tf@w3.org>

I've pointed this out before, but haven't had a response.

If you look at <http://www.w3.org/1999/xhtml/vocab/> you will see  
markup along the lines of:

>   <dt id="chapter" about="#chapter" typeof="rdf:Property">chapter</dt>
>     <dd about="#chapter" property="rdfs:comment"
>       datatype="xsd:string"><span>chapter</span> refers to a  
> resource serving
>       as a chapter in a collction. </dd>

This creates the triples:

<http://www.w3.org/1999/xhtml/vocab/#chapter> a rdf:Property ;
	rdfs:comment """chapter refers to a resource service
	as a chapter in a collction. """^^xsd:string .

(Note typo in "collection", but that's not my main point.) However,  
because the xhv namespace is <http://www.w3.org/1999/xhtml/vocab#>,  
what we'd really like to see is:

<http://www.w3.org/1999/xhtml/vocab#chapter> a rdf:Property ;
	rdfs:comment """chapter refers to a resource service
	as a chapter in a collction. """^^xsd:string .

Note the resource's URI has had a slash removed. Two possible routes  
to fixing this would be:

1. change the URI of the document to <http://www.w3.org/1999/xhtml/ 
vocab> (no trailing slash); or
2. add a <base> element to the document.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Thursday, 8 January 2009 15:03:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 8 January 2009 15:03:29 GMT