Re: RDFa is in PR!

cool! i guess it's probably too late to submit suggestions for this,
but reading http://www.w3.org/TR/2012/WD-rdfa-primer-20120508/ i had
two remarks.

first of all, i think the <a href="..." property="..."> in
human-readable (and other) web pages is awesome. we should all start
doing that. for instance, search
view-source:http://www.w3.org/community/rww/wiki/Main_Page for
'property' and you get zero hits. is there way we can fix that within
the wiki software that powers that page?

second, there is an example of a document describing a person. the
improvements and comments i would have proposed (if i would have been
present when this standard was invented) are inline:

> <div vocab="http://xmlns.com/foaf/0.1/" typeof="Person">

   <div vocab="http://xmlns.com/foaf/0.1/" subjecttype="Person">
the div is not a person. its subject (topic) is.

>   <p>
>    <span property="name">Alice Birpemswick</span>,
      Name: <span property="subjectname">Alice Birpemswick</span>,

so here the span acts as a header, not as a name field, that's why i
would put the label in front of it. also, it's not the name of the
enclosing document, it's the name of its subject. Or alternatively
(but i don't think that's what's meant here):
     <span property="property="http://purl.org/dc/terms/title"">Alice
Birpemswick</span>,


>    Email: <a property="mbox" href="mailto:alice@example.com">alice@example.com</a>,
>    Phone: <a property="phone" href="tel:+1-617-555-7332">+1 617.555.7332</a>

      Email address: <a property="subjectmboxaddr"
href="mailto:alice@example.com">alice@example.com</a>,
      Phone number: <a property="subjectphonenr"
href="tel:+1-617-555-7332">+1 617.555.7332</a>
Email is a communication system, and a phone is a physical object.
we're displaying the email address and phone number of the document's
subject here, so don't be sloppy with naming. Naming is important!

>  </p>
>   <ul>
>      <li property="knows" typeof="Person">

        <li property="subjectknows" subjecttype="Person">
Now inside here we need to be careful, because the subject of the <li>
is not the subject of the document as a whole. I think it's fair to
say that scopes are local within the smallest enclosing element that
has a 'subjecttype'.

>        <a property="homepage" href="http://example.com/bob/"><span property="name">Bob</span></a>

          <a property="subjecthomepage"
href="http://example.com/bob/"><span
property="subjectname">Bob</span></a>

>      </li>
>      <li property="knows" typeof="Person">
>        <a property="homepage" href="http://example.com/eve/"><span property="name">Eve</span></a>
>      </li>
>      <li property="knows" typeof="Person">
>        <a property="homepage" href="http://example.com/manu/"><span property="name">Manu</span></a>
>      </li>

For <li>'s about Eve and Manu, likewise as for Bob's <li>.

>   </ul>
></div>

if the machine can see 'that <span> is a name of something', then i
don't call that machine readable. the machine should be able to see
'that <span> is the name of the subject of that <li>'


cheers,
Michiel

Received on Sunday, 13 May 2012 14:58:55 UTC