This document specifies a set of extensions to GEDCOM X for the purpose of providing a mechanism to exchange field-based genealogical record data.
The current state of this document is as a DRAFT, and as such, the document may be subject to changes, including backwards-incompatible changes, according to the discussion and suggestions for improvement.
Copyright Intellectual Reserve, Inc.
This document is distributed under a Creative Commons Attribution-ShareAlike license. For details, see:
http://creativecommons.org/licenses/by-sa/3.0/
GEDCOM X Record Extensions is a specification that defines extensions to the core GEDCOM X specification set to exchange data specific to genealogical records, including field-based record extraction.
- 1. Introduction
- 2. Data Type Extensions
- 3. Property Extensions
- 4. The GEDCOM X XML Record Set
The identifier for this specification is:
http://gedcomx.org/records/v1
For convenience, GEDCOM X Record Extensions may be referred to as "GEDCOM X Record Extensions 1.0". This specification uses "GEDCOM X Record Extensions" internally.
This specification references the GEDCOM X Conceptual Model specification identified
by http://gedcomx.org/conceptual-model/v1
.
This specification references the GEDCOM X XML specification identified
by http://gedcomx.org/xml/v1
.
This specification references the GEDCOM X JSON specification identified
by http://gedcomx.org/json/v1
.
This specification refers to the GEDCOM X Field Types specification identified
by http://gedcomx.org/field-types/v1
to recommend field types to be used.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14, RFC2119, as scoped to those conformance targets.
An implementation of the GEDCOM X Record Extensions is "non-compliant" if it fails to satisfy one or more of the MUST or REQUIRED level requirements. An implementation that satisfies all of the MUST or REQUIRED and all of the SHOULD level requirements is said to be "unconditionally compliant"; and implementation that satisfies all of the MUST level requirements but not all of the SHOULD level requirements is said to be "conditionally compliant".
This specification uses the same namespace prefix conventions that are used by the GEDCOM X XML specification.
This section defines a set of extensions to the GEDCOM X Conceptual Model and provides the representations of those data types in both XML and JSON as extensions to GEDCOM X JSON and GEDCOM X XML.
The Collection
data type defines a collection of genealogical data.
The identifier for the Collection
data type is:
http://gedcomx.org/v1/Collection
name | description | data type | constraints |
---|---|---|---|
id | A local identifier for the collection. | string | OPTIONAL. The id is to be used as a "fragment identifier" as defined by RFC 3986, Section 3.5. As such, the constraints of the id are provided in the definition of the media type (e.g. XML, JSON) of the data structure. |
lang | The locale identifier for the collection. | IETF BCP 47 locale tag | OPTIONAL. If not provided, the locale is determined per Internationalization Considerations. |
content | Information about the content of the collection. | List of http://gedcomx.org/v1/CollectionContent . Order is preserved. |
OPTIONAL. |
title | A title for the collection. | string | OPTIONAL. |
size | An indication of the size of the collection. The units of size are left unspecified. | integer | OPTIONAL. |
attribution | The attribution of this collection. | http://gedcomx.org/Attribution |
OPTIONAL. If not provided, the attribution of the containing data set (e.g. file) of the source description is assumed. |
The gx:Collection
XML type is used to (de)serialize the http://gedcomx.org/v1/Collection
data type. The gx:collection
XML element is used to provide instances of the gx:Collection
XML type.
The gx:collection
element SHOULD be expected as an extension element to the
Gedcomx
XML Type.
name | description | XML property | XML type |
---|---|---|---|
id | The identifier for the XML element. The id attribute MUST conform to the constraints defined in GEDCOM X XML, Section 7, "Fragment Identifiers". | id (attribute) | xsd:string |
lang | The locale identifier for the collection. | xml:lang (attribute) | IETF BCP 47 locale tag |
content | Information about the content of the collection. | gx:content | gx:CollectionContent . |
title | A title for the collection. | gx:title | xsd:string |
size | An indication of the size of the collection. | gx:size | xsd:int |
attribution | The attribution of this data set. | gx:attribution | gx:Attribution |
<gx:collection id="local_id" lang="en">
<gx:content>
...
</gx:content>
...
<gx:title>...</gx:title>
<gx:size>...</gx:size>
<gx:attribution>
...
</gx:attribution>
...
<!-- possibility of extension elements -->
</gx:collection>
The Collection
JSON type is used to (de)serialize the http://gedcomx.org/v1/Collection
data type. The collections
member is used to provide instances of the Collection
JSON type.
The collections
member SHOULD be expected as an extension to the
Gedcomx
JSON Type.
name | description | JSON member | JSON object type |
---|---|---|---|
id | The identifier for the collection. The id attribute MUST conform to the constraints defined in GEDCOM X JSON, Section 7, "Fragment Identifiers". | id | string |
lang | The locale identifier for the collection. | lang | IETF BCP 47 locale tag |
content | Information about the content of the collection. | content | array of CollectionContent . |
title | A title for the collection. | title | string |
size | An indication of the size of the collection. | size | number |
attribution | The attribution of this data set. | attribution | Attribution |
"collections" : [ {
"id" : "...",
"lang" : "...",
"content" : [ { ... } , { ... } ],
"title" : "...",
"size" : ...,
"attribution" : { ... },
...possibility of extension elements...
}
]
The CollectionContent
data type provides information about the contents of a collection.
The identifier for the CollectionContent
data type is:
http://gedcomx.org/v1/CollectionContent
name | description | data type | constraints |
---|---|---|---|
resourceType | Enumerated value identifying the type of resource in the collection. | Enumerated Value | REQUIRED. MUST identify a resource type, and use of a known resource type is RECOMMENDED. |
count | The count of resources of the specified resourceType in the collection. |
integer | OPTIONAL. |
completeness | An indication of how "complete" is the collection of resources of the specified resourceType . A value of "1.0" implies that all resources of the specified resourceType are accounted for by the collection. |
double | OPTIONAL. If provided, MUST be a number between 0 and 1. |
The gx:CollectionContent
XML type is used to (de)serialize the http://gedcomx.org/v1/CollectionContent
data type.
name | description | XML property | XML type |
---|---|---|---|
resourceType | URI identifying the type of resource being described. | gx:resourceType | anyURI |
count | The count of resources of the specified resourceType in the collection. |
gx:count | xsd:int |
completeness | An indication of how "complete" is the collection of resources of the specified resourceType . |
gx:completeness | xsd:double |
<...>
<gx:resourceType>...</gx:resourceType>
<gx:count>...</gx:count>
<gx:completeness>...</gx:completeness>
<!-- possibility of extension elements -->
</...>
The CollectionContent
JSON type is used to (de)serialize the http://gedcomx.org/v1/CollectionContent
data type.
name | description | JSON member | JSON object type |
---|---|---|---|
resourceType | URI identifying the type of resource being described. | resourceType | URI |
count | The count of resources of the specified resourceType in the collection. |
count | number |
completeness | An indication of how "complete" is the collection of resources of the specified resourceType . |
completeness | number |
{
"resourceType" : "...",
"count" : ...,
"completeness" : ...,
...possibility of extension elements...
}
The Field
data type provides information about the fields of a record from which genealogical data is extracted.
Fields are bounded regions of a record. A rectangle of a digital image is an example of a field. Tools that enable
data extraction (a.k.a. "indexing") define fields to aid a user in the extraction process. Fields may have multiple
values that capture both the "original" text as stated in the field as well as "interpreted" text that captures
the way the original value was interpreted, either by a user or by an automated system. A field may also provide a
"type" that indicates the type of information what is extracted (e.g. name, age, birth, etc.).
Instances of Field
can be reasonably expected as extension elements to any GEDCOM X data type, especially on
person and relationship data. For example, an instance of Field
may be found as an extension element on the Gender
of a person, the birth Fact
of a person, the marriage Fact
of a relationship, etc.
The identifier for the Field
data type is:
http://gedcomx.org/v1/Field
This data type extends the following data type:
http://gedcomx.org/v1/Conclusion
name | description | data type | constraints |
---|---|---|---|
id | A local identifier for the field. | string | OPTIONAL. The id is to be used as a "fragment identifier" as defined by RFC 3986, Section 3.5. As such, the constraints of the id are provided in the definition of the media type (e.g. XML, JSON) of the data structure. |
type | Enumerated value identifying the type of the field. | Enumerated Value | OPTIONAL. If provided, MUST identify a field type, and use of a known field type is RECOMMENDED. |
values | The values of the data extracted from the field. | List of http://gedcomx.org/v1/FieldValue |
OPTIONAL |
The gx:Field
XML type is used to (de)serialize the http://gedcomx.org/v1/Field
data type.
The gx:field
XML element is used to provide instances of the gx:Field
XML type as extension elements.
name | description | XML property | XML type |
---|---|---|---|
id | The identifier for the XML element. The id attribute MUST conform to the constraints defined in GEDCOM X XML, Section 7, "Fragment Identifiers". | id (attribute) | xsd:string |
type | URI identifying the type of field. | type (attribute) | anyURI |
values | The values of the data extracted from the field. | gx:value | gx:FieldValue . |
<gx:field id="..." type="...">
<gx:value>
...
</gx:value>
...
<!-- possibility of extension elements -->
</gx:field>
The Field
JSON type is used to (de)serialize the http://gedcomx.org/v1/Field
data type.
The fields
JSON member is used to provide instances of the Field
JSON type as extension elements.
name | description | JSON member | JSON object type |
---|---|---|---|
id | The identifier for the field. The id attribute MUST conform to the constraints defined in GEDCOM X JSON, Section 7, "Fragment Identifiers". | id | string |
type | URI identifying the type of field. | type | URI |
values | The values of the data extracted from the field. | values | array of FieldValue . |
"fields" : [ {
"id" : "...",
"type" : "...",
"values" : [ { ... } , { ... } ],
...possibility of extension elements...
}
]
The FieldValue
data type provides information about the value of a field.
The identifier for the FieldValue
data type is:
http://gedcomx.org/v1/FieldValue
This data type extends the following data type:
http://gedcomx.org/v1/Conclusion
name | description | data type | constraints |
---|---|---|---|
type | Enumerated value identifying the type of the field value. | Enumerated Value | OPTIONAL. If provided, MUST identify a field value type, and use of a known field value type is RECOMMENDED. |
labelId | A local id for the label of the field value. | string | OPTIONAL. |
text | The text of the field value. | string | OPTIONAL. |
datatype | Enumerated value identifying the data type of the text of the field value. | Enumerated Value | OPTIONAL. If provided, MUST identify a data type, and use of a known field value data type is RECOMMENDED. |
resource | Reference to the resource that is the value. For example, if the value of a field is the male gender, the resource would be http://gedcomx.org/Male . |
URI |
OPTIONAL. |
The following field value types are defined by GEDCOM X:
URI | description |
---|---|
http://gedcomx.org/Original |
The field value carries the original value of the field; the verbatim text as stated on the record. |
http://gedcomx.org/Interpreted |
The field value carries an interpretation of the value of the field. |
The following field value data types are defined by GEDCOM X:
URI | description |
---|---|
http://www.w3.org/2001/XMLSchema#boolean |
The text of the field value is to be interpreted as a boolean. |
http://www.w3.org/2001/XMLSchema#int |
The text of the field value is to be interpreted as an integer. |
http://www.w3.org/2001/XMLSchema#dateTime |
The text of the field value is to be interpreted as a date. |
The gx:FieldValue
XML type is used to (de)serialize the http://gedcomx.org/v1/FieldValue
data type.
name | description | XML property | XML type |
---|---|---|---|
type | Enumerated value identifying the type of the field value. | type (attribute) | URI |
labelId | A local id for the label of the field value. | labelId (attribute) | xsd:string |
text | The text of the field value. | gx:text | xsd:string |
datatype | Identifier for the data type of the text of the field value. | datatype (attribute) | anyURI |
resource | Reference to the resource that is the value. | resource (attribute) | anyURI |
<... type="..." datatype="..." resource="..." labelId="...">
<!-- ...the members of [gx:Conclusion](https://github.com/FamilySearch/gedcomx/blob/master/specifications/xml-format-specification.md#conclusion)... -->
<gx:text>...</gx:text>
<!-- possibility of extension elements -->
</...>
The FieldValue
JSON type is used to (de)serialize the http://gedcomx.org/v1/FieldValue
data type.
name | description | JSON member | JSON object type |
---|---|---|---|
type | Enumerated value identifying the type of the field value. | type | URI |
labelId | A local id for the label of the field value. | labelId | string |
text | The text of the field value. | text | string |
datatype | Identifier for the data type of the text of the field value. | datatype | URI |
resource | Reference to the resource that is the value. | resource (attribute) | URI |
{
...the members of [Conclusion](https://github.com/FamilySearch/gedcomx/blob/master/specifications/json-format-specification.md#conclusion)...,
"type" : "...",
"labelId" : "...",
"text" : "...",
"datatype" : "...",
"resource" : "...",
...possibility of extension elements...
}
The RecordDescriptor
data type provides metadata about the structure and layout of a record, as
well as the expected data to be extracted from a record.
The identifier for the RecordDescriptor
data type is:
http://gedcomx.org/v1/RecordDescriptor
name | description | data type | constraints |
---|---|---|---|
id | A local identifier for the record descriptor. | string | OPTIONAL. The id is to be used as a "fragment identifier" as defined by RFC 3986, Section 3.5. As such, the constraints of the id are provided in the definition of the media type (e.g. XML, JSON) of the data structure. |
lang | The locale identifier for the record descriptor. | IETF BCP 47 locale tag | OPTIONAL. If not provided, the locale is determined per Internationalization Considerations. |
fields | The descriptors for the fields of a record. | List of http://gedcomx.org/v1/FieldDescriptor . Order is preserved. |
OPTIONAL. |
The gx:RecordDescriptor
XML type is used to (de)serialize the http://gedcomx.org/v1/RecordDescriptor
data type. The gx:recordDescriptor
XML element is used to provide instances of the gx:RecordDescriptor
XML type.
The gx:recordDescriptor
element SHOULD be expected as an extension element to the
Gedcomx
XML Type.
name | description | XML property | XML type |
---|---|---|---|
id | The identifier for the XML element. The id attribute MUST conform to the constraints defined in GEDCOM X XML, Section 7, "Fragment Identifiers". | id (attribute) | xsd:string |
lang | The locale identifier for the record descriptor. | xml:lang (attribute) | IETF BCP 47 locale tag |
fields | The descriptors for the fields of a record. | gx:field | gx:FieldDescriptor . |
<gx:recordDescriptor id="local_id" lang="en">
<gx:field>
...
</gx:field>
...
<!-- possibility of extension elements -->
</gx:recordDescriptor>
The RecordDescriptor
JSON type is used to (de)serialize the http://gedcomx.org/v1/RecordDescriptor
data type. The recordDescriptors
member is used to provide instances of the RecordDescriptor
JSON type.
The recordDescriptors
member SHOULD be expected as an extension to the
Gedcomx
JSON Type.
name | description | JSON member | JSON object type |
---|---|---|---|
id | The identifier for the record descriptor. The id attribute MUST conform to the constraints defined in GEDCOM X JSON, Section 7, "Fragment Identifiers". | id | string |
lang | The locale identifier for the record descriptor. | lang | IETF BCP 47 locale tag |
fields | The descriptors for the fields of a record. | fields | FieldDescriptor . |
"fields" : [ {
"id" : "...",
"lang" : "...",
"fields" : [ { ... } , { ... } ],
...possibility of extension elements...
}
]
The FieldDescriptor
data type provides metadata about the structure and layout of a field, as
well as the expected data to be extracted from a field.
The identifier for the FieldDescriptor
data type is:
http://gedcomx.org/v1/FieldDescriptor
name | description | data type | constraints |
---|---|---|---|
id | A local identifier for the field descriptor. | string | OPTIONAL. The id is to be used as a "fragment identifier" as defined by RFC 3986, Section 3.5. As such, the constraints of the id are provided in the definition of the media type (e.g. XML, JSON) of the data structure. |
originalLabel | The text of the label for the field as originally stated on the record | string | OPTIONAL. |
descriptions | The human-readable descriptions for the fields. | List of http://gedcomx.org/TextValue . Order is preserved. |
OPTIONAL. If more than one description is provided, descriptions are assumed to be given in order of preference, with the most preferred description in the first position in the list. |
values | The descriptors for the field values of the field. | List of http://gedcomx.org/v1/FieldValueDescriptor . Order is preserved. |
OPTIONAL. |
The gx:FieldDescriptor
XML type is used to (de)serialize the http://gedcomx.org/v1/FieldDescriptor
data type.
name | description | XML property | XML type |
---|---|---|---|
id | The identifier for the XML element. The id attribute MUST conform to the constraints defined in GEDCOM X XML, Section 7, "Fragment Identifiers". | id (attribute) | xsd:string |
originalLabel | The text of the label for the field as originally stated on the record | gx:originalLabel | xsd:string |
descriptions | The human-readable descriptions for the fields. | gx:description | gx:TextValue |
values | The descriptors for the field values of the field. | gx:value | gx:FieldValueDescriptor |
<... id="local_id">
<gx:originalLabel>...</gx:originalLabel>
<gx:description>
...
</gx:description>
...
<gx:value>
...
</gx:value>
...
<!-- possibility of extension elements -->
</...>
The FieldDescriptor
JSON type is used to (de)serialize the http://gedcomx.org/v1/FieldDescriptor
data type.
name | description | JSON member | JSON object type |
---|---|---|---|
id | The identifier for the field descriptor. The id attribute MUST conform to the constraints defined in GEDCOM X JSON, Section 7, "Fragment Identifiers". | id | string |
originalLabel | The text of the label for the field as originally stated on the record | originalLabel | string |
descriptions | The human-readable descriptions for the fields. | descriptions | TextValue |
values | The descriptors for the field values of the field. | values | FieldValueDescriptor |
{
"id" : "...",
"originalLabel" : "...",
"descriptions" : [ { ... } , { ... } ],
"values" : [ { ... } , { ... } ],
...possibility of extension elements...
}
The FieldValueDescriptor
data type provides metadata about the structure and layout of a field, as
well as the expected data to be extracted from a field.
The identifier for the FieldValueDescriptor
data type is:
http://gedcomx.org/v1/FieldValueDescriptor
name | description | data type | constraints |
---|---|---|---|
id | A local identifier for the field value descriptor. | string | OPTIONAL. The id is to be used as a "fragment identifier" as defined by RFC 3986, Section 3.5. As such, the constraints of the id are provided in the definition of the media type (e.g. XML, JSON) of the data structure. |
type | Enumerated value identifying the type of the field value. | Enumerated Value | OPTIONAL. If provided, MUST identify a field value type, and use of a known field value type is RECOMMENDED. |
labelId | The id for the label of this field value. Field values can be associated with their descriptor by comparing the value of the lableId . |
string | OPTIONAL. |
optional | Whether the field value was considered optional on the record. Used as a hint to whether the field value should be displayed even if the value is empty. | boolean | OPTIONAL |
labels | The human-readable labels for the field values. | List of http://gedcomx.org/TextValue . Order is preserved. |
OPTIONAL. If more than one display label is provided, display labels are assumed to be given in order of preference, with the most preferred display label in the first position in the list. |
displaySortKey | A sort key for sorting this field value relative to other field values according to how they should be displayed for viewing. | string | OPTIONAL |
entrySortKey | A sort key for sorting this field value relative to other field values according to how they should be entered for editing. | string | OPTIONAL |
entryRequired | Whether some kind of entry is required when entering data for editing. | boolean | OPTIONAL |
editable | Whether the field value is editable. Some field values might be composed from other field values or otherwise calculated by the system. | boolean | OPTIONAL |
parentLabelId | The id of the label for the "parent" field value. For example, the parent field value of a "given name" field value might be the "name" field value. | string | OPTIONAL |
The gx:FieldValueDescriptor
XML type is used to (de)serialize the http://gedcomx.org/v1/FieldValueDescriptor
data type.
name | description | XML property | XML type |
---|---|---|---|
id | The identifier for the XML element. The id attribute MUST conform to the constraints defined in GEDCOM X XML, Section 7, "Fragment Identifiers". | id (attribute) | xsd:string |
type | Enumerated value identifying the type of the field value. | type (attribute) | URI |
labelId | The id for the label of this field value. | labelId (attribute) | xsd:string |
optional | Whether the field value was considered optional on the record. | optional (attribute) | xsd:boolean |
labels | The human-readable labels for the field values. | gx:label | gx:TextValue |
displaySortKey | A sort key for sorting this field value relative to other field values according to how they should be displayed for viewing. | displaySortKey (attribute) | xsd:string |
entrySortKey | A sort key for sorting this field value relative to other field values according to how they should be entered for editing. | entrySortKey (attribute) | xsd:string |
entryRequired | Whether some kind of entry is required when entering data for editing. | entryRequired (attribute) | xsd:boolean |
editable | Whether the field value is editable. Some field values might be composed from other field values or otherwise calculated by the system. | editable (attribute) | xsd:boolean |
parentLabelId | The id of the label for the "parent" field value. For example, the parent field value of a "given name" field value might be the "name" field value. | parentLabelId (attribute) | xsd:string |
<... id="..." type="..." labelId="..." optional="..." editable="..." displaySortKey="..." entrySortKey="..." entryRequired="..." parentLabelId="...">
<gx:label>
...
</gx:label>
...
<!-- possibility of extension elements -->
</...>
The FieldDescriptor
JSON type is used to (de)serialize the http://gedcomx.org/v1/FieldDescriptor
data type.
name | description | JSON member | JSON object type |
---|---|---|---|
id | The identifier for the JSON element. The id attribute MUST conform to the constraints defined in GEDCOM X XML, Section 7, "Fragment Identifiers". | id | string |
type | Enumerated value identifying the type of the field value. | type | URI |
labelId | The id for the label of this field value. | labelId | string |
optional | Whether the field value was considered optional on the record. | optional | boolean |
labels | The human-readable labels for the field values. | labels | TextValue |
displaySortKey | A sort key for sorting this field value relative to other field values according to how they should be displayed for viewing. | displaySortKey | string |
entrySortKey | A sort key for sorting this field value relative to other field values according to how they should be entered for editing. | entrySortKey | string |
entryRequired | Whether some kind of entry is required when entering data for editing. | entryRequired | boolean |
editable | Whether the field value is editable. Some field values might be composed from other field values or otherwise calculated by the system. | editable | boolean |
parentLabelId | The id of the label for the "parent" field value. For example, the parent field value of a "given name" field value might be the "name" field value. | parentLabelId | string |
{
"id" : "...",
"type" : "...",
"labelId" : "...",
"optional" : ...,
"labels" : [ { ... } , { ... } ],
"displaySortKey" : "...",
"entrySortKey" : "...",
"entryRequired" : ...,
"editable" : ...,
"parentLabelId" : "...",
...possibility of extension elements...
}
This section defines a set of extensions to data types already defined by the GEDCOM X Conceptual Model and and describes how the properties are included as extensions to GEDCOM X JSON and GEDCOM X XML.
The following properties are defined as extensions to the
Fact
Data Type:
name | description | data type | constraints |
---|---|---|---|
primary | An indication of whether a given fact on a person or relationship is considered the "primary" fact in the context of a record. | boolean | OPTIONAL. |
name | XML property | XML type |
---|---|---|
primary | primary (attribute) | xsd:boolean |
name | JSON member | JSON object type |
---|---|---|
primary | primary | boolean |
The following properties are defined as extensions to the
Person
Data Type:
name | description | data type | constraints |
---|---|---|---|
principal | An indication of whether a person considered the "principal" person in the context of a record. | boolean | OPTIONAL. |
name | XML property | XML type |
---|---|---|
principal | principal (attribute) | xsd:boolean |
name | JSON member | JSON object type |
---|---|---|
principal | principal | boolean |
The following properties are defined as extensions to the
SourceDescription
Data Type:
name | description | data type | constraints |
---|---|---|---|
titleLabel | A label for the title of the resource being described. | string | OPTIONAL. |
sortKey | A key that can be alphanumerically compared to the sort keys of other resources that indicates the order of records in a collection. | string | OPTIONAL. |
descriptorRef | A reference to the descriptor for the record being described. | URI | OPTIONAL. If provided, MUST resolve to an instance of http://gedcomx.org/v1/RecordDescriptor . |
name | XML property | XML type |
---|---|---|
titleLabel | gx:titleLabel | xsd:string |
sortKey | sortKey (attribute) | xsd:string |
descriptorRef | gx:descriptor | gx:ResourceReference |
name | JSON member | JSON object type |
---|---|---|
titleLabel | titleLabel | string |
sortKey | sortKey | string |
descriptorRef | descriptor | ResourceReference |
The following properties are defined as extensions to the
SourceReference
Data Type:
name | description | data type | constraints |
---|---|---|---|
qualifiers | Qualifiers for the reference, used to identify specific fragments of the source that are being referenced. | List of http://gedcomx.org/v1/Qualifier | OPTIONAL. If provided, use of a known source reference qualifier is RECOMMENDED. |
The following name part qualifiers are defined:
name | value |
---|---|
http://gedcomx.org/CharacterRegion |
A region of text in a digital document, in the form of a,b where a is the start character and b is the end character. The meaning of this qualifier is undefined if the source being referenced is not a digital document. |
http://gedcomx.org/RectangleRegion |
A rectangular region of a digital image. The value of the qualifier is interpreted as a series of four comma-separated numbers. If all of the numbers is less than 1, the value is interpreted in the form of x1,y1,x2,y2 where x1,y1 is the relative percentage-based coordinates of the top-left corner of the rectangle and x2,y2 is the relative percentage-based coordinates of the bottom-right corner of the rectangle. If any of the numbers is more than 1, the value is interpreted in the form of x,y,w,h where x is the point on the X axis of the image in pixels, y is the point on the Y axis in pixels, w is the width of the rectangle in pixels, and h in the height of the rectangle in pixels. The meaning of this qualifier is undefined if the source being referenced is not a digital image. |
http://gedcomx.org/TimeRegion |
A region of time of a digital audio or video recording, in the form of a,b where a is the starting point in milliseconds and b is the ending point in milliseconds. The meaning of this qualifier is undefined if the source being referenced is not a digital audio or video recording. |
name | XML property | XML type |
---|---|---|
qualifiers | gx:qualifier | gx:Qualifier |
name | JSON member | JSON object type |
---|---|---|
qualifiers | qualifiers | array of Qualifier |
The following properties are defined as extensions to the
Coverage
Data Type:
name | description | data type | constraints |
---|---|---|---|
recordType | URI identifying the type of record being covered. | Enumerated Value | REQUIRED. MUST identify a resource type, and use of a known resource type is RECOMMENDED. |
name | XML property | XML type |
---|---|---|
recordType | gx:recordType | URI |
name | JSON member | JSON object type |
---|---|---|
recordType | recordType | URI |
As a convenience for exchanging sets of records in a single bundle, this specification defines an additional media type:
application/x-gedcomx-records-v1+xml
The QName of a GEDCOM X XML Record Set element is defined by a LocalPart
of the value records
and the NamespaceURI
of the value http://gedcomx.org/v1/
.
The data type of the GEDCOM X Record Set element is defined as follows:
name | description | XML property | XML type |
---|---|---|---|
id | The identifier for the XML element. The id attribute MUST conform to the constraints defined in GEDCOM X XML, Section 7, "Fragment Identifiers". | id (attribute) | xsd:string |
lang | The locale identifier for the record set. | IETF BCP 47 locale tag | OPTIONAL. If not provided, the locale is determined per Internationalization Considerations. |
metadata | A container for metadata common to all records in the record set. Examples include collection hierarchy and record descriptors. | gx:metadata | gx:Gedcomx |
records | The records in the data set. | gx:record | gx:Gedcomx |
The following is an example of the structure of a GEDCOM X XML Element:
<records xmlns="http://gedcomx.org/v1/">
<metadata>...</metadata>
<record>...</record>
<record>...</record>
<record>...</record>
<record>...</record>
...
<!-- possibility of extension elements -->
</gedcomx>