Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 49 additions & 17 deletions docs/StandardizationGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ GO TO: [Technical Considerations](#technical-considerations) | [Content Con

### Technical Considerations

- Ensure the ontology is logically consistent ([tracker item](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/482))
- Ensure the ontology is logically consistent <!-- ([tracker item](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/482)) -->
- The ontology MUST be **logically consistent**; that is:
- (a) there MUST NOT be contradictory statements revealed by reasoning;
- (b) there MUST NOT be any unsatisfiable classes; and
- (c) there MUST NOT be any circular definitions.
- This includes when the ontology is classified together with RO, BFO, and COB
- This also includes when the ontology is classified together with its base dependencies; that is, as part of a 'full' release (see [Release Considerations](#release-considerations) section below)
- Indicate the root terms of the ontology ([tracker item](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/2149))
- Indicate the root terms of the ontology <!-- ([tracker item](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/2149)) -->
- Some ontology browsers make use of an ontology-wide annotation property, 'has ontology root term' (IAO:0000700), that governs how the hierarchy is displayed. This helps shield users from having to navigate through not-specific-enough parent terms (such as BFO:0000040 "material entity"). To enable this feature, an ontology SHOULD specify one or more appropriate root terms like so:
```
OWL format:
Expand All @@ -22,35 +22,67 @@ GO TO: [Technical Considerations](#technical-considerations) &#124; [Content Con
property_value: IAO:0000700 *root term ID*
```
- Use standard synonym types
- Ontologies often include alternatives to term labels (aka synonyms). These can include abbreviations, acronyms, spelling variants, and other types of synonyms. A list of standard synonym types is provided by OMO under the parent Annotation Propery 'SynonymTypeProperty'. Ontology developers that wish to indicate a specific type of synonym SHOULD first consult this list before minting their own. If it is necessary to create a new type, developers SHOULD consider submitting to the OMO controlled vocabulary list indicated above.
- Ontologies often include alternatives to term labels (aka synonyms). These can include abbreviations, acronyms, spelling variants, and other types of synonyms. A list of standard synonym types is provided by OMO under the parent Annotation Property '[SynonymTypeProperty](https://ontobee.org/ontology/OMO?iri=http://www.geneontology.org/formats/oboInOwl%23SynonymTypeProperty)'. Ontology developers that wish to indicate a specific type of synonym SHOULD first consult this list before minting their own. If it is necessary to create a new type, developers SHOULD consider submitting to the OMO controlled vocabulary list indicated above.

### Content Considerations

- Use the preferred source for imported terms
- Imported terms SHOULD be drawn from the ontology that is the preferred source for the term. The preferred source is usually the ontology with the same ID space as the term, but it can instead be the ontology that currently maintains the term. Importing a term from a secondary source is not recommended because there is no guarantee that the secondary source has the most up-to-date term information, and thus drawing from the original would avoid possible conflicts due to term divergence.
- Import entire ontologies only when necessary ([tracker item](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/2769))
- Import entire ontologies only when necessary <!-- ([tracker item](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/2769)) -->
- Unless necessary, an entire ontology SHOULD NOT be imported if only a subset of terms is needed. To import terms on an individual basis, [ROBOT 'extract'](https://robot.obolibrary.org/extract) and [OntoFox](https://ontofox.hegroup.org/index.php) are useful tools. Notable exceptions are imports of small ontologies that provide upper level structure or useful sets of properties:
- BFO (Basic Formal Ontology) or COB (Core Ontology for Biology and Biomedicine) are upper level ontologies used to harmonize multiple OBO Foundry ontologies under the same hierarchy.
- OMO contains commonly used annotation properties.
- RO Core contains the most commonly used relations.
- Use of NCIt terms - If an ontology developer wishes to create a term with a label that already exists in NCIt, the following apply:
- If the NCIt term definition and hierarchical position are reasonable, that term SHOULD be used instead;
- If either the NCIt term definition or the hierarchical position are sub-optimal, the developer MAY create a term in the ontology with an identical label but with a revised definition and subclassing; alternatively such a term MAY be requested of another ontology, if appropriate;
- For case (b), if the definition is based on the NCIt definition, the new term MUST be linked to the original NCIt term to conform to the [NCIt license](https://evs.nci.nih.gov/license) requirements. Note: this does not apply to reuse of term labels.
- **BFO** (Basic Formal Ontology) or **COB** (Core Ontology for Biology and Biomedicine) are upper level ontologies used to harmonize multiple OBO Foundry ontologies under the same hierarchy.
- **OMO** contains commonly used annotation properties.
- **RO Core** contains the most commonly used relations.
- Use of NCIt terms
- If an ontology developer wishes to create a term with a label that already exists in NCIt, the following apply:
- (a) If the NCIt term definition and hierarchical position are reasonable, that term SHOULD be used instead;
- (b) If either the NCIt term definition or the hierarchical position are sub-optimal, the developer MAY create a term in the ontology with an identical label but with a revised definition and subclassing; alternatively such a term MAY be requested of another ontology, if appropriate;
- (c) For case (b), if the definition is based on the NCIt definition, the new term MUST be linked to the original NCIt term to conform to the [NCIt license](https://evs.nci.nih.gov/license) requirements. Note: this does not apply to reuse of term labels.

### Release Considerations

- Provide recommended release types ([tracker item](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/482))
- Provide recommended release types <!-- ([tracker item](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/482)) -->
- In addition to a set of standards pertaining to release *format* (see [Principle 2](https://obofoundry.org/principles/fp-002-format.html)), the following are the standards pertaining to release *types*, each of which differ with respect to imports, axiomization, and reasoning (see [Release Artefacts](https://oboacademy.github.io/obook/reference/release-artefacts/) for more detailed information):
- **base** (RECOMMENDED; denoted by PURL ending with ONT.owl): Content includes only terms that are owned by the ontology, which include (a) terms using that ontology's prefix; and (b) any terms with a different prefix that are now maintained by that ontology. It does not contain any imports. It does, however, retain references to external ontologies within axioms as needed for definitions and reasoning. Such references, when displayed in Protege, will appear as identifiers only; that is, without labels. Finally, the base will have had reasoning already applied and will be stripped of redundant axioms. **QUESTION: WILL THIS APPLY TO A SPECIFIC REASONER?**
- **full** (REQUIRED; denoted by PURL ending with ONT-full.owl ): Content is as for **base** except that all referenced external terms are present (that is, imports are merged into the **full** release).
- *other release artefacts* (OPTIONAL; denoted by PURL ending with ONT-<artefact_type>.owl): These include **non-classified**, **simple**, **basic**, and **simple-non-classified**. See the Release Artefacts link above for details on these.
- Every ontology MUST provide a 'base' release and MUST provide a 'full' release.
- **base** (RECOMMENDED; denoted by PURL ending with ONT-base.owl): Content includes only terms that are owned by the ontology, which include (a) terms using that ontology's prefix; and (b) any terms with a different prefix that are now maintained by that ontology. It does not contain any imports. It does, however, retain references to external ontologies within axioms as needed for definitions and reasoning. Such references, when displayed in Protege, will appear as identifiers only; that is, without labels. Finally, the base will have had reasoning already applied and will be stripped of redundant axioms (by default, ODK-generated base versions are already reasoned and non-redundant; otherwise, a combination of [ROBOT](https://robot.obolibrary.org/) commands "[reason](https://robot.obolibrary.org/reason)" and "[reduce](https://robot.obolibrary.org/reduce)" will generate the same results).
- **full** (REQUIRED; denoted by PURL ending with ONT.owl): Content is as for **base** except that all referenced external terms are present (that is, imports are merged into the **full** release).
- *other release artefacts* (OPTIONAL; denoted by PURL ending with ONT-<artefact_type>.owl): These include **non-classified**, **simple**, **basic**, and **simple-non-classified**. See the [Release Artefacts](https://oboacademy.github.io/obook/reference/release-artefacts/) page for details on these.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<artifact_type> is missing from the OBO Foundry webpage when rendered and all of the markdown after it is rendered as is, instead of italicized or as a link.

- Every ontology MUST provide a 'full' release and SHOULD provide a 'base' release.

<!-- ### Social Considerations THIS SECTION WILL NOT BE MADE VISIBLE UNTIL CONTENT IS ADDED -->

<!-- ### Social Considerations -->

### Communication Considerations

- Link terms to issue tracker ([tracker item](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/1097)) Any term (or set of terms) with an affiliated issue tracker item (term request or term discussion) SHOULD be linked to the relevant issue(s). Such linking SHOULD use the annotation property 'term tracker item' (IAO:0000233) and SHOULD NOT use a free text comment. The range for 'term tracker item' MUST consist solely of an IRI, without additional text, and the IRI MUST be for the issue tracker item.
- Link terms to issue tracker <!-- ([tracker item](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/1097)) -->
- Any term (or set of terms) with an affiliated issue tracker item (with term discussion; see Note below) SHOULD be linked to the relevant issue(s). Such linking SHOULD use the annotation property 'term tracker item' (IAO:0000233) and SHOULD NOT use a free text comment. The range for 'term tracker item' MUST consist solely of an IRI, without additional text, and the IRI MUST be for the issue tracker item.
- Example: [OMRSE:skilled nursing encounter](http://purl.obolibrary.org/obo/OMRSE_00000152) indicates a term tracker item [https://github.com/mcwdsi/OMRSE/issues/305](https://github.com/mcwdsi/OMRSE/issues/305).
- Note: Not necessary for minor changes or term requests without discussion.

<!--
THE FOLLOWING ARE COMMENTED OUT, KEPT HERE PENDING FINALIZATION

technical:
- Use standard synonym types [#2450](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/2450)
- Modeling metaclasses [#2454](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/2454)
- Ontology merging metadata [#1548](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/1548)
- ***MORE DISCUSSION NEEDED*** Ontology metadata requirements [#1365](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/1365)
- DECISION: leave Optional field off from the table. Discussion to be continued about the use of dcterms:date. Will make 2 tables: 1 with MUST and SHOULD, the other with other potential fields (including those NOT to use) with guidelines indicated (would include the list items given in the file, below the table). We should also push for recommended format for optional fields (ex. ORCID for creator/contributor).

- ***MORE DISCUSSION NEEDED*** Language tags [#479](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/479)
- For rdfs:label and IAO:0000115 annotation assertions, we discourage the use of datatype declarations such as `xsd:string`. It is important to note that `xsd:string` is essentially redundant in OWL/RDF, so "assay" and "assay"^^xsd:string should be the exact same thing. However, a lot of tooling may be confused by the difference, xsd:string datatype assertion SHOULD be omitted in general for all annotations, but MUST be omitted for rdfs:label and IAO:0000115.
- To designate rdfs:label, and IAO:0000115 annotations in a language different from English, a [valid RDF language tag](https://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal) MUST be specified, for example, "Krankheit"@de.
- rdfs:label and IAO:0000115 annotation assertions for English content MAY be annotated with an English language tag. If the ontology chooses not to use language tags, a protege:defaultLanguage assertion MUST be added as an ontology annotation.

content:
- Discourage BFO shadow classes [#1539](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/1539)
- Term adoption [#2330](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/2330) and [#2324](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/2324)
- ***MORE DISCUSSION NEEDED*** Standardized xref prefixes in ontologies [#525](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/525)
- ***MORE DISCUSSION NEEDED*** Referring to taxa not in NCBITaxon [#434](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/434)

communication:

- domain metadata tag [#2779](https://github.com/OBOFoundry/OBOFoundry.github.io/issues/2779)

-->