Developer documentation · schema 3.1.8GitHub
Fair3RFDF schema

Writing the schema

Glossary of JSON keys

Key Meaning
condition Visibility condition for a section
visible_if Visibility condition for a field
repeatable Section can be repeated
initial_instances Pre-filled rows for repeatable sections
prefill_from_user On a repeatable section: which of its fields the consumer may fill in an empty instance from the signed-in user's profile (fields.<id>.value fixed, or .profile / .label_profile / .search_profile keys of the profile), see "Repeatable sections"
depends_on Parent field required before API query
deprecated On an API: since, replaced_by (and reason) of a retired API, see "Deprecating an API"
api Default API for api_search fields
api_by_taxon Dynamic API selection by organism
on_change Actions triggered on field change
bind_to Reads a key (or "a || b" fallback chain) from a related result's mapper.extra into this field's value, editable unless readonly
update_display_field On an api_search field: which field to push the selected result's extra data into
dependent_on_field The field whose selection/change drives this field's auto-fill or reset
show_xrefs On an api_search field: display the selected result's cross-reference links under the field
xref_concept On an api_search field: labels which concept ("Gene", "Allele"…) its cross-references belong to, so several such fields in the same row don't get their xrefs mixed up
mapper.extra Per-item key/value data carried on an API result, read via bind_to or $key in output.obj
mapper.xrefs / xref_from_extra / xref_from_extra_array Cross-reference links shown for a result: static, derived from a single "PREFIX:ID" in extra, or from several at once (comma-separated)
output.tpl.subjectScheme: "$scheme" Resolves per selected result from an obo_ontology result's own ontology_prefix, instead of the field's single static mapper.scheme — for a field whose api searches more than one OLS4 ontology at once
mapper.id_candidates Fallback id templates tried in order when the primary one resolves empty
mapper.detail_fetch Secondary API call, scoped to the selected result, to enrich extra with data the search endpoint didn't provide
source_tag / dynamic_source_tag Badge naming the data source of a result; dynamic variant varies per result
exclude_categories Result categories to drop from an API response
query_prefix_with_gene Prefixes the search query with the selected gene symbol
provides_chromosome_location Flags an API as a source for gene chromosome location auto-fill
api_fallback Per-taxon backup APIs tried if the routed api_by_taxon API fails
xref_catalog Top-level dictionary standardizing id → source database → URI resolution
output.path Destination in FDF JSON
output.mode Write mode (set, append, collect_object…)
output.tpl Value mapping template
output.obj Auxiliary fields for enrichment
display_mapping Dataset page rendering rules
display_mapping.labels Maps a subjectScheme to the label shown before its value on the dataset page — keep the prefix here, not baked into output.tpl.subject

Edit this page on GitHub