FHGFF3 schema reference
FHGFF3 is the FAIR-bioHeaders header for a GFF3 annotation file. It adds #~ YAML lines after the ##gff-version 3 line and one SHA-512/256 checksum over the file’s exact bytes, and it records which genome the coordinates refer to and how the annotation was made.
This page is the field reference, generated from the published schema. For the narrative guide, see Using FH*.
What FHGFF3 describes
An FHGFF3 header answers: which annotation this is, of which organism, which version, who asserts it, when, which genome its coordinates are for, how the annotation was produced, what non-FAIR-bioHeaders sources it drew on, how many features of each type the producer counts, which Sequence Ontology release the feature types follow, what one BUSCO run measured, and which exact bytes the record belongs to.
It does not describe, and never claims:
- that the features are valid. A header never makes a GFF3 file’s contents correct, and a GFF3 file without a header is still plain, valid GFF3;
- sequence, structure or ontology correctness — feature and Sequence Ontology validation belongs to the gff3-validator, which keeps header findings and feature findings separate;
- the proteins themselves (FHP) or the assembly (FHR), each with its own header and checksum.
Contract status
| Status | Released contract. schemaVersion "1.2" shipped in shared specification v0.6.0 on 2026-11-13. |
|---|---|
| Versions this schema accepts | 1.0, 1.1, 1.2. A schema of version M.N also accepts records that state any earlier minor of the same major, and holds each of them to that minor: what a later minor allows is invalid in an earlier one. |
| What it describes | FHGFF3 is the FAIR-bioHeaders header for a GFF3 annotation file. It adds #~ YAML lines after the ##gff-version 3 line and one SHA-512/256 checksum over the file's exact bytes, and records which genome the coordinates refer to and how the annotation was made. Standalone JSON and YAML carry the same record. |
| What it does not cover | FHGFF3 describes the annotation as a resource. It never makes the features valid: a header says nothing about whether a CDS is in frame or whether the terms are correct, and a GFF3 file without a header is still plain, valid GFF3. Feature and Sequence Ontology validation belongs to the gff3-validator, which reports header findings and feature findings separately. |
Serializations with verified support
- GFF3 with a
#~header block after##gff-version 3(optionally##gff-version 3.x.y), before the first feature or##FASTAline. Native directives such as##sequence-regionmay sit among the header lines. - Standalone JSON and YAML metadata files.
- Standalone HTML microdata remains experimental in fair-bioheaders 0.10.0 onward (verified in 0.12.0); reading and writing emit ExperimentalMicrodataWarning. The table builder now exports typed FHGFF3 HTML against the reviewed H1–H8 binding, with an explicit experimental notice and tested extraction equivalence. The binding publication and website deployment gates are separate from runtime availability. There is no FHGFF3 JSON-LD binding.
Tools that implement this contract
fair-bioheaders0.12.0 (PyPI, 2026-11-16) bundles the v0.6.0 schema set, as 0.11.0 did, and reads and writes FHGFF3 1.2, including extension fields and the dotted BUSCO dataset versions, acrosscombine,verify,validate,convert,strip,verify-linksandassess: a1.2record citinghttps://w3id.org/fair-bioheaders/fhgff3/v0.6.0validates, is written into a#~GFF3 header, verifies by checksum and converts back to the identical record (checked 2026-11-18). The same citation is an unsupported schema version in 0.10.0, which bundles v0.5.0.- gff3-validator validates GFF3 syntax, Sequence Ontology terms and biology, and reports FHGFF3 header checks (its HDR rules) alongside — never merged with — the feature results. Its header checks run through the toolkit it depends on: the published 0.1.0 release — PyPI and the
v0.1.0tag, both 2026-10-09, still the newest release of that package — pinsfair-bioheaders >=0.4,<0.5, and 0.4.0 has no FHGFF3 support, so 0.1.0 reports an FHGFF3 header as not checked (HDR-002:header validation is not implemented in this version) rather than checking it against any FHGFF3 contract. Itsmainbranch marks HDR-004 to HDR-010, including the HDR-007 schema check, as implemented, so checking a v0.6.0 header there needs a validator release whose toolkit pin covers 0.11.0. Feature validation does not depend on any of this. - The browser table builder cites pinned v0.6.0 by default (schemaVersion 1.2), retains selectable v0.4.0 (1.0), and exports YAML plus experimental typed FHGFF3 HTML. Extension fields remain in YAML and are omitted from microdata under M5 with a visible warning. HTML reconstruction was tested with installed fair-bioheaders 0.12.0; header metadata does not establish valid features, parent identity or biological correctness. Fixed snapshot selection never falls back to main. Publication readiness and the full browser matrix are recorded under fair-bioheaders.github.io#15.
Schema location
- Fixed schema URL of the current release: https://w3id.org/fair-bioheaders/fhgff3/v0.6.0. Cite the release a record targets: never hard-code a "latest" schema, and never check an unknown version against a different one.
- The same bytes at the release tag: https://github.com/FAIR-bioHeaders/FAIR-bioHeaders-Specification/blob/v0.6.0/fhgff3.json, also fixed at commit 0ae18b00ee.
- Development URL on
main, the current contract, which moves: https://raw.githubusercontent.com/FAIR-bioHeaders/FAIR-bioHeaders-Specification/main/fhgff3.json. - Schema-version registry:
schemas/versions.jsonanddocs/SCHEMA-VERSIONS.md.
Release history
| Shared release | schemaVersion | Published | Fixed schema URL |
|---|---|---|---|
| v0.4.0 | 1.0 | 2026-10-14 | fhgff3/v0.4.0 |
| v0.4.1 | 1.0 | 2026-10-21unchanged from v0.4.0 | fhgff3/v0.4.1 |
| v0.4.2 | 1.0 | 2026-10-28unchanged from v0.4.1 | fhgff3/v0.4.2 |
| v0.5.0 | 1.1 | 2026-11-04 | fhgff3/v0.5.0 |
| v0.6.0 | 1.2 | 2026-11-13 | fhgff3/v0.6.0 |
Field reference
Every field of the contract appears here, including the fields and objects inherited from the shared core: nothing is left out because another type also uses it. Required means the key must be present; when present, requires lists the members that become mandatory once you supply an optional object. Field rows quote direct constraints such as patterns from the schema; conditional and cross-field requirements appear in the rules below. Examples are the values stated by the released example records, which are synthetic, or an illustrative value where no example reaches the field.
Top-level fields
Every field of an FHGFF3 record. The record is a closed object: an unknown top-level key is invalid, with the single exception of the x- extension fields listed last.
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
accessionID | Optional | object (AccessionID)members listed below | none stated | Accession of the annotation Inherited from the shared core (schemas/core.yaml). | Supplied through its members, listed in its own table below. |
annotation | Required | string | none stated | Name of the annotation Required and non-empty for a conforming record, even though | Synthetic annotation of a genome without an FHR headerminimal reference FHGFF3 example (synthetic) source |
annotationProtocol | Optional | string |
| Annotation protocol or workflow reference URI Units: URI | https://example.org/synthetic-annotation-protocolvalue from the released FHGFF3 example source |
annotationSoftware | Optional | array of Software objectswhen present, requires namemembers listed below | none stated | Software that produced or processed the annotation | Supplied through its members, listed in its own table below. |
checksum | Required | string |
| sha2-512/256 checksum value for hashing Inherited from the shared core (schemas/core.yaml). Units: standard padded base64 of the SHA-512/256 digest Covers every byte of the GFF3 file — native directives, features and any Sorting or tidying the GFF3 (for example | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=minimal reference FHGFF3 example (synthetic) source |
completeness | Optional | object (Completeness)when present, requires lineageDataset, completeSingle, completeDuplicated, fragmented, missing, totalmembers listed below | none stated | BUSCO completeness of the annotation, as counts | Supplied through its members, listed in its own table below. |
dateCreated | Required | string |
| Date the annotation was created Inherited from the shared core (schemas/core.yaml). Units: ISO 8601 calendar date | 2026-10-13minimal reference FHGFF3 example (synthetic) source |
derivedFrom | Optional | array of DerivedFrom objectswhen present, requires headerType, checksum, relationshipmembers listed below | none stated | Parent FAIR-bioHeaders files, by checksum. An item with header type FHR and relationship annotates is the annotated genome (at most one) Inherited from the shared core (schemas/core.yaml). The strong genome link. | Supplied through its members, listed in its own table below. |
documentation | Optional | string | none stated | Documentation about the annotation Inherited from the shared core (schemas/core.yaml). | Synthetic example; the accession and SeqCol digest are placeholders.minimal reference FHGFF3 example (synthetic) source |
featureCounts | Optional | array of FeatureCount objectswhen present, requires featureType, countmembers listed below | none stated | Number of features of each type in the file, as asserted by the producer Counts asserted by the producer, per feature type as written in column 3. They are not recounted by the schema. | Supplied through its members, listed in its own table below. |
funding | Optional | string | none stated | Grant line item Inherited from the shared core (schemas/core.yaml). | Grant line item (placeholder)illustrative value |
genomeReference | Optional | object (GenomeReference)when present, requires seqcol_id, accessionmembers listed below | none stated | The annotated genome given by its assembly accession and sequence collection digest, when it is not linked by FHR checksum. An identity asserted by the producer, never a checksum link (FR-006) The weaker of the two genome links: an identity asserted by the producer, never checksum-verified (requirement FR-006). Prefer | Supplied through its members, listed in its own table below. |
identifier | Optional | arrayarray of string values |
| Identifiers of the annotation Inherited from the shared core (schemas/core.yaml). | synthetic:ANN-0001illustrative value |
metadataAuthor | Required | array of Author objectsmembers listed below | none stated | Authors of the FHGFF3 instance Inherited from the shared core (schemas/core.yaml). Required and non-empty for a conforming record; every author needs a non-empty | Supplied through its members, listed in its own table below. |
relatedLink | Optional | arrayarray of string values |
| Related URLs to the annotation Inherited from the shared core (schemas/core.yaml). Units: URI per item Rule R14: validators warn about unusual URI schemes but such a value stays valid; JSON-LD and schema.org writers refuse to emit it as a link. | https://example.org/synthetic-annotation-projectillustrative value |
reuseConditions | Optional | string | none stated | Reuse conditions or license for the annotation Inherited from the shared core (schemas/core.yaml). | public domainillustrative value |
schema | Required | string |
| URL of the FHGFF3 JSON Schema this record follows (raw-main, a release's raw tag URL or its w3id URL; docs/SCHEMA-VERSIONS.md); it identifies the header type (FR-010) Inherited from the shared core (schemas/core.yaml). Units: URL The pattern accepts the shared repository's raw-main or raw-tag
| https://w3id.org/fair-bioheaders/fhgff3/v0.6.0minimal reference FHGFF3 example (synthetic) source |
schemaVersion | Required | string |
| Version of the FHGFF3 schema contract ("MAJOR.MINOR"); 1.1 (extension fields) from v0.5; 1.2 (dotted BUSCO dataset versions) from v0.6 Inherited from the shared core (schemas/core.yaml).
A schema of version M.N also accepts records that state an earlier minor, and holds each of them to that minor: an | 1.2minimal reference FHGFF3 example (synthetic) source |
scholarlyArticle | Optional | string |
| Scholarly article where the annotation was published Inherited from the shared core (schemas/core.yaml). Units: DOI suffix (bare DOI, no resolver prefix) | 10.1093/bib/bbae122illustrative value (the FHR paper DOI) |
soVersion | Optional | string | none stated | Sequence Ontology release used for the feature types, as its data-version (for example 2026-08-07) Units: Sequence Ontology release, as its data-version A free-text version string in the schema: it states which SO release the feature types follow, and the gff3-validator does terms against its own SO data. | 2026-08-07value from the released FHGFF3 example source |
source | Optional | array of Source objectswhen present, requires namemembers listed below | none stated | Sources of the annotation that are not FAIR-bioHeaders files, such as an annotation release or evidence set, as asserted by the producer; never verified by checksum Non-FAIR-bioHeaders origins of the annotation — an annotation release, evidence set or manual contribution — as asserted by the producer. | Supplied through its members, listed in its own table below. |
taxon | Required | object (Taxon)members listed below | none stated | Species name and URL of the species information at identifiers.org Inherited from the shared core (schemas/core.yaml). Must carry a non-empty | Supplied through its members, listed in its own table below. |
version | Required | string | none stated | Version of the annotation Inherited from the shared core (schemas/core.yaml). Version of the annotation, not of the genome it annotates and not | 1.0.0minimal reference FHGFF3 example (synthetic) source |
voucherSpecimen | Optional | string | none stated | Description of the physical sample Inherited from the shared core (schemas/core.yaml). | Synthetic example; no physical specimenillustrative value |
x-<name> | Optional | any JSON valuesingle value or array, at any depth |
| Extension field (rule R15): a top-level key the standard does not define, holding any value the producer needs. Valid from FHGFF3 1.1. Every other unknown key stays invalid, nested objects stay closed, and an Extension fields are covered by the checksum and are omitted from JSON-LD and microdata writers (J9, M5, X9). FHGFF3 has no JSON-LD form; its experimental toolkit microdata writer omits The gff3-validator reports header findings and feature findings separately; an extension key is a header finding, never a feature error. | x-synthetic-evidenceBatch: 2026-09illustrative value |
accessionID — the shared core AccessionID object
The annotation's own accession, name and URL.
- These members come from the shared core (schemas/core.yaml), so they read the same in every header type that imports the object.
- The object is closed: an unknown key inside it is invalid, and so is an
x-extension key at this level (rule R15).
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
accessionID.name | Optional | string | none stated | Accession name | SyntheticAnnotationAccessionplaceholder value; no released FHGFF3 example states an accessionID source |
accessionID.url | Optional | string |
| Accession URL | https://example.org/synthetic-accessionillustrative value |
annotationSoftware[] — the shared Software object
Software that produced or processed the annotation (schemas/shared.yaml); only name is required per entry.
- These members come from the shared objects (schemas/shared.yaml), so they read the same in every header type that imports the object.
- The object is closed: an unknown key inside it is invalid, and so is an
x-extension key at this level (rule R15).
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
annotationSoftware[].commandLineOption | Optional | arrayarray of string values | none stated | Command-line options given to the software, in order | --species, humanvalue from the released FHGFF3 example source |
annotationSoftware[].name | Required | string | none stated | Name of the software | Synthetic gene predictor (placeholder)value from the released FHGFF3 example source |
annotationSoftware[].uri | Optional | string |
| URI of the software | https://example.org/synthetic-gene-predictorillustrative value |
annotationSoftware[].version | Optional | string | none stated | Version of the software | 1.0.0value from the released FHGFF3 example source |
completeness — the shared BUSCO Completeness object
Counts from one BUSCO run against one named lineage dataset (schemas/shared.yaml).
- These members come from the shared objects (schemas/shared.yaml), so they read the same in every header type that imports the object.
- The object is closed: an unknown key inside it is invalid, and so is an
x-extension key at this level (rule R15). - Six members are required whenever the object is present:
lineageDataset,completeSingle,completeDuplicated,fragmented,missingandtotal.
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
completeness.buscoVersion | Optional | string | none stated | Version of BUSCO | 5.8.3illustrative value |
completeness.completeDuplicated | Required | integer |
| Complete duplicated BUSCOs (D) Units: BUSCO groups (D) | 0value from the released FHGFF3 example source |
completeness.completeSingle | Required | integer |
| Complete single-copy BUSCOs (S) Units: BUSCO groups (S) | 1value from the released FHGFF3 example source |
completeness.fragmented | Required | integer |
| Fragmented BUSCOs (F) Units: BUSCO groups (F) | 0value from the released FHGFF3 example source |
completeness.lineageDataset | Required | string |
| BUSCO lineage dataset, including its version suffix; one or more dot-separated numeric version components are allowed, as BUSCO datasets are re-released (for example odb12.2) Units: BUSCO lineage dataset name including its From FHGFF3 1.2 (shared release v0.6.0) the pattern also accepts dot-separated numeric dataset-version components, so a measured lineage name such as | primates_odb10lineage named by the released FHGFF3 example source |
completeness.missing | Required | integer |
| Missing BUSCOs (M) Units: BUSCO groups (M) | 1value from the released FHGFF3 example source |
completeness.mode | Optional | string |
| BUSCO mode | proteinsillustrative value |
completeness.total | Required | integer |
| Number of BUSCO groups searched (n) Units: BUSCO groups searched (n) | 2value from the released FHGFF3 example source |
derivedFrom[] — the shared core DerivedFrom object
Parent FAIR-bioHeaders files by checksum. One item, with headerType: FHR and relationship: annotates, is the annotated genome.
- These members come from the shared core (schemas/core.yaml), so they read the same in every header type that imports the object.
- The object is closed: an unknown key inside it is invalid, and so is an
x-extension key at this level (rule R15). - FHGFF3 is the type where the genome link is normative: see the conditional rules below.
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
derivedFrom[].accessionID | Optional | object (AccessionID)members listed below | none stated | Accession of the parent file | Optional, and no released FHGFF3 example states one for a parent. A parent accession alone is not a verified family link. |
derivedFrom[].checksum | Required | string |
| FHR-family checksum of the parent file Units: standard padded base64 of the parent file's SHA-512/256 This is the checksum of the genome file, not of this GFF3. If it disagrees with the bytes on disk, | 6iEfbweXbENZ/x7c66kT6wUAMaXStwVhZFJbMMyr98A=value from the released FHGFF3 example source |
derivedFrom[].headerType | Required | string |
| FAIR-bioHeaders type of the parent file An | FHRvalue from the released FHGFF3 example source |
derivedFrom[].relationship | Required | string |
| How this file relates to the parent. Provisional vocabulary: a PROV-O or Relation Ontology mapping is pending a maintainer decision (FAIR-bioHeaders-Specification#54). The vocabulary is shared and provisional (FAIR-bioHeaders-Specification#54); | annotatesvalue from the released FHGFF3 example source |
derivedFrom[].seqcol_id | Optional | string |
| Sequence collection digest of the parent, if supplied | Optional, and no released FHGFF3 example states one for a parent. It is the parent's supplied SeqCol digest, never a substitute for the parent checksum. |
derivedFrom[].accessionID — AccessionID
Accession of the parent file
- These members come from the shared core (schemas/core.yaml), so they read the same in every header type that imports the object.
- The object is closed: an unknown key inside it is invalid, and so is an
x-extension key at this level (rule R15).
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
derivedFrom[].accessionID.name | Optional | string | none stated | Accession name | Only meaningful inside a derivedFrom parent link, which the examples state by checksum. Shape: the parent accession's name, as in accessionID.name above. |
derivedFrom[].accessionID.url | Optional | string |
| Accession URL | Only meaningful inside a derivedFrom parent link, which the examples state by checksum. Shape: a URL resolving to that parent accession. |
featureCounts[] — features per type
Producer-asserted counts, one entry per feature type.
- The object is closed: an unknown key inside it is invalid, and so is an
x-extension key at this level (rule R15). - Only
^\S+$is checked onfeatureType: the schema does not know the Sequence Ontology, and no count is verified against the file.
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
featureCounts[].count | Required | integer |
| Number of features of this type Units: features of that type | 1value from the released FHGFF3 example source |
featureCounts[].featureType | Required | string |
| Feature type as written in column 3 (an SO term name or accession) Units: SO term name or accession, as written in column 3 | genevalue from the released FHGFF3 example source |
genomeReference — the declared genome
The annotated genome named by assembly accession plus SeqCol digest, when it is not linked by FHR checksum (requirement FR-006).
- The object is closed: an unknown key inside it is invalid, and so is an
x-extension key at this level (rule R15). accessionandseqcol_idare required together whenever the object is present;assemblyNameis optional.
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
genomeReference.accession | Required | string |
| Assembly accession with its version, as published Units: assembly accession with its version
| SYNTHETIC_ASSEMBLY.1minimal reference FHGFF3 example (synthetic) source |
genomeReference.assemblyName | Optional | string | none stated | Assembly name, as in the GFF3 genome-build directive Compare with the file's own | SyntheticAssembly1value from the released FHGFF3 example source |
genomeReference.seqcol_id | Required | string |
| Sequence collection digest (sha512t24u, level 0) of the genome, as supplied Units: 32 base64url characters (sha512t24u, level 0) Supplied, not computed. | SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSminimal reference FHGFF3 example (synthetic) source |
metadataAuthor[] — the shared core Author object
People or organizations that assert the metadata in this header.
- These members come from the shared core (schemas/core.yaml), so they read the same in every header type that imports the object.
- The object is closed: an unknown key inside it is invalid, and so is an
x-extension key at this level (rule R15).
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
metadataAuthor[].name | Optional | string | none stated | Name of the person or organization | Synthetic metadata author (placeholder)minimal reference FHGFF3 example (synthetic) source |
metadataAuthor[].nameType | Optional | string |
| Whether the author is a person (Personal) or an organization (Organizational), as DataCite nameType | Personalillustrative value |
metadataAuthor[].uri | Optional | string |
| ORCID URI | https://orcid.org/0000-0002-1825-0097ORCID URI used by the released family examples source |
source[] — the shared Source object
Origins of the annotation that are not FAIR-bioHeaders files (schemas/shared.yaml).
- These members come from the shared objects (schemas/shared.yaml), so they read the same in every header type that imports the object.
- The object is closed: an unknown key inside it is invalid, and so is an
x-extension key at this level (rule R15).
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
source[].assemblyAccession | Optional | string | none stated | Genome assembly accession that the source states for this set; an assertion by the source, not a checksum link What the source states for itself; not a link to an FHR file. | GCF_000002985.6illustrative value (a real assembly accession shown for its shape) |
source[].description | Optional | string | none stated | What was taken from the source, or how the sequences were contributed | Short reads used as transcript evidencevalue from the released FHGFF3 example source |
source[].name | Required | string | none stated | Name of the database, resource or contribution | Synthetic RNA-seq evidence set (placeholder)value from the released FHGFF3 example source |
source[].release | Optional | string | none stated | Release or annotation run of the source, as the source names it | 2026_03release naming style from the released family examples source |
source[].sequenceCount | Optional | integer |
| Number of sequences in the file that came from this source Units: sequences or features taken from this source | 120placeholder count from the released family examples source |
source[].setIdentifier | Optional | string | none stated | Identifier of the set taken from the source, for example a UniProt proteome ID | SYNTHETIC-RUNS-1value from the released FHGFF3 example source |
source[].url | Optional | string |
| URL of the source or set | https://example.org/synthetic-evidence-setillustrative value |
taxon — the shared core Taxon object
Species name and its identifiers.org taxonomy URI, as in FHR.
- These members come from the shared core (schemas/core.yaml), so they read the same in every header type that imports the object.
- The object is closed: an unknown key inside it is invalid, and so is an
x-extension key at this level (rule R15).
| Field | Required | JSON type and cardinality | Constraints | Description, units and notes | Example |
|---|---|---|---|---|---|
taxon.name | Optional | string | none stated | Name of the species | Homo sapiensminimal reference FHGFF3 example (synthetic) source |
taxon.uri | Optional | string |
| Taxonomy URI | https://identifiers.org/taxonomy:9606minimal reference FHGFF3 example (synthetic) source |
Rules beyond a single field
| Rule | What the contract requires |
|---|---|
| A genome link is required | At least one genome link is required: a genomeReference object, or a derivedFrom array holding an item with headerType: FHR and relationship: annotates. A record with neither is invalid — this is FHGFF3's central conditional rule. |
| At most one annotated genome | At most one derivedFrom item may carry relationship: annotates, so a file cannot claim two annotated genomes. |
annotates must name an FHR genome | Any derivedFrom item with relationship: annotates must state headerType: FHR: annotation of a transcriptome or protein set is not the genome link this contract requires. |
| Extension fields need the newer minor | The schema rejects extension fields in a record that states schemaVersion: '1.0', so a 1.0 record keeps exactly its 1.0 outcome. A record using an extension states 1.1 or a later minor. |
| No key may contain a line feed | propertyNames rejects any key containing a line feed, so a YAML continuation artefact cannot pass as part of a field name. |
| The record is a closed object | additionalProperties: false — any other unknown top-level key is invalid, and every nested object is closed in the same way. |
| Extension fields (rule R15) | Top-level keys matching ^x-[A-Za-z0-9][A-Za-z0-9_.-]*$ are accepted (rule R15, docs/FORMAT.md) from FHGFF3 1.1, released in shared specification v0.5.0. |
What the schema cannot say
The contract is more than its JSON Schema. These requirements are normative for a conforming record, and a validator that cannot check them must say so:
- The checksum covers every byte, including native directives, features and any
##FASTAsection, except the root#~checksum:line. Sorting or tidying the file (gt gff3 -sort -tidy) invalidates a copied header. annotation: "",taxon: {}andmetadataAuthor: []pass the released schema yet describe nothing; conforming values are non-empty.featureCounts,soVersion,completenessandsource[]are producer assertions. The schema checks shapes only: it does not know the Sequence Ontology and does not count features.- A header is not a genome match:
verify-linkscompares recorded parent checksums or SeqCol digests against files on disk and reportsmatched,not matchedornot checked.
Generated from fhgff3.json of FAIR-bioHeaders/FAIR-bioHeaders-Specification at v0.6.0 (commit 0ae18b00ee), byte-identical to the copy pinned at scripts/schema-snapshots/fhgff3-v0.6.0.json — SHA-256 1942be4cefc8b3a2537942c2252b45fbcef87a5532486e4fd0f5d4c540e0fbf9. It documents 63 fields: 25 at the top level and 38 inside 10 nested or reused objects. Regenerate and compare with python3 scripts/schema_fields.py --check, which the site checks run on every pull request. The specification repository stays the authority: this page is a rendering of it, not a second definition.
Examples
Both records are synthetic: names, checksums, counts and accessions are placeholders. Copy the shape, never the values.
- examples/fhgff3/minimal-reference.fhgff3.json — the smallest record that satisfies the genome-link rule, using a
genomeReference(assembly accession plus SeqCol digest) with no FHR parent file. - examples/fhgff3/rich.fhgff3.yaml — every optional field: both genome-link forms, software, protocol, SO release, feature counts, sources and a BUSCO report.
- In-file headers: annotation.fhgff3.gff3 and embedded-fasta.fhgff3.gff3, next to the FHR genome they link to. no-header.gff3, header-invalid.fhgff3.gff3 and stale-parent.fhgff3.gff3 show the negative and stale cases.
- The conformance vectors are the byte-backed valid and rejection fixtures, format
fhgff3.
Validation boundaries
Four questions, four tools, four separate answers.
- Schema validity. Required keys, types, patterns and the closed nested objects, and FHGFF3’s conditional genome rule:
genomeReference, or aderivedFromitem withheaderTypeFHR andrelationshipannotates— at most one, and it must be FHR. This says nothing about the features. - File checksum verification.
bioheaders verifyrecomputes SHA-512/256 over every byte of the GFF3 — directives, features and any##FASTAsection — except the root#~checksum:line. Because the coverage is the whole file, any tool that sorts or tidies the GFF3 (for examplegt gff3 -sort -tidy) breaks the copied header’s checksum, and nothing repairs it silently. - Parent-link verification.
bioheaders verify-links annotation.fhgff3.gff3 genome.fhr.fastachecks each recorded parent against candidate files and reportsmatched,not matchedornot checked;stale-parent.fhgff3.gff3is the case where the annotation names a genome file whose bytes have since changed. For agenomeReference,verify-linkscan compare its recorded SeqCol digest with the digest recorded in a supplied FHR genome header. It does not compute SeqCol or resolve the accession; the producer’s identity assertion is still not biological verification (requirement FR-006). - Feature, ontology and biological validation. Columns, types, parent/child coherence, Sequence Ontology terms and biological plausibility belong to the gff3-validator. Its header checks (rules HDR-001 onward) and its feature findings are reported separately: a valid header never implies valid features, and valid features do not make a header’s provenance true.
Related guidance
- Using FH* and the family overview.
- Table builder — builds and structurally validates FHGFF3 records from its pinned v0.6.0 snapshot (
schemaVersion1.2), including dotted BUSCO dataset versions andx-extension fields in the YAML export; the pinned v0.4.0 (1.0) snapshot stays selectable. Its HTML export pairs a readable table with experimental FHGFF3 typed microdata, readable byfair-bioheaders0.12.0. Download YAML to keepx-extension fields; JSON-LD is unsupported. Support for the current release is tracked in issue #15. - docs/FHGFF3.md for header placement in GFF3, plus FORMAT.md and SCHEMA-VERSIONS.md.
- gff3-validator — feature, ontology and (optionally) header checks. Header checking runs through the
fair-bioheadersversion it depends on: the published 0.1.0 release (PyPI and thev0.1.0tag, both 2026-10-09, still the newest) pinsfair-bioheaders >=0.4,<0.5, and 0.4.0 has no FHGFF3 support, so 0.1.0 reports an FHGFF3 header as not checked (HDR-002,header validation is not implemented in this version) instead of checking it against FHGFF3 1.2. Itsmainbranch marks HDR-004 to HDR-010 implemented, so checking a v0.6.0 header there needs a validator release whose toolkit pin covers 0.11.0. Feature validation is unaffected, and no validator may substitute a different schema for a version it does not have. - FAIR-bioHeaders-Tools —
combine,verify,verify-links,stripandassessfor GFF3. - Propose FHGFF3 field changes in FHGFF3; released contracts are published through FAIR-bioHeaders-Specification.
