Developer documentation · schema 3.1.8GitHub
Fair3RFDF schema

Writing the schema

Display mapping

Control how data renders on the dataset page:

"display_mapping": {
  "source": "subjects",
  "filter": { "subjectScheme": "GeneID" },
  "display_type": "list_links"
}
Key Description
source Which output path(s) to read ("subjects", ["subjects"], "fundingReferences"…)
filter Restricts to matching entries, e.g. { "subjectScheme": "GeneID" } or { "subjectScheme": [...] } for several schemes at once (used by composite to pull multiple fields into one block)
labels Maps each subjectScheme in filter to the label shown before its value on the dataset page (mainly for composite), e.g. { "geneAccessionId": "Gene" } — this is why field output.tpl.subject should hold the raw value, not a hardcoded "Gene: $label" prefix
display_type How the entries are rendered, see table below

Available display types:

Type Use case
composite Assembles multiple fields into one block
authors_merged Merges creators and contributors
descriptions Renders DataCite descriptions (Abstract, Methods…)
list_links List with clickable URLs
list_links_with_scheme Links with scheme labels (EFO, UBERON…)
badges Short lists as visual tags
text Raw text output
related_identifiers Related resources table

Edit this page on GitHub