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

Re: Mixing @id and @about on the same element

From: Toby A Inkster <tai@g5n.co.uk>
Date: Thu, 11 Jun 2009 23:04:51 +0100
Message-Id: <A92360CD-86F6-4129-B893-BFEC00497D1A@g5n.co.uk>
To: RDFa Developers <public-rdf-in-xhtml-tf@w3.org>
On 11 Jun 2009, at 14:50, Manu Sporny wrote:

> We need to determine if creating markup like this is an acceptable  
> practice:
> <p id="foo" about="#foo">Some text</p>


Just today I included the following in a document:

<div about="#project" typeof="doap:Project">
   ...
   <div rel=":help">
     <div id="help" about="#help">
       <h3 property="dc:title">Help</h3>
       ...
     </div>
   </div>
</div>

Which generates these three triples:

	<#project> a doap:Project ;
		xhv:help <#help> .
	<#help> dc:title "Help" .

All of which seems logical to me.

The issue included in the TF minutes is not really including @id and  
@about on the same element - there's nothing wrong with that, but  
rather trying to use the same fragment identifier (hence the same  
URI) to refer to two separate things. (In the SKOS case, they use the  
same URI to identify both a document fragment and an rdf:Property.)

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Thursday, 11 June 2009 22:04:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 11 June 2009 22:04:58 GMT