Re: RDFa + rel="me" (IndieAuth)

On 10/01/2014 05:18 PM, Niklas Lindström wrote:
> Hi,
> 
> On Wed, Oct 1, 2014 at 9:07 AM, ☮ elf Pavlik ☮
> <perpetual-tripper@wwelves.org <mailto:perpetual-tripper@wwelves.org>>
> wrote:
> 
>     Howdy,
> 
>     Yesterday I enabled IndieAuth on my personal website, by simply adding
>     rel="me" to couple of links[1]
> 
>     Since I use RDFa for text/html version of content it also 'broke' graph
>     embedded on that page.
> 
>     As one can see in linked template[1], I use vocab="http://schema.org/"
>     and rel="contactPoint" to mark my email, jabber, and various social
>     accounts like facebook, twitter, g+, github etc.
> 
>     I wonder if someone has experience with using rel="me" together with
>     RDFa? In general I don't understand how RDFa can handle
>     rel="some_value_from_IANA_registry"[2].
> 
> 
> To avoid this, you can add an empty vocab="" on/around the elements that
> use rel for purposes outside of RDFa.
> 
> (Also note that you can use custom (non-URI) @rel values alongside RDFa
> in HTML if you just add a @property on the same element, as defined in
> extension 7 of RDFa 1.1 in HTML [1]. E.g. by adding property="author" or
> similar next to rel="me".)
>  
> Cheers,
> Niklas

Hi Niklas,

Thanks for explanation! Could you imagine suggesting how to add rel="me"
in example below to email and github, without it breaking RDFa ?

<html>
<body
  vocab="http://schema.org/"
  prefix="cco: http://purl.org/ontology/cco/core# foaf:
http://xmlns.com/foaf/0.1/"
  >
<div about="https://wwelves.org/perpetual-tripper" typeof="Person
foaf:Person">
  <h1 property="name">elf Pavlik</h1>
  <img property="image" src="http://wwelves.org/images/elf-pavlik.jpg" />
  <p property="description">#hacker / #elf - living strictly #moneyless
and #stateless already for over 5 years! #WorldPeaceGame #ZeroWaste</p>
  <h2>contact points</h2>
  <ul rel="contactPoint">

    <li about="mailto:perpetual-tripper@wwelves.org" typeof="ContactPoint">
      <a href="mailto:perpetual-tripper@wwelves.org"><span
property="name">email (smtp)</span></a>
    </li>
    <li about="https://github.com/elf-pavlik" typeof="ContactPoint">
      <a href="https://github.com/elf-pavlik"><span
property="name">Github</span></a>
    </li>

  </ul>

</div>
</body>
</html>

Received on Wednesday, 1 October 2014 16:31:28 UTC