51ExportRelationships.json structure
Available with Aviation Charting license.
The 51ExportRelationships.json file contains a series of queries represented as object parts for each primary table. The purpose of each query is to produce related data on a primary table. Related data is produced by joining the primary table with at least one associated table. The results of these queries are used by the 51ExportTemplate.xml file, and the fields listed in each query can be referenced in the template.
Review Aeronautical Information System (AIS) Tables mapped to exported Aeronautical Information Exchange Model (AIXM) 5.1 features for a listing of all primary tables and related tables.
Caution:
It is recommended that you create backup copies of the outlined configuration files before editing them to avoid data loss.
Query object parts
The queries are grouped by primary table. Each query is represented as an object with fields, tables, where, and specialkeys sections. These sections are described in the table below.
Learn more about queries in 51ExportRelationships
|
Section |
Description |
|---|---|
|
|
The |
|
|
The |
|
|
The |
|
|
The The |
Example
The following example shows two query objects and demonstrates the use of the fields, tables, where, and specialkeys sections:
{
"primarytable_a": [
{
"fields": [
"primarytable_a.objectid",
"notes.objectid",
"notes.type_code",
"notes.note_txt"
],
"tables": [
"primarytable_a",
"notes"
],
"where": "primarytable_a.objectid = notes.reference_id"
},
{
"fields": [
"primarytable_a.objectid",
"relatedtable.clientkey_id",
"notes.objectid",
"notes.type_code",
"notes.note_txt"
],
"tables": [
"primarytable_a",
"relatedtable",
"notes"
],
"where": "primarytable_a.gfid = relatedtable.related_id AND relatedtable.objectid = notes.reference_id",
"specialkeys": {
"notes.objectid": "relatedtable_notes_oid"
}
}
]
}
The first query joins the primary table to notes and makes notes.objectid available as a duplicate reference ID to the 51ExportTemplate.
The second query joins the primary table to an intermediate related table and joins the related table to notes. The specialkeys section creates an alias for relatedtable_notes_oid to resolve conflicts with duplicated notes.objectid from the first query. This allows the 51ExportTemplate to write notes from the related table using related_notes_oid as the reference ID. Refer to duplicate attributes in the 51ExportTemplate for more information about the use of duplicate attributes.