Skip to content

Commit 27d0e35

Browse files
committed
Update SSSOM/T-OWL rulesets.
The SSSOM/T-OWL rulesets used to inject mapping-derived axioms are using constructs (such as `check_subject_existence()`) that date from SSSOM-Java <= 0.9.0 and were deprecated in SSSOM-Java 1.0.0. Those constructs will no longer be supported in the upcoming SSSOM-Java 1.9.0. We replace those constructs by their modern equivalents in SSSOM-Java 1.0.0 and older.
1 parent acea964 commit 27d0e35

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/ontology/config/mappings-to-uberon-bridge.rules

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ prefix CL: <http://purl.obolibrary.org/obo/CL_>
66
!(object==UBERON:* || object==CL:*) -> stop();
77

88
# Ignore any mapping to/from an inexistent or obsolete class.
9-
predicate==* -> check_object_existence();
10-
predicate==* -> check_subject_existence();
9+
!exists(%{subject_id}) || !exists(%{object_id}) -> stop();
1110

1211
# Ignore any mapping where the same foreign term is mapped to more than one UBERON/CL class.
1312
# !cardinality==*:1 -> stop();
1413

1514
# Create the subclassOf axiom and annotate it with a subset of the mapping metadata
16-
predicate==semapv:crossSpeciesExactMatch -> create_axiom('%subject_id SubClassOf: %object_id', "direct:metadata");
15+
predicate==semapv:crossSpeciesExactMatch -> create_axiom('%subject_id SubClassOf: %object_id', /annots="metadata");

src/ontology/config/mappings-to-upheno-oba.rules

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ prefix UPHENO: <http://purl.obolibrary.org/obo/UPHENO_>
22
prefix OBA: <http://purl.obolibrary.org/obo/OBA_>
33
prefix BFO: <http://purl.obolibrary.org/obo/BFO_>
44

5-
# Make sure UBERON/CL classes, and only UBERON/CL classes, are on the object side
5+
# Make sure OBA classes, and only OBA classes, are on the object side
66
subject==OBA:* -> invert();
77
!object==OBA:* -> stop();
88

99
# Ignore any mapping to/from an inexistent or obsolete class.
10-
predicate==* -> check_object_existence();
11-
predicate==* -> check_subject_existence();
10+
!exists(%{subject_id}) || !exists(%{object_id}) -> stop();
1211

1312
# Create the subclassOf axiom and annotate it with a subset of the mapping metadata
14-
predicate==UPHENO:phenotypeToTrait -> create_axiom('%subject_id SubClassOf: BFO:0000051 some %object_id', "direct:metadata");
13+
predicate==UPHENO:phenotypeToTrait -> create_axiom('%subject_id SubClassOf: BFO:0000051 some %object_id', /annots="metadata");

0 commit comments

Comments
 (0)