Skip to content

Latest commit

 

History

History
126 lines (80 loc) · 4.82 KB

ega-4-defs-ontology-term.md

File metadata and controls

126 lines (80 loc) · 4.82 KB

Ontology term Schema

https://raw.githubusercontent.com/EbiEga/ega-metadata-schema/main/schemas/EGA.protocol.json#/properties/protocolTypeDescriptor/properties/protocolSubtype/allOf/0

This property represents an ontology term (a.k.a. class). It consists on two properties: the term identifier (termId) and its label (termLabel). This property and its structure is inherited across many other elements in the schemas. It is there, when inherited, where the real ontology constraint is put in place (e.g. using 'graphRestriction' keywords). Based on phenopacket's OntologyClass

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Forbidden none EGA.protocol.json*

0 Type

object (Ontology term)

0 Properties

Property Type Required Nullable Defined by
termId Merged Required cannot be null EGA common metadata definitions
termLabel string Required cannot be null EGA common metadata definitions

termId

The identifier of an ontology term must be in CURIE format (check property 'curieGeneralPattern'). Whether a specific term is valid or not according to an ontology hierarchy is checked at each specific termId using ontology validation keywords (e.g. 'graphRestriction').

termId

termId Type

string (ID of the term)

all of

termId Constraints

minimum length: the minimum number of characters for this string is: 1

termId Examples

"MONDO:0100096"
"EFO:0003101"
"EFO:0005518"
"EFO:0002944"
"EFO:0003813"

termLabel

The label of a term is the human-readable string associated with the identifier. It is not required that it matches the label of the termId within the referenced ontology, although it should. This is due to the fact that the source of truth will always be the termId, and not the label, which adds more context.

termLabel

termLabel Type

string (Label of the term)

termLabel Constraints

minimum length: the minimum number of characters for this string is: 1

termLabel Examples

"COVID-19"
"Axila skin"
"bone marrow cell"
"astrocyte"
"oligodendrocyte"
"Unknown"
"Unaffected"
"homo sapiens"