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

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 UTC