JSON

Relationship (XML)

A relationship between two or more persons.

Namespace:http://gedcomx.org/v1/
URI:http://gedcomx.org/v1/Relationship
Extends:Subject

Attributes

Name Type Description
type relationshipType The type of this relationship.
Attributes inherited from Subject
extracted boolean Whether this subject has been identified as "extracted", meaning it captures information extracted from a single source. FTU
Attributes inherited from Conclusion
confidence confidenceLevel The level of confidence the contributor has about the data.
lang string The language of the conclusion. See http://www.w3.org/International/articles/language-tags/ FTR
Attributes inherited from ExtensibleData
id ID A local, context-specific id for the data.

Elements

Name Type Occurs Description
person1 ResourceReference 0..1 A reference to a person in the relationship. The name "person1" is used only to distinguish it from the other person in this relationship and implies neither order nor role. When the relationship type implies direction, it goes from "person1" to "person2".
person2 ResourceReference 0..1 A reference to a person in the relationship. The name "person2" is used only to distinguish it from the other person in this relationship and implies neither order nor role. When the relationship type implies direction, it goes from "person1" to "person2".
fact Fact 0..* The fact conclusions for the relationship.
field Field 0..* Get the fields being used as evidence. FTU
Elements inherited from Subject
evidence EvidenceReference 0..* References to the evidence being referenced for this subject. FTU
media SourceReference 0..* References to multimedia resources associated with this subject.
identifier Identifier 0..* The list of identifiers for the subject.
Elements inherited from Conclusion
attribution Attribution 0..1 Attribution metadata for a conclusion.
source SourceReference 0..* The source references for a conclusion.
analysis ResourceReference 0..1 A reference to the analysis document explaining the analysis that went into this conclusion. FTU
note Note 0..* Notes about a person.
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"?>
<Relationship xmlns="http://gedcomx.org/v1/" type="..." extracted="..." confidence="..." xml:lang="..." id="...">
  <person1 resourceId="..." resource="..." />
  <person2 resourceId="..." resource="..." />
  <fact primary="..." type="..." confidence="..." xml:lang="..." id="...">
    <date id="..." />
    <place description="..." id="..." />
    <value>...</value>
    <qualifier>...</qualifier>
    <qualifier>...</qualifier>
    <!--...more "qualifier" elements...-->
    <field type="..." id="..." />
    <field type="...">
      <!--...-->
    </field>
    <!--...more "field" elements...-->
    <attribution id="..." />
    <source description="..." id="..." />
    <source description="...">
      <!--...-->
    </source>
    <!--...more "source" elements...-->
    <analysis resourceId="..." resource="..." />
    <note xml:lang="..." id="..." />
    <note xml:lang="...">
      <!--...-->
    </note>
    <!--...more "note" elements...-->
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="..." />
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="...">
      <!--...-->
    </link>
    <!--...more "link" elements...-->
  </fact>
  <fact primary="..." type="...">
    <!--...-->
  </fact>
  <!--...more "fact" elements...-->
  <field type="..." id="...">
    <value resource="..." datatype="..." type="..." labelId="..." confidence="..." xml:lang="..." id="..." />
    <value resource="..." datatype="..." type="..." labelId="...">
      <!--...-->
    </value>
    <!--...more "value" elements...-->
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="..." />
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="...">
      <!--...-->
    </link>
    <!--...more "link" elements...-->
  </field>
  <field type="...">
    <!--...-->
  </field>
  <!--...more "field" elements...-->
  <evidence resourceId="..." resource="..." id="...">
    <attribution id="..." />
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="..." />
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="...">
      <!--...-->
    </link>
    <!--...more "link" elements...-->
  </evidence>
  <evidence resourceId="..." resource="...">
    <!--...-->
  </evidence>
  <!--...more "evidence" elements...-->
  <media description="..." id="...">
    <attribution id="..." />
    <qualifier>...</qualifier>
    <qualifier>...</qualifier>
    <!--...more "qualifier" elements...-->
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="..." />
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="...">
      <!--...-->
    </link>
    <!--...more "link" elements...-->
  </media>
  <media description="...">
    <!--...-->
  </media>
  <!--...more "media" elements...-->
  <identifier type="...">...</identifier>
  <identifier type="...">...</identifier>
  <!--...more "identifier" elements...-->
  <attribution id="...">
    <contributor resourceId="..." resource="..." />
    <modified>...</modified>
    <changeMessage>...</changeMessage>
  </attribution>
  <source description="..." id="...">
    <attribution id="..." />
    <qualifier>...</qualifier>
    <qualifier>...</qualifier>
    <!--...more "qualifier" elements...-->
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="..." />
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="...">
      <!--...-->
    </link>
    <!--...more "link" elements...-->
  </source>
  <source description="...">
    <!--...-->
  </source>
  <!--...more "source" elements...-->
  <analysis resourceId="..." resource="..." />
  <note xml:lang="..." id="...">
    <subject>...</subject>
    <text>...</text>
    <attribution id="..." />
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="..." />
    <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="...">
      <!--...-->
    </link>
    <!--...more "link" elements...-->
  </note>
  <note xml:lang="...">
    <!--...-->
  </note>
  <!--...more "note" elements...-->
  <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="..." />
  <link hreflang="..." template="..." title="..." allow="..." accept="..." rel="..." type="..." href="...">
    <!--...-->
  </link>
  <!--...more "link" elements...-->
</Relationship>