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

Re: [RDFa] ISSUE-42: the @src attribute

From: Ivan Herman <ivan@w3.org>
Date: Wed, 18 Jul 2007 12:17:41 +0200
Message-ID: <469DE8C5.5000004@w3.org>
To: mark.birbeck@x-port.net
Cc: Ben Adida <ben@adida.net>, public-rdf-in-xhtml-tf@w3.org
Mark,


Mark Birbeck wrote:
>
[...]
> I agree. It seems that in general, @instanceof takes as its subject
> the 'current' object, and if there isn't one, one is created (as a
> bnode). This means that:
> 

Mark,

Although I agree this is useful in many cases, I am not sure I fully
understand... I guess I am a bit lost:-(

Indeed, how do I then set the rdf:type for the _subject_? Doesn't that
become a little bit too convoluted? Ie, if I have to code::

<div about="#A">
	<p foaf:name>Ivan</p>
</div>

how do I set the type of '#A' to be, say, foaf:Person? I cannot add the
@instanceof to <div>, because that would create a new blank object which
is not what I wanted... Of course, I can use the rel="rdf:type" and the
@resource, but, well...

Maybe we need _two_ aliases? One setting the type for the subject and
one for the object? It might solve lots of issues and may make things
clearer...

Ivan


>  <div instanceof="foaf:Person">
>    ...
>  </div>
> 
> doesn't make a statement about the document, but about a bnode on the
> <div>. This neatly gives you what you and others on the list wanted
> before, the ability to create typed bnodes without having to do lots
> of mark-up.
> 
> Working 'upwards', it also means that mark-up like this falls out quite
> nicely:
> 
>  <div rel="foaf:knows" instanceof="foaf:Person">
>    ...
>  </div>
> 
> to mean that there is a relationship of 'foaf:knows' between the
> nearest ancestor subject, and the bnode, which is itself of type
> 'foaf:Person'.
> 
> ...all of which I think we've said before...I'm writing it down as
> much for my own benefit as anyone else's. :)
> 
> Regards,
> 
> Mark
> 

-- 

Ivan Herman, W3C Semantic Web Activity Lead
URL: http://www.w3.org/People/Ivan/
PGP Key: http://www.cwi.nl/%7Eivan/AboutMe/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf


Received on Wednesday, 18 July 2007 10:17:42 GMT

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