Skip to content

Commit

Permalink
add subject and object specialization qualfiiers to handle MAXO and p…
Browse files Browse the repository at this point in the history
…ossibly GO-CAM representations in Biolink
  • Loading branch information
sierra-moxon committed Nov 8, 2024
1 parent 5041b41 commit 2b9d726
Show file tree
Hide file tree
Showing 8 changed files with 24,484 additions and 24,354 deletions.
47 changes: 46 additions & 1 deletion biolink-model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,26 @@ slots:
in_subset:
- translator_minimal

specialization qualifier:
is_a: qualifier
abstract: true
description: >-
A qualifier that composes with a core subject/object concept to define a more specific version of the
subject concept, specifically using an ontology term that is not a subclass or descendant of the core concept
and in the vast majority of cases, is of a different ontological namespace than the category or namespace of the
subject identifier.
examples:
- value: CHEBI:5118 # fluoxetine

Check failure on line 1328 in biolink-model.yaml

View workflow job for this annotation

GitHub Actions / build (3.9)

1328:9 [indentation] wrong indentation: expected 6 but found 8

Check failure on line 1328 in biolink-model.yaml

View workflow job for this annotation

GitHub Actions / build (3.10)

1328:9 [indentation] wrong indentation: expected 6 but found 8

Check failure on line 1328 in biolink-model.yaml

View workflow job for this annotation

GitHub Actions / validate-yaml

1328:9 [indentation] wrong indentation: expected 6 but found 8
description: >-
In a MAXO annotation this would be a specialization in treatment of a disease. For example,
fluoxetine would be a specialization of the MAXO term 'serotonin-norepinephrine reuptake inhibitor agent
therapy' as a treatment for the HP term 'Fatigable muscle weakness' in the context of the MONDO term
'congenital myasthenic syndrome '4A.'
- value: GO:0005634 # nucleus
description: >-
In an expression annotation this would be a specialization in location of an anatomical entity. For example,
"expression in the nucleus of hepatic cells" would be a specialization of "expression in hepatic cells"
aspect qualifier:
is_a: qualifier
abstract: true
Expand Down Expand Up @@ -1440,6 +1460,17 @@ slots:
in_subset:
- translator_minimal

subject specialization qualifier:
is_a: specialization qualifier
description: >-
A qualifier that composes with a core subject/object concept to define a more specific version of the
subject concept, specifically using an ontology term that is not a subclass or descendant of the core concept
and in the vast majority of cases, is of a different ontological namespace than the category or namespace of the
subject identifier.
in_subset:
- translator_minimal
range: uriorcurie

subject form or variant qualifier:
description: >-
A qualifier that composes with a core subject/object concept to define a specific type, variant,
Expand Down Expand Up @@ -1506,6 +1537,17 @@ slots:
in_subset:
- translator_minimal

object specialization qualifier:
is_a: specialization qualifier
description: >-
A qualifier that composes with a core subject/object concept to define a more specific version of the
subject concept, specifically using an ontology term that is not a subclass or descendant of the core concept
and in the vast majority of cases, is of a different ontological namespace than the category or namespace of the
subject identifier.
in_subset:
- translator_minimal
range: uriorcurie

object form or variant qualifier:
description: >-
A qualifier that composes with a core subject/object concept to define a specific type, variant,
Expand Down Expand Up @@ -9821,7 +9863,7 @@ classes:
chemical or drug or treatment to disease or phenotypic feature association:
description: >-
This association defines a relationship between a chemical or treatment (or procedure) and a disease or phenotypic feature
where the disesae or phenotypic feature is a secondary undesirable effect.
where the disease or phenotypic feature is a secondary undesirable effect.
is_a: association
defining_slots:
- subject
Expand Down Expand Up @@ -10337,6 +10379,9 @@ classes:
- object
- sex qualifier
- disease context qualifier
- subject specialization qualifier
- object specialization qualifier
- anatomical context qualifier
defining_slots:
- object
slot_usage:
Expand Down
8 changes: 7 additions & 1 deletion project/jsonld/biolink_model.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2024-10-28T20:58:55",
"generation_date": "2024-11-07T15:54:30",
"source": "biolink_model.yaml"
},
"@context": {
Expand Down Expand Up @@ -2166,6 +2166,9 @@
"source_web_page": {
"@id": "source_web_page"
},
"specialization_qualifier": {
"@id": "specialization_qualifier"
},
"species_context_qualifier": {
"@type": "@id",
"@id": "species_context_qualifier"
Expand Down Expand Up @@ -2257,6 +2260,9 @@
"subject_part_qualifier": {
"@id": "subject_part_qualifier"
},
"subject_specialization_qualifier": {
"@id": "subject_specialization_qualifier"
},
"summary": {
"@id": "summary"
},
Expand Down
40 changes: 37 additions & 3 deletions project/jsonld/biolink_model.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -3905,6 +3905,31 @@
"range": "string",
"@type": "SlotDefinition"
},
{
"name": "specialization_qualifier",
"definition_uri": "https://w3id.org/biolink/vocab/specialization_qualifier",
"description": "A qualifier that composes with a core subject/object concept to define a more specific version of the subject concept, specifically using an ontology term that is not a subclass or descendant of the core concept and in the vast majority of cases, is of a different ontological namespace than the category or namespace of the subject identifier.",
"examples": [
{
"value": "CHEBI:24431",
"description": "In a MAXO annotation this would be a specialization in treatment of a disease. For example, fluoxetine would be a specialization of the MAXO term 'serotonin-norepinephrine reuptake inhibitor agent therapy' as a treatment for the HP term 'Fatigable muscle weakness' in the context of the MONDO term 'congenital myasthenic syndrome '4A.'",
"@type": "Example"
},
{
"value": "CL:0000123",
"description": "In an expression annotation this would be a specialization in location of an anatomical entity. For example, \"expression in the nucleas of hepatic cells\" would be a specialization of \"expression in hepatic cells\"",
"@type": "Example"
}
],
"from_schema": "https://w3id.org/biolink/biolink-model",
"is_a": "qualifier",
"abstract": true,
"domain": "Association",
"slot_uri": "https://w3id.org/biolink/vocab/specialization_qualifier",
"owner": "specialization_qualifier",
"range": "string",
"@type": "SlotDefinition"
},
{
"name": "aspect_qualifier",
"definition_uri": "https://w3id.org/biolink/vocab/aspect_qualifier",
Expand Down Expand Up @@ -4136,6 +4161,15 @@
"range": "string",
"@type": "SlotDefinition"
},
{
"name": "subject_specialization_qualifier",
"definition_uri": "https://w3id.org/biolink/vocab/subject_specialization_qualifier",
"description": "A qualifier that composes with a core subject/object concept to define a more specific version of the subject concept, specifically using an ontology term that is not a subclass or descendant of the core concept and in the vast majority of cases, is of a different ontological namespace than the category or namespace of the subject identifier.",
"from_schema": "https://w3id.org/biolink/biolink-model",
"slot_uri": "https://w3id.org/biolink/vocab/subject_specialization_qualifier",
"range": "string",
"@type": "SlotDefinition"
},
{
"name": "subject_form_or_variant_qualifier",
"definition_uri": "https://w3id.org/biolink/vocab/subject_form_or_variant_qualifier",
Expand Down Expand Up @@ -35761,9 +35795,9 @@
],
"metamodel_version": "1.7.0",
"source_file": "biolink_model.yaml",
"source_file_date": "2024-10-28T20:58:52",
"source_file_size": 401272,
"generation_date": "2024-10-28T20:58:57",
"source_file_date": "2024-11-07T15:54:25",
"source_file_size": 402910,
"generation_date": "2024-11-07T15:54:33",
"@type": "SchemaDefinition",
"@context": [
"project/jsonld/biolink_model.context.jsonld",
Expand Down
Loading

0 comments on commit 2b9d726

Please sign in to comment.