Skip to content

Commit cbad405

Browse files
authored
Merge pull request #115 from gouttegd/update-sssomt-ruleset
2 parents a319cc4 + 27d0e35 commit cbad405

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)