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

Hi Ben,

> Now, what happens if we say:
>
> <a about="s" rel="p" href="o" instanceof="t">
>   foo
> </a>
>
> I think the same thing should happen, meaning instanceof applies to the
> @href when it's present.

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:

  <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

-- 
  Mark Birbeck, formsPlayer

  mark.birbeck@x-port.net | +44 (0) 20 7689 9232
  http://www.formsPlayer.com | http://internet-apps.blogspot.com

  standards. innovation.

Received on Tuesday, 17 July 2007 16:01:55 UTC