JSON

Agent (XML)

An agent, e.g. person, organization, or group. In genealogical research, an agent often takes the role of a contributor.

Namespace:http://gedcomx.org/v1/
URI:http://gedcomx.org/v1/Agent
Extends:HypermediaEnabledData

Attributes

Name Type Description
Attributes inherited from ExtensibleData
id string A local, context-specific id for the data.

Elements

Name Type Occurs Description
account OnlineAccount 0..* The accounts that belong to this person or organization.
address Address 0..* The addresses that belong to this person or organization.
email ResourceReference 0..* The emails that belong to this person or organization.
homepage ResourceReference 0..1 The homepage of the person or organization. Note this is different from the homepage of the service where the person or organization has an account.
identifier Identifier 0..* The list of identifiers for the agent.
name TextValue 0..* The list of names for the agent.
openid ResourceReference 0..1 The openid of the person or organization.
phone ResourceReference 0..* The phones that belong to this person or organization.
Elements inherited from HypermediaEnabledData
link Link 0..* The list of hypermedia links. Links are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.

Example

<?xml version="1.0" encoding="UTF-8"?>
<Agent xmlns="http://gedcomx.org/v1/" id="...">
  <link template="..." allow="..." count="..." accept="..." type="..." hreflang="..." title="..." results="..." rel="..." offset="..." href="..." />
  <link template="..." allow="..." count="..." accept="..." type="..." hreflang="..." title="..." results="..." rel="..." offset="..." href="...">
    <!--...-->
  </link>
  <!--...more "link" elements...-->
  <account id="...">
    <accountName>...</accountName>
    <serviceHomepage resourceId="..." resource="..." />
  </account>
  <account>
    <!--...-->
  </account>
  <!--...more "account" elements...-->
  <address id="...">
    <city>...</city>
    <country>...</country>
    <postalCode>...</postalCode>
    <stateOrProvince>...</stateOrProvince>
    <street>...</street>
    <street2>...</street2>
    <street3>...</street3>
    <street4>...</street4>
    <street5>...</street5>
    <street6>...</street6>
    <value>...</value>
  </address>
  <address>
    <!--...-->
  </address>
  <!--...more "address" elements...-->
  <email resourceId="..." resource="..." />
  <email resourceId="..." resource="...">
    <!--...-->
  </email>
  <!--...more "email" elements...-->
  <homepage resourceId="..." resource="..." />
  <identifier type="...">...</identifier>
  <identifier type="...">...</identifier>
  <!--...more "identifier" elements...-->
  <name xml:lang="...">...</name>
  <name xml:lang="...">...</name>
  <!--...more "name" elements...-->
  <openid resourceId="..." resource="..." />
  <phone resourceId="..." resource="..." />
  <phone resourceId="..." resource="...">
    <!--...-->
  </phone>
  <!--...more "phone" elements...-->
</Agent>