title: Represent person/representative or writer/agent relationship with RDFa, schema.org and FOAF
body: <p>I'm a little confused how to model a writer-agent relationship using RDFa (Lite), schema.org and FOAF. I'm not even sure if I need FOAF.</p>
  
  <p>Let's say I publish a book, me being the writer and represented by an agent. So we have two Persons, one is me and one is the agent. To clarify, my intention is to link the agent as a contact point for the writer, while at the same time indicating that the writer is <em>me</em>, the subject of the page:</p>
  
  <pre><code>&lt;!-- the agent representing me --&gt;
  &lt;div resource="/Writecorp/Michael Stern" vocab="http://schema.org/" typeof="Person"&gt;
      &lt;span property="name"&gt;Michael Stern&lt;/span&gt;
      &lt;div property="memberOf"&gt;
          &lt;div typeof="Organization"&gt;
              &lt;span property="name"&gt;Writecorp Inc. agency&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;!-- the writer, me --&gt;
  &lt;div rel="me" vocab="http://schema.org/" typeof="Person"&gt;
      &lt;link rel="agent" property="contactPoint" href="/Writecorp/Michael Stern" /&gt;
      &lt;span property="name"&gt;H. P. Lovecraft&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The <code>&lt;link&gt;</code> solution I gleaned from <a href="https://stackoverflow.com/a/19389163/441662">https://stackoverflow.com/a/19389163/441662</a>.</p>
  
  <p>When I feed this to the <a href="http://www.w3.org/2012/pyRdfa/#distill_by_input" rel="nofollow noreferrer">RDFa 1.1 Distiller and Parser</a>, it shows the following output:</p>
  
  <pre><code>@prefix ns1: &lt;http://www.w3.org/ns/rdfa#&gt; .
  @prefix ns2: &lt;http://schema.org/&gt; .
  
  &lt;&gt; ns2:me [ a ns2:Person;
              ns2:contactPoint &lt;/Writecorp/Michael Stern&gt;;
              ns2:name "H. P. Lovecraft" ];
      ns1:usesVocabulary ns2: .
  
  &lt;/Writecorp/Michael Stern&gt; a ns2:Person;
      ns2:memberOf """
  
                  Writecorp Inc. agency
  
          """;
      ns2:name "Michael Stern" .
  
  [] a ns2:Organization;
      ns2:name "Writecorp Inc. agency" .
  </code></pre>
  
  <ul>
  <li>Did it recognize <code>rel="me"</code> properly? It is showing <em>ns1:me</em>, but I can't find anything about it in the referred namespace vocabulary, schema.org. Should I use a FOAF prefix and then use <code>foaf:me</code>? I can't find many examples on that either. </li>
  <li>How do I model the <em>agent as a contactPoint</em> relationship? According to schema.org and <a href="https://developers.google.com/structured-data/testing-tool/" rel="nofollow noreferrer">Google's testing tool</a>, a <code>Person</code> is not allowed to be a <code>contactPoint</code>.</li>
  </ul>
  
  <hr>
  
  <h1>Solution?</h1>
  
  <p>One solution proposed further down is to have an entity that is both a <code>ContactPoint</code> and a <code>Person</code>, but <a href="https://developers.google.com/structured-data/testing-tool/" rel="nofollow noreferrer">Google's validator</a> doesn't seem to like it much.</p>
  
  <p>Another possible solution is to have both agent and writer point to the same <code>ContactPoint</code> resource (see <a href="https://stackoverflow.com/a/30055747/441662">https://stackoverflow.com/a/30055747/441662</a>).</p>
  
  <p>Concerning <code>rel="me"</code>, that came from a microformats example and is not possible with schema.org (yet, as @unor states in <a href="https://stackoverflow.com/a/30052653/441662">his answer</a>) or foaf.</p>
  
  <hr>
  
  <p><strong>/edit 7-5-2015:</strong> I raised a GitHub issue <a href="https://github.com/schemaorg/schemaorg/issues/472" rel="nofollow noreferrer">for this problem</a>. I'll update this post when I learn more...</p>