8. The HED ontology¶
This chapter defines the HED ontology and its relationship to the HED schema. HED maps all of the entities of its standard schema and library schemas (schema elements, schema attributes, schema properties, and structural elements) into a single namespace with unique IRI (Internationalized Resource Identifier) identifiers as explained in 8.3 HED global identifiers.
The GitHub source repository for the HED ontologies is hed-ontology. The GitHub source repository for the HED schemas is hed-schemas.
8.1. HED views and representations¶
8.1.1. The annotator’s view¶
HED (Hierarchical Event Descriptors) has a standard hierarchically-organized vocabulary (the HED standard schema) and additional community-specific vocabularies (HED library schemas) that can be used to annotate and analyze experimental data. The HED vocabularies and the supporting HED ecosystem are designed to support these activities.
The data annotator’s natural view is top-down - identifying a general category and then filling out the details with more specific tags in that category or grouping with descriptive tags from other categories. As illustrated in the following diagram, the HED schema hierarchy is organized in a top-down manner to support this work-flow.

In the diagram, top-level tags S1, S4, and L6 represent general categories and are roots of subtrees organized so that child nodes are more specific terms. HED supports “search generality”, so searches may specify an exact match or matches to any term in a particular subtree. In the latter case, a search for Event may also match any of its descendants (e.g., Sensory-event or Agent-action).
The HED schema viewer, allows users to focus on top-level categories or expand the hierarchy view to any specified level of detail.
8.1.2. The ontologist’s view¶
A second view of HED - the HED ontology - provides a mapping between HED schemas and classical ontologies in order to support semantic analysis and reasoning.
The following diagram shows the ontology view of HED. The nodes of the HED schema are embedded in the HED ontology, but the view is “term-centric” or “bottom-up” with links from the given term to its parent class (yellow arrows) and as well links between the given term and other terms (gray arrows).

The ontology represents a complex network of interrelationships among the terms in the HED hierarchy and terms in other ontologies. The HED ontology and its mapping have been made explicit. The goal is to include links to additional information including provenance and examples during annotation and to leverage AI tools during annotation and analysis.
8.1.3. HED information space¶
The HED schema is embedded in a larger information space that includes additional information such as sources, provenance, and links to other ontologies. This HED information space is illustrated schematically in the following diagram.

The embedding is anchored by the hedId schema attribute. The hedId values are of the form HED_xxxxxxx and resolve to IRIs (Internationalized Resource Identifiers) in the https://purl.org/hed/hed.owl file. This file is currently hosted on GitHub and does not have a mechanism to address individual IDs defined within the file. The ontology files are versioned by release date. Releases are located in the releases subdirectory of the hed-ontology repository on GitHub.
The extended information space is completely represented by the HED ontology in OWL format. In this document we use OWL Manchester format (.omn) for readability.
8.1.4. HED representations¶
The HED vocabularies are held in the four schema formats (MediaWiki, XML, JSON, and TSV; see 3.1. Schema rules), which are equivalent, and in the HED ontology (OWL), as shown in the following table:
Format |
Content |
Uses |
Editing |
|---|---|---|---|
MediaWiki |
Schema |
Schema development |
Manual editing |
XML |
Schema |
Annotation tools |
Generated from MediaWiki |
JSON |
Schema |
AI tools |
Generated from MediaWiki |
TSV |
Schema, with optional ontology columns |
Schema development |
Manual editing |
OWL |
Complete |
Ontology updating |
Manual editing |
The HED schema, which contains the core HED vocabulary and captures the “annotator’s view” of HED, can be completely represented in the HED MediaWiki, XML, JSON, or TSV formats. The HED schema is used for annotation, validation, searching, and most analyses. Tools access the HED schema in its XML format, but schema developers usually create and update the schema in MediaWiki format, which is easier to read and displays as formatted MarkDown on GitHub. Alternatively schema developers may opt to create or update schemas from the HED TSV files.
8.1.4.1. The MediaWiki format¶
The MediaWiki format is line-oriented with each non-blank line corresponding to a HED tag or other HED entity such as a unit class or schema attribute definition. See A.2. MediaWiki file format for a detailed description of the MediaWiki format.
8.1.4.2. TSV files¶
The TSV format consists of 13 tab-separated value (tsv) files each containing the information for one type of HED entity as summarized in the following table.
tsv filename |
Contents |
|---|---|
|
These correspond to schema attributes that are not inherited. |
|
Rows of the |
|
Definitions of the schema properties (the |
|
Schema attributes whose value is a literal such as boolean, string or numeric. |
|
Schema attributes whose value is another schema entity such as a HED tag. |
|
Rows of the |
|
Rows of the |
|
The structural elements: header, prologue, and epilogue. |
|
Definitions of the HED tags (vocabulary) in the schema. |
|
Definitions of the HED unit entities. |
|
Definitions of the HED unit classes. |
|
Definitions of the HED unit modifiers. |
|
Definitions of the HED value classes. |
The xxx_ prefix identifies the schema version. For example, the prefix for standard schema version 8.3.0 is HED8.3.0_ and the prefix for SCORE library schema 2.0.0 is HED_score_2.0.0_.
Most schema developers will only edit the xxx_Tag.tsv file or the xxx_Structure.tsv file.
8.1.4.3. TSV format¶
Each HED TSV file starts with a one-line header containing the column names of the file. The header row of each file is given in A.5.2. TSV header formats. The rows of the three extras files (xxx_Sources, xxx_Prefixes, and xxx_AnnotationPropertyExternal) are not schema elements and have no hedId.
The prefixes on column names have the following meanings:
Column name prefix |
Meaning |
|---|---|
|
from RDF Schema (i.e., the Resource Description Framework Schema). |
|
from DublinCore Ontology. |
|
translated directly to OWL Manchester Format. |
Users may add additional columns corresponding to annotation properties from the Dublin Core or the RDF schema (e.g., dc:comment) and the HED ontology framework will include them in the ontology. However, these columns do not impact the HED schema.
HED schema developers can develop in either HED MediaWiki or HED TSV (tab-separated-value) file format and can use tools to update the representations; A.5. TSV file format describes the columns of each file. Users MUST NOT assign or modify the hedId. When creating a new entity such as a tag, leave the hedId column blank. If adding a new tag to the MediaWiki file, schema developers SHOULD omit the hedId. Tools will assign and validate the hedId during the update process.
8.1.4.4. Tag TSV file <--> Ontology¶
HED TSV files have been expanded to include additional columns to capture all the information contained in the HED ontology as illustrated in the following example. Notice that while the TSV file always refers to the entities by name (e.g., rdfs:label), the ontology uses the hedId.

The HED ontology represents the entire HED information space in OWL (Web Ontology Language). The HED ontology is available in both OWL/RDF format and OWL Manchester format, but the examples in this specification use OWL Manchester format for readability. A HED ontology is created and updated from the HED TSV files.
The schema elements (tags with their # placeholders, unit classes, units, unit modifiers, and value classes) and the structural elements map to classes in the HED ontology. The HED schema attributes, which describe properties and behavior, are mapped to ontology properties as described in 8.2.3. Schema attributes section. The schema properties, which describe the schema attributes, map to annotation properties and determine the kind of ontology property that each schema attribute becomes.
The mapping of the TSV row and column values to a class in the HED ontology is further explained in the following table:
TSV |
Row value |
Ontology format |
|---|---|---|
hedId |
xxx |
|
rdfs:label |
yyy |
|
Level |
n |
Redundant information - can be recovered using class hierarchy. |
omn:SubClassOf |
zzz |
The tag is either a |
Attributes |
uuu, vvv, ... |
If non-empty, then these appear as restrictions |
dc:description |
www |
|
The next section describes the ontology structure in more detail.
8.2. HED schema to ontology¶
Each HED entity of a schema (see HED entity) - each schema element, schema attribute, schema property, and structural element - is assigned a persistent globally unique identifier (GUID). This GUID appears as the entity identifier in the ontology and, for every entity except the structural elements, as the value of its hedId attribute in the HED schema (see 8.3.1. Schema namespaces versus the ontology namespace). The classes and properties of the base ontology, such as HedTag and inHedSchema, have identifiers of the same form.
The base ontology is the set of classes and properties, shared by all schemas, from which the entities of each schema are defined. It has three top classes. HedEntity (hed:HED_0000001) is the parent of the other two. HedElement (hed:HED_0000003) is the class of the schema elements; HedTag, HedUnitClass, HedUnit, HedUnitModifier, and HedValueClass are defined from it. HedStructure (hed:HED_0000002) is the class of the structural elements; HedSchema, HedHeader, HedPrologue, and HedEpilogue are defined from it. Schema attributes and schema properties are HED entities that are not classes: each is an ontology property (see 8.2.3. Schema attributes).
The examples in this section write identifiers with the hed: prefix.
8.2.1. Overall ontology structure¶
HED requires that child tags of tags in the HED schema satisfy the is-a relationship. This requirement is satisfied in HED ontology using subclass relationship. The HED requirement of orthogonality between tags in different top-level subtrees can be captured in the HED ontology by imposing disjointness on the top-level trees, but this is not currently being enforced.
The following table summarizes how the HED schema and HED ontology are mapped.
Schema |
Ontology |
|---|---|
Header |
Class with
|
Tag |
Class representing HED tags:
|
Unit class |
Defined in the
|
Unit |
|
Unit modifier |
|
Value class |
|
Schema attribute |
Maps as a property in the HED ontology:
|
Schema property |
|
8.2.3. Schema attributes¶
The purpose of HED schema attributes is to specify characteristics and/or behavior of HED schema elements, including tags, unit classes, units, unit modifiers, and value classes. These attributes map schema elements into values or into other schema elements.
8.2.3.1. Attribute ontology types¶
A given HED schema attribute’s representation in the HED ontology is determined by its domain, its range, and whether the attribute is inherited. The mapping strategy is summarized in the following table.
Ontology |
Domain |
Range |
Inherited? |
|---|---|---|---|
|
schema element |
string, numeric, boolean, or schema element |
No |
|
schema element |
string, numeric, boolean |
Yes |
|
schema element |
schema element |
Yes |
The Domain column gives the domain of the property in the ontology, which is narrower than where the schema attribute may be written in a schema: 3.1.4.8. Schema properties also allows an attribute that has elementDomain to be assigned to a schema attribute, and hedId to a schema property. The hedId of a schema attribute or of a schema property is the identifier of its ontology property.
DataProperty and ObjectProperty are inherited by subclasses, and reasoners can check their consistency. AnnotationProperty is not inherited by subclasses, and reasoners ignore them.
8.2.3.2. Schema properties¶
Schema properties appear in the Properties section of a HED schema. They determine how schema attributes behave and are described in the following table. In the ontology the schema attributes are themselves properties, which is why the TSV file that holds the schema properties is named AttributeProperty. In this chapter a property name in code font (ObjectProperty, DataProperty, AnnotationProperty) is a kind of ontology property; schema property always means an entry of the Properties section.
Attribute name |
Description |
|---|---|
|
The value is not inherited by child nodes. |
|
The value can be true or false. This property was formerly named |
|
The attribute can apply to any type of element (tag, unit, unit class, unit modifier, or value class). This property was formerly named |
|
The attribute can apply to node (tag-term) elements. This property was formerly named |
|
The value can be a node (tag). |
|
The value can be numeric. |
|
The value can be a string. |
|
The attribute can apply to unit classes. This property was formerly named |
|
The value can be a unit class. |
|
The attribute can apply to unit modifiers. This property was formerly named |
|
The attribute can apply to units. This property was formerly named |
|
The value can be units. |
|
The attribute can apply to value classes. This property was formerly named |
|
The value can be a value class. |
Each schema property is translated to an AnnotationProperty in the ontology.
8.2.3.3. Attribute representation¶
The following table lists schema attributes with their types (A=AnnotationProperty, D=DataProperty, and O=ObjectProperty), domains and ranges.
Attribute |
Type |
Domain |
Range |
Handling |
|---|---|---|---|---|
|
D |
|
|
|
|
A |
|
|
|
|
D |
|
|
|
|
O |
|
|
|
|
D |
|
|
|
|
D |
|
|
|
|
A |
|
|
Tools: Assign and verify. |
|
D |
|
|
|
|
O |
|
|
|
|
O |
|
|
|
|
A |
|
|
Tools: Verify. |
|
D |
|
|
|
|
A |
|
|
Tools: make tag subclass of tag in range. |
|
D |
|
|
|
|
D |
|
|
|
|
D |
|
|
|
|
O |
|
|
|
|
D |
|
|
|
|
A |
|
|
Only placeholders |
|
D |
|
|
|
|
D |
|
|
|
|
O |
|
|
|
|
D |
|
|
|
|
D |
|
|
|
|
O |
|
|
8.2.3.4. OWL format for attributes¶
The Manchester Owl syntax for schema attributes is similar to that of classes above. The following example shows the OWL definition for the HED extensionAllowed dataProperty:
Example HED Manchester OWL syntax for DataProperty extensionAllowed.
DataProperty: hed:HED_0010307
Annotations:
dc:description "Users can add unlimited levels of child nodes under this tag. This tag is propagated to child nodes except for hashtag placeholders.",
rdfs:label "extensionAllowed",
hed:HED_0010704 true,
hed:HED_0010702 true
Domain:
hed:HED_0000005
Range:
xsd:boolean
The HED DataProperty entities map an entity (Domain) into a value (Range) as specified by the Domain and Range fields. The hed:HED_0000005 ID is the HedTag class. In the HED schema, the domain and range of a schema attribute are conveyed by the schema properties, which are also given as annotation properties. The hed:HED_0010704 true annotation corresponds to the tagDomain schema property being true, while the hed:HED_0010702 true annotation corresponds to the boolRange schema property being true.
Similarly, the HED ObjectProperty entities map an entity (Domain) into another entity (Range) specified by the Domain and Range fields as illustrated in the following example:
Example HED Manchester OWL syntax for suggestedTag.
ObjectProperty: hed:HED_0010106
Annotations:
dc:description "A tag that is often associated with this tag. This attribute is used by tagging tools to provide tagging suggestions.",
rdfs:label "suggestedTag",
hed:HED_0010704 true,
hed:HED_0010705 true
Domain:
hed:HED_0000005
Range:
hed:HED_0000005
The hed:HED_0000005 ID is the HedTag class, indicating that suggestedTag maps one HED tag into another. The hed:HED_0010704 true and hed:HED_0010705 true provide this information as annotations.
Unlike DataProperty and ObjectProperty attributes, AnnotationProperty attributes are not inherited and do not use domain and range specifications. These MUST be handled individually by tools as flagged by the HED schema annotationProperty property.
Example HED Manchester OWL syntax for rooted.
AnnotationProperty: hed:HED_0010502
Annotations:
dc:description "This top-level library schema node should have a parent which is the indicated node in the partnered standard schema.",
rdfs:label "rooted",
hed:HED_0010704 true,
hed:HED_0010705 true
8.2.4. Other auxiliary sections¶
The schema-ontology mapping for HED schema units, unit classes, unit modifiers, and value classes is similar to that of HED tags. However, each of these auxiliary items SHOULD inherit from a superclass tied to the schema in which they are defined.
For example the value classes that are defined in the standard schema SHOULD inherit from StandardValueClass (hed:HED_0010009) not directly from HedValueClass (hed:HED_0000009).
8.3. HED global identifiers¶
8.3.1. Schema namespaces versus the ontology namespace¶
HED uses the word namespace in two different senses, and the two must not be confused.
A schema namespace (see Namespace and 3.1.2. Version combinations) is a mechanism for combining several schemas into a unified vocabulary for a particular application. The annotator chooses a namespace name for each additional schema in the dataset’s HED version specification and writes the corresponding namespace prefix (e.g., sc:) in front of the tags drawn from that schema. Schema namespaces are dynamic: they are chosen per dataset, are not part of any schema, and say nothing about the identity of the tags they qualify. The same tag may appear with different prefixes in different datasets, much as the same Python module may be imported under different names with import ... as.
The ontology namespace is the set of global identifiers of the form HED_xxxxxxx, where xxxxxxx is a 7-digit integer. Every HED entity of a schema (schema element, schema attribute, schema property, or structural element) is assigned an identifier of this form when the schema is released. For every entity except the structural elements, the identifier is recorded as the value of its hedId schema attribute; the identifiers of the header, prologue, and epilogue are assigned by tools and recorded in the Structure file of the TSV format. The identifiers are allocated by schema, not by schema version: the base ontology occupies HED_0000001 to HED_0009999, the standard schema occupies HED_0010000 to HED_0039999, and each library schema is assigned its own range when it is first created, as recorded in library_data.json in the hed-standard/hed-schemas repository. Within each schema’s range, every kind of entity has a fixed subrange, so the hedId alone reveals both the schema an entity came from and what kind of entity it is. The subranges are listed in 8.3.2. Ontology namespace.
A hedId assignment is permanent. Once an entity has been given an identifier, that identifier represents the entity in the ontology through all later schema versions, even if the entity is renamed, moved, or deprecated, and the identifier is never reassigned to another entity. The hedId values are used to construct a valid ontology in OWL format from the schema, as described in 8.3.3. HED IRIs.
Identifiers are assigned when a schema is released, after Working Group review; new entities in a prerelease carry none. Should an identifier nonetheless appear in a prerelease and be withdrawn before release, as HED_0010308 was in the 8.3.0 prerelease, it is retired like one whose entity is removed from a released schema. Either kind is recorded in the retired_ids section of library_data.json in the hed-schemas repository, with the entity’s label, the version that removed it, the reason, and any replacement. A retired identifier is never reused, and the entity it identified remains in the HED ontology, marked as deprecated. HED 8.5.0 retires HED_0011644 (uV, now derived as u + V).
In short, the ontology namespace fixes what an entity is, independent of any schema version or dataset, while a schema namespace fixes how an annotator refers to a tag in one dataset’s version specification. Tools resolve a prefixed tag through the version specification to a schema element, and from there through hedId to its ontology identifier and its IRI.
8.3.2. Ontology namespace¶
The HED ontology uses globally unique identifiers (GUIDs) of the form HED_xxxxxxx for all entities of HED schemas.
All HED standard and library schema entities are mapped to the HED_xxxxxxx namespace using the range assignments described in the following table.
HED ID |
Owl type |
Description |
|---|---|---|
HED_0000001- |
|
Base class (EX: |
HED_0000100- |
|
Base object property (EX: |
HED_0000300- |
|
Base data property (EX: |
HED_0000500- |
|
Base annotation property (EX: |
HED_0010001- |
|
Standard schema structure class (EX: |
HED_0010100- |
|
Standard schema attribute that is an object property (EX: |
HED_0010300- |
|
Standard schema attribute that is a data property (EX: |
HED_0010500- |
|
Standard schema attribute that is not inherited (EX: |
HED_0010700- |
|
Standard schema property (EX: |
HED_0011300- |
|
Standard schema value class (EX: |
HED_0011400- |
|
Standard schema unit modifier (EX: |
HED_0011500- |
|
Standard schema unit class (EX: |
HED_0011600- |
|
Standard schema unit (EX: |
HED_0012000- |
|
Standard schema HED tag (EX: |
HED_0042000- |
|
SCORE schema HED tag (EX: |
HED_0062000- |
|
LANG schema HED tag. |
HED_0082000- |
|
SLAM schema HED tag. |
HED_0102000- |
|
MOUSE schema HED tag (EX: |
8.3.3. HED IRIs¶
HED IRIs (Internationalized Resource Identifiers) are mapped to https://purl.org/hed/hed.owl.
The hedId is the permanent identifier of a HED entity. The IRI of a HED entity is its hedId appended to the entity prefix http://purl.org/hed/hed/: the IRI of the tag Action (HED_0012016) is http://purl.org/hed/hed/HED_0012016. The IRI of an entity does not contain a release date and is the same in every release of the HED ontology. The hed: prefix of the examples in this chapter stands for the entity prefix.
A release of the HED ontology is identified by its version IRI, which contains the release date: http://purl.org/hed/releases/2024-06-10/hed.owl for the release of 2024-06-10.
The release of 2024-06-10 is the one exception to the form of the entity IRI: it declares the dated entity prefix http://purl.org/hed/releases/2024-06-10/hed/. The hedId values of its entities are unaffected; only the prefix differs.