Skip to content

Instantly share code, notes, and snippets.

@robhoare
Created January 18, 2015 03:36
Show Gist options
  • Save robhoare/340ed7dd9fa96e6d9c76 to your computer and use it in GitHub Desktop.
Save robhoare/340ed7dd9fa96e6d9c76 to your computer and use it in GitHub Desktop.
Familysearch record example - sort-of Gedcom-X for records
{
"metadata": {
"sources": [
{
"id": "s1",
"identifier": {
"value": "https://familysearch.org/pal:/MM9.3.1/TH-1951-26085-5200-94?cc=1952868"
},
"creator": [
"das.familysearch.org"
],
"type": "IMAGE"
}
],
"externalId": [
{
"value": "1001002314304",
"type": "org.familysearch.easy.record_id"
}
],
"format": {
"value": "application/sord+xml"
},
"identifier": {
"value": "https://familysearch.org/pal:/MM9.1.2/9MH2-JSVL"
},
"isPartOf": {
"identifier": {
"value": "https://familysearch.org/recapi/sord/collection/1952868/records"
},
"isPartOf": {
"identifier": {
"value": "https://familysearch.org/recapi/sord/collection/1952868"
},
"title": [
{
"lang": "en",
"value": "United Kingdom, Chelsea Pensioners' Service Records, 1760-1913"
}
],
"type": "COLLECTION"
},
"title": [
{
"lang": "en",
"value": "United Kingdom, Chelsea Pensioners' Service Records, 1760-1913"
}
],
"type": "CONTAINER"
},
"created": {
"value": "2013-11-07T06:15:51.556Z"
},
"title": [
{
"lang": "en",
"value": "Entry for James Mcnay, \"United Kingdom, Chelsea Pensioners' Service Records, 1760-1913\""
}
],
"coverage": [
{
"spatial": [
{
"place": "United Kingdom"
}
],
"recordType": "PENSION"
}
],
"modified": {
"value": "2014-12-06T08:22:19.104Z"
},
"bibliographicCitation": "\"United Kingdom, Chelsea Pensioners' Service Records, 1760-1913,\" index and images, <i>FamilySearch</i> (https://familysearch.org/pal:/MM9.1.2/9MH2-JSVL : accessed 18 January 2015), ; from \"Chelsea Pensioners' Service Records 1760-1913,\" index and images, <i>findmypast</i> (http://www.findmypast.com : n.d.); citing WO97, WO 97, The National Archives, Kew, Surrey. ",
"language": {
"value": "en-US"
},
"type": "RECORD"
},
"person": [
{
"name": [
{
"original": {
"parts": [
{
"type": "GIVEN",
"text": "JAMES",
"fieldId": "PR_NAME_GN_ORIG",
"sourceCitation": [],
"id": "74"
},
{
"type": "SURNAME",
"text": "MCNAY",
"fieldId": "PR_NAME_SURN_ORIG",
"sourceCitation": [],
"id": "75"
}
],
"fieldId": "PR_NAME_ORIG",
"note": [],
"sourceCitation": [],
"id": "73"
},
"normalized": [
{
"parts": [
{
"type": "GIVEN",
"text": "James",
"fieldId": "PR_NAME_GN",
"sourceCitation": [],
"id": "98"
},
{
"type": "SURNAME",
"text": "Mcnay",
"fieldId": "PR_NAME_SURN",
"sourceCitation": [],
"id": "99"
}
],
"text": "James Mcnay",
"fieldId": "PR_NAME",
"note": [],
"sourceCitation": [],
"id": "77"
}
],
"type": "NAME",
"note": [],
"sourceCitation": [],
"id": "96"
}
],
"url": "https://familysearch.org/pal:/MM9.1.1/V5H5-5F8",
"principal": true,
"characteristic": [
{
"normalized": [
{
"text": "21",
"fieldId": "PR_AGE",
"note": [],
"sourceCitation": [],
"id": "78"
}
],
"type": "AGE",
"note": [],
"sourceCitation": [],
"id": "103"
},
{
"description": "PERSON_TITLE",
"normalized": [
{
"text": "James Mcnay, \"United Kingdom, Chelsea Pensioners' Service Records, 1760-1913\"",
"fieldId": "PERSON_TITLE",
"note": [],
"sourceCitation": []
}
],
"type": "OTHER",
"note": [],
"sourceCitation": []
},
{
"description": "PERSON_CITATION",
"normalized": [
{
"text": "\"United Kingdom, Chelsea Pensioners' Service Records, 1760-1913,\" index and images, <i>FamilySearch</i> (https://familysearch.org/pal:/MM9.1.1/V5H5-5F8 : accessed 18 January 2015), James Mcnay, ; from \"Chelsea Pensioners' Service Records 1760-1913,\" index and images, <i>findmypast</i> (http://www.findmypast.com : n.d.); citing WO97, WO 97, The National Archives, Kew, Surrey. ",
"fieldId": "PERSON_CITATION",
"note": [],
"sourceCitation": []
}
],
"type": "OTHER",
"note": [],
"sourceCitation": []
}
],
"roleInEvent": [
{
"event": {
"type": "PENSION",
"primary": true,
"place": {
"normalized": [
{
"text": "United Kingdom",
"fieldId": "EVENT_PLACE",
"note": [],
"sourceCitation": [],
"id": "1"
}
],
"note": [],
"sourceCitation": [],
"id": "3"
},
"note": [],
"sourceCitation": [],
"id": "2"
},
"roleType": "PRINCIPAL",
"note": [],
"sourceCitation": [],
"id": "79"
},
{
"event": {
"date": {
"normalized": [
{
"parts": [
{
"type": "YEAR",
"text": "1797",
"fieldId": "PR_BIRTH_YEAR_ESTIMATED",
"sourceCitation": [],
"id": "8"
}
],
"fieldId": "PR_BIRTH_DATE_ESTIMATED",
"note": [],
"sourceCitation": [],
"id": "4"
}
],
"note": [],
"sourceCitation": [],
"id": "6"
},
"type": "BIRTH",
"primary": false,
"place": {
"original": {
"text": "Hillsborough, Hillsborough, Down, Irl",
"fieldId": "PR_BIRTH_PLACE_ORIG",
"note": [],
"sourceCitation": [],
"id": "7"
},
"normalized": [
{
"text": "Down",
"fieldId": "PR_BIRTH_PLACE",
"note": [],
"sourceCitation": [],
"id": "10"
}
],
"note": [],
"sourceCitation": [],
"id": "9"
},
"note": [],
"sourceCitation": [],
"id": "5"
},
"roleType": "PRINCIPAL",
"note": [],
"sourceCitation": [],
"id": "81"
}
],
"gender": [],
"note": [],
"sourceCitation": [],
"id": "p_13712350061",
"metadata": {
"externalId": [
{
"value": "1001002314304",
"type": "org.familysearch.easy.record_id"
}
],
"format": {
"value": "application/sord+xml"
},
"identifier": {
"value": "https://familysearch.org/pal:/MM9.1.1/V5H5-5F8"
},
"isPartOf": {
"identifier": {
"value": "https://familysearch.org/recapi/sord/collection/1952868/records"
},
"isPartOf": {
"identifier": {
"value": "https://familysearch.org/recapi/sord/collection/1952868"
},
"title": [
{
"lang": "en",
"value": "United Kingdom, Chelsea Pensioners' Service Records, 1760-1913"
}
],
"type": "COLLECTION"
},
"title": [
{
"lang": "en",
"value": "United Kingdom, Chelsea Pensioners' Service Records, 1760-1913"
}
],
"type": "CONTAINER"
},
"created": {
"value": "2013-11-07T06:15:51.556Z"
},
"title": [
{
"lang": "en",
"value": "James Mcnay, \"United Kingdom, Chelsea Pensioners' Service Records, 1760-1913\""
}
],
"coverage": [
{
"spatial": [
{
"place": "United Kingdom"
}
],
"recordType": "PENSION"
}
],
"modified": {
"value": "2014-12-06T08:22:19.104Z"
},
"bibliographicCitation": "\"United Kingdom, Chelsea Pensioners' Service Records, 1760-1913,\" index and images, <i>FamilySearch</i> (https://familysearch.org/pal:/MM9.1.1/V5H5-5F8 : accessed 18 January 2015), James Mcnay, ; from \"Chelsea Pensioners' Service Records 1760-1913,\" index and images, <i>findmypast</i> (http://www.findmypast.com : n.d.); citing WO97, WO 97, The National Archives, Kew, Surrey. ",
"language": {
"value": "en-US"
},
"type": "RECORD"
},
"personBestName": "James Mcnay",
"localizedGender": "Unknown",
"title": "James Mcnay, \"United Kingdom, Chelsea Pensioners' Service Records, 1760-1913\"",
"personRecordTitle": "James Mcnay",
"imageMeta": {
"isExternalImage": false,
"thirdPartyHostName": "das.familysearch.org",
"thirdPartyURL": "",
"imageURL": "https://familysearch.org/pal:/MM9.3.1/TH-1951-26085-5200-94?cc=1952868",
"wikiCollectionURL": "/learn/wiki/en/api.php?action=query&list=search&srwhat=text&format=json&srsearch=CID1952868"
},
"hasImage": true
}
],
"event": [
{
"type": "PENSION",
"primary": true,
"place": {
"normalized": [
{
"text": "United Kingdom",
"fieldId": "EVENT_PLACE",
"note": [],
"sourceCitation": [],
"id": "1"
}
],
"note": [],
"sourceCitation": [],
"id": "3"
},
"note": [],
"sourceCitation": [],
"id": "2"
},
{
"date": {
"normalized": [
{
"parts": [
{
"type": "YEAR",
"text": "1797",
"fieldId": "PR_BIRTH_YEAR_ESTIMATED",
"sourceCitation": [],
"id": "8"
}
],
"fieldId": "PR_BIRTH_DATE_ESTIMATED",
"note": [],
"sourceCitation": [],
"id": "4"
}
],
"note": [],
"sourceCitation": [],
"id": "6"
},
"type": "BIRTH",
"primary": false,
"place": {
"original": {
"text": "Hillsborough, Hillsborough, Down, Irl",
"fieldId": "PR_BIRTH_PLACE_ORIG",
"note": [],
"sourceCitation": [],
"id": "7"
},
"normalized": [
{
"text": "Down",
"fieldId": "PR_BIRTH_PLACE",
"note": [],
"sourceCitation": [],
"id": "10"
}
],
"note": [],
"sourceCitation": [],
"id": "9"
},
"note": [],
"sourceCitation": [],
"id": "5"
}
],
"characteristic": [
{
"description": "UNIQUE_IDENTIFIER",
"normalized": [],
"original": {
"text": "1001002314304",
"fieldId": "UNIQUE_IDENTIFIER",
"note": [],
"sourceCitation": [],
"id": "11"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "12"
},
{
"description": "IMAGE_ID",
"normalized": [
{
"text": "dgs:005233463.005233463_00776",
"fieldId": "IMAGE_ID_NORM",
"note": [],
"sourceCitation": [],
"id": "15"
}
],
"original": {
"text": "/005233463/005233463_00776.jpg",
"fieldId": "IMAGE_ID",
"note": [],
"sourceCitation": [],
"id": "13"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "14"
},
{
"description": "EVENT_TYPE",
"normalized": [],
"original": {
"text": "Pension",
"fieldId": "EVENT_TYPE",
"note": [],
"sourceCitation": [],
"id": "17"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "16"
},
{
"description": "EVENT_YEAR_RANGE",
"normalized": [],
"original": {
"text": "1760-1913",
"fieldId": "EVENT_YEAR_RANGE",
"note": [],
"sourceCitation": [],
"id": "19"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "18"
},
{
"description": "ATTESTATION_DAY",
"normalized": [],
"original": {
"text": "5",
"fieldId": "ATTESTATION_DAY",
"note": [],
"sourceCitation": [],
"id": "20"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "24"
},
{
"description": "ATTESTATION_MONTH",
"normalized": [],
"original": {
"text": "OCTOBER",
"fieldId": "ATTESTATION_MONTH",
"note": [],
"sourceCitation": [],
"id": "21"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "26"
},
{
"description": "ATTESTATION_YEAR",
"normalized": [],
"original": {
"text": "1818",
"fieldId": "ATTESTATION_YEAR",
"note": [],
"sourceCitation": [],
"id": "22"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "30"
},
{
"description": "BOX_NBR",
"normalized": [],
"original": {
"text": "328",
"fieldId": "BOX_NBR",
"note": [],
"sourceCitation": [],
"id": "23"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "32"
},
{
"description": "COUNTRY_CODE",
"normalized": [],
"original": {
"text": "IRL",
"fieldId": "COUNTRY_CODE",
"note": [],
"sourceCitation": [],
"id": "25"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "34"
},
{
"description": "COUNTY_CODE",
"normalized": [],
"original": {
"text": "DOW",
"fieldId": "COUNTY_CODE",
"note": [],
"sourceCitation": [],
"id": "27"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "36"
},
{
"description": "DIGITAL_GS_NUMBER",
"normalized": [],
"original": {
"text": "005233463",
"fieldId": "DIGITAL_GS_NUMBER",
"note": [],
"sourceCitation": [],
"id": "28"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "38"
},
{
"description": "DISCHARGE_CORPS",
"normalized": [],
"original": {
"text": "11th Foot",
"fieldId": "DISCHARGE_CORPS",
"note": [],
"sourceCitation": [],
"id": "29"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "40"
},
{
"description": "DISCHARGE_CORPS_CODE",
"normalized": [],
"original": {
"text": "1700",
"fieldId": "DISCHARGE_CORPS_CODE",
"note": [],
"sourceCitation": [],
"id": "31"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "42"
},
{
"description": "DISCHARGE_RANK",
"normalized": [],
"original": {
"text": "PRIVATE",
"fieldId": "DISCHARGE_RANK",
"note": [],
"sourceCitation": [],
"id": "33"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "46"
},
{
"description": "DOCUMENT_TYPE",
"normalized": [],
"original": {
"text": "D",
"fieldId": "DOCUMENT_TYPE",
"note": [],
"sourceCitation": [],
"id": "35"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "48"
},
{
"description": "EVENT_COUNTY",
"normalized": [],
"original": {
"text": "Down",
"fieldId": "EVENT_COUNTY",
"note": [],
"sourceCitation": [],
"id": "37"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "50"
},
{
"description": "EVENT_PARISH",
"normalized": [],
"original": {
"text": "Hillsborough",
"fieldId": "EVENT_PARISH",
"note": [],
"sourceCitation": [],
"id": "39"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "52"
},
{
"description": "EVENT_TOWN",
"normalized": [],
"original": {
"text": "Hillsborough",
"fieldId": "EVENT_TOWN",
"note": [],
"sourceCitation": [],
"id": "41"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "54"
},
{
"description": "FOLDER_IMAGE_SEQ",
"normalized": [],
"original": {
"text": "776",
"fieldId": "FOLDER_IMAGE_SEQ",
"note": [],
"sourceCitation": [],
"id": "43"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "56"
},
{
"description": "FOLDER",
"normalized": [],
"original": {
"text": "005233463",
"fieldId": "FOLDER",
"note": [],
"sourceCitation": [],
"id": "44"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "58"
},
{
"description": "FIRST_IMAGE",
"normalized": [],
"original": {
"text": "WO97-0328-131-001.jpg",
"fieldId": "FIRST_IMAGE",
"note": [],
"sourceCitation": [],
"id": "45"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "60"
},
{
"description": "FMP_IMAGE_ID",
"normalized": [],
"original": {
"text": "970328131",
"fieldId": "FMP_IMAGE_ID",
"note": [],
"sourceCitation": [],
"id": "47"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "62"
},
{
"description": "IMAGE_APID",
"normalized": [],
"original": {
"text": "TH-1951-26085-5200-94",
"fieldId": "IMAGE_APID",
"note": [],
"sourceCitation": [],
"id": "49"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "64"
},
{
"description": "IMAGE_NBR",
"normalized": [],
"original": {
"text": "00776",
"fieldId": "IMAGE_NBR",
"note": [],
"sourceCitation": [],
"id": "51"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "66"
},
{
"description": "IMAGE_PAL",
"normalized": [],
"original": {
"text": "https://familysearch.org/pal:/MM9.3.1/TH-1951-26085-5200-94",
"fieldId": "IMAGE_PAL",
"note": [],
"sourceCitation": [],
"id": "53"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "68"
},
{
"description": "NUM_OF_IMAGES",
"normalized": [],
"original": {
"text": "2",
"fieldId": "NUM_OF_IMAGES",
"note": [],
"sourceCitation": [],
"id": "55"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "72"
},
{
"description": "PR_NAME_FNAME_ORIG",
"normalized": [],
"original": {
"text": "JAMES",
"fieldId": "PR_NAME_FNAME_ORIG",
"note": [],
"sourceCitation": [],
"id": "57"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "76"
},
{
"description": "PR_NAME_SURN_STD",
"normalized": [],
"original": {
"text": "MCNAY",
"fieldId": "PR_NAME_SURN_STD",
"note": [],
"sourceCitation": [],
"id": "59"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "80"
},
{
"description": "RECORD_GROUP",
"normalized": [],
"original": {
"text": "11-1220; 02-08-2012",
"fieldId": "RECORD_GROUP",
"note": [],
"sourceCitation": [],
"id": "61"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "82"
},
{
"description": "RECORD_INCOMPLETE",
"normalized": [],
"original": {
"text": "0",
"fieldId": "RECORD_INCOMPLETE",
"note": [],
"sourceCitation": [],
"id": "63"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "84"
},
{
"description": "REF_NBR",
"normalized": [],
"original": {
"text": "970328131",
"fieldId": "REF_NBR",
"note": [],
"sourceCitation": [],
"id": "65"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "86"
},
{
"description": "SEQ_NBR",
"normalized": [],
"original": {
"text": "131",
"fieldId": "SEQ_NBR",
"note": [],
"sourceCitation": [],
"id": "67"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "88"
},
{
"description": "SERIES",
"normalized": [],
"original": {
"text": "WO97",
"fieldId": "SERIES",
"note": [],
"sourceCitation": [],
"id": "69"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "90"
},
{
"description": "SORT_KEY",
"normalized": [
{
"text": "1001002314304#12",
"fieldId": "SORT_KEY",
"note": [],
"sourceCitation": [],
"id": "70"
}
],
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "92"
},
{
"description": "SUB_SERIES",
"normalized": [],
"original": {
"text": "1",
"fieldId": "SUB_SERIES",
"note": [],
"sourceCitation": [],
"id": "71"
},
"type": "OTHER",
"note": [],
"sourceCitation": [],
"id": "94"
}
],
"fields": [
{
"displayName": [
{
"lang": "en-US",
"value": "Name"
}
],
"value": "James Mcnay",
"fieldId": "PR_NAME",
"personURL": "https://familysearch.org/pal:/MM9.1.1/V5H5-5F8",
"personId": "p_13712350061"
},
{
"displayName": [
{
"lang": "en-US",
"value": "Event Type"
}
],
"value": "Pension",
"fieldId": "EVENT_TYPE"
},
{
"displayName": [
{
"lang": "en-US",
"value": "Event Year Range"
}
],
"value": "1760-1913",
"fieldId": "EVENT_YEAR_RANGE"
},
{
"displayName": [
{
"lang": "en-US",
"value": "Event Place"
}
],
"value": "United Kingdom",
"fieldId": "EVENT_PLACE"
},
{
"displayName": [
{
"lang": "en-US",
"value": "Birthplace"
}
],
"value": "Down",
"fieldId": "PR_BIRTH_PLACE"
},
{
"displayName": [
{
"lang": "en-US",
"value": "Birth Year (Estimated)"
}
],
"value": "1797",
"fieldId": "PR_BIRTH_YEAR_ESTIMATED"
}
],
"note": [],
"sourceCitation": [],
"id": "r_22081061361",
"recordType": "PENSION",
"principalPerson": "James Mcnay",
"collectionId": "1952868",
"collectionTitle": "United Kingdom, Chelsea Pensioners' Service Records, 1760-1913",
"collectionURL": "/search/collection/1952868",
"collectionTitleNoRange": "United Kingdom, Chelsea Pensioners' Service Records",
"immediateFamily": {
"child": []
},
"otherPersonsOnPage": [],
"personFields": [
{
"displayName": [
{
"lang": "en-US",
"value": "Name"
}
],
"value": "James Mcnay",
"fieldId": "PR_NAME",
"personURL": "https://familysearch.org/pal:/MM9.1.1/V5H5-5F8",
"personId": "p_13712350061"
},
{
"displayName": [
{
"lang": "en-US",
"value": "Event Type"
}
],
"value": "Pension",
"fieldId": "EVENT_TYPE"
},
{
"displayName": [
{
"lang": "en-US",
"value": "Event Year Range"
}
],
"value": "1760-1913",
"fieldId": "EVENT_YEAR_RANGE"
},
{
"displayName": [
{
"lang": "en-US",
"value": "Event Place"
}
],
"value": "United Kingdom",
"fieldId": "EVENT_PLACE"
},
{
"displayName": [
{
"lang": "en-US",
"value": "Birthplace"
}
],
"value": "Down",
"fieldId": "PR_BIRTH_PLACE"
},
{
"displayName": [
{
"lang": "en-US",
"value": "Birth Year (Estimated)"
}
],
"value": "1797",
"fieldId": "PR_BIRTH_YEAR_ESTIMATED"
}
],
"extraFields": []
}
@robhoare
Copy link
Author

Compare this with what is visible to the user on
https://familysearch.org/pal:/MM9.1.1/V5H5-5F8

Note how the normalizing and limiting the types of fields displayed within familysearch loses data: the parish and town (both Hillsborough) are not shown, nor is the discharge regiment (11th foot). Same for the attestation date in 1818.

The event type (pension) doesn't seem to be listed in the gedcom-x fact types, why? https://github.com/FamilySearch/gedcomx/blob/master/specifications/fact-types-specification.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment