This document explains how to process a GEDCOM X record. A single GEDCOM X record can be represented as a GEDCOM X document or you can find multiple records in a GEDCOM X record set. For more information on record sets, see [Section 4] (https://github.com/FamilySearch/gedcomx-record/blob/master/specifications/record-specification.md#recordset) of the GEDCOM X record specification.
The following example shows how to find the title of a record in a single record represented as a GEDCOM X document.
<thead>
<tr>
<th>To find:</th>
<th>Do this:</th>
</tr>
</thead>
<tbody>
<tr>
<td>Record Title</td>
<td>
<ol>
<li>
Find the description of the record.
<ul>
<li>The record's <code>description</code> property will contain a reference. Resolve this reference to the <code>id</code> of the <code>sourceDescription</code>.</li>
</ul>
</li>
<li>Look at the <code>title</code> property of the <code>sourceDescription</code>.</li>
</ol>
<h4>Example</h4>
<pre>
<gedcomx xmlns= "http://gedcomx.org/v1/" description="#7"> ... <sourceDescription ... id="7"> <title>Record 7</title> </sourceDescription> ... </gedcomx>
The examples below show records as they would appear in a record set file. Each record in the record set will include a source description, a person (for each persona in the record), relationships and image URLs. The following table outlines some examples of elements you may need to find as you consume the data.
<thead>
<tr>
<th>To find:</th>
<th>Do this:</th>
</tr>
</thead>
<tbody>
<tr>
<td>Record Title</td>
<td>
<ol>
<li>
Find the description of the record.
<ul>
<li>The record's <code>description</code> property will contain a reference. Resolve this reference to the <code>id</code> of the <code>sourceDescription</code>.</li>
</ul>
</li>
<li>Look at the <code>title</code> property of the <code>sourceDescription</code>.</li>
</ol>
<h4>Example</h4>
<pre>
<record description="#7"> ... <sourceDescription ... id="7"> <title>Record 7</title> </sourceDescription> ... </record>
Collection Title |
<record description="#7"> ... <sourceDescription ... id="7"> <componentOf description="#6"/> ... </sourceDescription> ... <sourceDescription ... id="6"> |
Gender of the Principal Person |
<record description="#s1"> <person id="p_1" ... principal="true"> ... |
Original text of the Gender of the Principal Person as stated on the record |
<record description="#s1"> <person id="p_1" ... principal="true"> ... <gender type="http://gedcomx.org/Female"> <field type="http://gedcomx.org/Gender"> <value type="http://gedcomx.org/Original" ...> <text>F</text> ... </record> |
Interpreted text of the Gender of the Principal Person as stated on the record |
<record description="#s1"> <person id="p_1" ... principal="true"> ... <gender type="http://gedcomx.org/Female"> <field type="http://gedcomx.org/Gender"> <value type="http://gedcomx.org/Interpreted" ...> <text>Female</text> ... </record> |
Persistent Identifier (ARK) for the Principal Person |
<record description="#s1"> <person id="p_1" ... principal="true"> ... <identifier type=" ... /Persistent">https://familysearch.org/ ... </identifier> ... </record> |
Residence Place of the Principal Person |
<record description="#s1"> <person id="p_1" ... principal="true"> ... <fact type="http://gedcomx.org/Residence" ... <place> <original>Blandford-Forum, Blandford,Forum, Dorset, England</original> ... </record> |
Birth Date of the Principal Person |
<record description="#s1"> <person id="p_1" ... principal="true"> ... <fact type="http://gedcomx.org/Birth" ... > <date> <original>1763</original> ... </record> |
Surname of the Principal Person |
<record description="#s1"> <person id="p_1"> ... principal="true"> ... <name type="http://gedcomx.org/BirthName"> <part type=" ... "> <field type="http://gedcomx.org/Surname"> <value type="http://gedcomx.org/Original" ... > <text>Baker</text> ... </record> |
Marriage Place of a Couple |
<record description="#s29"> <relationship type="http://gedcomx.org/Couple"> <person1 resource="#p_61"/> <person2 resource="#p_62"/> <fact type="http://gedcomx.org/Marriage" ... > <place> <original>Bridport, Bridport, Dorset, England</original> ... </record> |
Image URL |
<record description="#7"> ... <sourceDescription ... id="7"> <source description="#src_s1"/> ... </sourceDescription> ... <sourceDescription about="https://familysearch.org/ark:/61903/3:1:S3HY-DH44-3CM?cc=1747615" |
<thead>
<tr>
<th>To find:</th>
<th>Do this:</th>
</tr>
</thead>
<tbody>
<tr>
<td>Time Span of Collection</td>
<td>
<ol>
<li>Find the description of the metadata.
<ul>
<li>The metadata's <code>description</code> property will contain a reference. Resolve this reference to the <code>sourceDescription id</code>.</li>
</ul></li>
<li>Find the <code>coverage</code> property.</li>
<li>Look at the <code>original</code> or <code>formal</code> value(s) of the <code>temporal</code> property to find the time span of the collection. (For more information on date formats, see the GEDCOM X date format <a href="https://github.com/FamilySearch/gedcomx/blob/master/specifications/date-format-specification.md">spec</a>.)</li>
</ol>
<h4>Example</h4>
<pre>
<metadata description="#src_1"> ... <sourceDescription ... id="src_1"> <coverage> <temporal> <original>1538/1910</original> <formal>+1538/+1910</formal> </temporal> </coverage> </sourceDescription> ... </metadata>
Geographic Location of Collection |
<metadata description="#src_1"> ... <sourceDescription ... id="src_1"> <coverage> <spatial description = "#place_1986340-1927925"> ... </spatial> </coverage> <place id="place_1986340-1927925"> ... <name xml:lang="en-US">Dorset, England</name> </place> </sourceDescription> ... </metadata> |
Japanese label for the "PR_NAME" field |
<recordDescriptor id="rd_1910806"> <field> <value type="http://gedcomx.org/Interpreted" ... > <label xml:lang="ja">名前</label> ... </recordDescriptor> |