W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > May 2010

Re: RDFa DOM API Document update

From: Toby Inkster <tai@g5n.co.uk>
Date: Wed, 19 May 2010 13:19:33 +0100
To: Mark Birbeck <mark.birbeck@webbackplane.com>
Cc: Manu Sporny <msporny@digitalbazaar.com>, RDFa WG <public-rdfa-wg@w3.org>
Message-ID: <20100519131933.1cafef42@miranda.g5n.co.uk>
On Tue, 18 May 2010 23:25:53 +0100
Mark Birbeck <mark.birbeck@webbackplane.com> wrote:

> Doing this has the effect of keeping track of all of the *objects* in
> the tree (in the RDF sense of objects, not the OO sense), because it's
> always objects that cause triples to be generated. (@typeof is not an
> exception -- it just happens to be an abbreviation for a
> predicate/object pair.)

Just to be difficult, sometimes the subject causes the triples to be
generated. e.g.

<div resource="[foaf:Person]">
  <p property="ex:note">Here are some foaf:Persons.</p>
  <ul rev="rdf:type">
    <li src="#alice" property="foaf:name">Alice</li>
    <li src="#bob" property="foaf:name">Bob</li>
    <li src="#carol" property="foaf:name">Carol</li>
  </ul>
</div>

Though in that particular case, the subject node is probably more
useful to return!

And to answer Manu's question, yes, this technique does satisfy me. It
might not always return the best possible node, but at least it's a
fairly simple and predictable rule. We need to explicitly state it
somewhere though!

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Wednesday, 19 May 2010 12:22:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:47 UTC