TYPES: Agent

PRE-MARKUP:

Use of Agent - you can not always be certain if an agent is a person or an organization.
Note: contributor has a range of schema:Agent

<div>
  <h1>Collected thoughts on data</h1>
  <div>Editor: Terry T. Racer</div>
  <div>Contributor: Data Wrangler</div>
  <div>Contributor: Lot O'Bytes</div>
  <div>Contributor: John Smith</div>
</div>

MICRODATA:


<div>
<div itemscope itemtype="http://schema.org/Book">
  <h1 itemprop="name">Collected thoughts on data</h1>
  <div>Editor: <span itemprop="editor" itemscope itemtype="http://schema.org/Person" itemid="http://example.org/agents/peeps/Racer-t-t">Terry T. Racer</span></div>
  <div>Contributor: <span itemprop="contributor" itemscope itemtype="http://schema.org/Agent" itemid="http://example.org/agents/orgs/Data-w">Data Wrangler</span></div>
  <div>Contributor: <span itemprop="contributor" itemscope itemtype="http://schema.org/Agent" itemid="http://example.org/agents/Lot-OB">Lot O'Bytes</span></div>
  <div>Contributor: <span itemprop="contributor" itemscope itemtype="http://schema.org/Agent" itemid="http://example.org/agents/peeps/Smith-j-327">John Smith</span></div>
</div>
<div itemscope itemtype="http://schema.org/Person" itemid="http://example.org/agents/peeps/Racer-t-t">
  <div>Person: <span itemprop="name">Terry T. Racer</span></div>
</div>
<div itemscope itemtype="http://schema.org/Organization" itemid="http://example.org/agents/orgs/Data-w">
  <div>Organization: <span itemprop="name">Data Wrangler</span></div>
</div>
<div itemscope itemtype="http://schema.org/Agent" itemid="http://example.org/agents/Lot-OB">
  <div>Agent: <span itemprop="name">Lot O'Bytes</span></div>
</div>
<div itemscope itemtype="http://schema.org/Person" itemid="http://example.org/agents/peeps/Smith-j-327">
  <div>Person: <span itemprop="name">John Smith</span></div>
</div>
</div>

RDFA:

<div vocab="http://schema.org/">
 <div typeof="Book">
   <h1 property="name">Collected thoughts on data</h1>
   <div>Editor: <span property="editor" resource="http://example.org/agents/peeps/Racer-t-t">Terry T. Racer</span></div>
   <div>Contributor: <span property="contributor" resource="http://example.org/agents/orgs/Data-w">Data Wrangler</span></div>
   <div>Contributor: <span property="contributor" resource="http://example.org/agents/Lot-OB">Lot O'Bytes</span></div>
   <div>Contributor: <span property="contributor" resource="http://example.org/agents/peeps/Smith-j-327">John Smith</span></div>
 </div>
<div typeof="Person" about="http://example.org/agents/peeps/Racer-t-t">
   <div>Person: <span property="name">Terry T. Racer</span></div>
 </div>
 <div typeof="Organization" about="http://example.org/agents/orgs/Data-w">
   <div>Organization: <span property="name">Data Wrangler</span></div>
 </div>
 <div typeof="Agent" about="http://example.org/agents/Lot-OB">
   <div>Agent: <span property="name">Lot O'Bytes</span></div>
 </div>
 <div typeof="Person" about="http://example.org/agents/peeps/Smith-j-327">
   <div>Person: <span property="name">John Smith</span></div>
 </div>
</div>

JSON:

<script type="application/ld+json">
{
  "@context": {
    "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    "rdfa": "http://www.w3.org/ns/rdfa#",
    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
    "schema": "http://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#"
  },
  "@graph": [
    {
      "@id": "",
      "rdfa:usesVocabulary": {
        "@id": "schema:"
      }
    },
    {
      "@type": "schema:Book",
      "schema:name": "Collected thoughts on data",
      "schema:editor": {
        "@id": "http://example.org/agents/peeps/Racer-t-t"
      },
      "schema:contributor": [
        {
          "@id": "http://example.org/agents/orgs/Data-w"
        },
        {
          "@id": "http://example.org/agents/Lot-OB"
        },
        {
          "@id": "http://example.org/agents/peeps/Smith-j-327"
        }
      ]
    },
    {
      "@id": "http://example.org/agents/peeps/Racer-t-t",
      "@type": "schema:Person",
      "schema:name": "Terry T. Racer"
    },
    {
      "@id": "http://example.org/agents/orgs/Data-w",
      "@type": "schema:Organization",
      "schema:name": "Data Wrangler"
    },
    {
      "@id": "http://example.org/agents/Lot-OB",
      "@type": "schema:Agent",
      "schema:name": "Lot O'Bytes"
    },
    {
      "@id": "http://example.org/agents/peeps/Smith-j-327",
      "@type": "schema:Person",
      "schema:name": "John Smith"
    }
  ]
}
</script>
