Skip to content

Commit

Permalink
Update make pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Nov 23, 2021
1 parent 5b162e0 commit 61aac21
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ontology/cl.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ tmp/asserted-subclass-of-axioms.obo: $(SRC) tmp/cl_terms.txt
# into existentials on roundtrip

tmp/source-merged.obo: $(SRC) tmp/asserted-subclass-of-axioms.obo config/remove_annotations.txt
$(ROBOT) merge --input $< \
$(ROBOT) merge --input $(SRC) \
reason --reasoner ELK \
relax \
remove --axioms equivalent \
merge -i tmp/asserted-subclass-of-axioms.obo \
remove -T config/remove_annotations.txt --axioms annotation \
query --update ../sparql/remove-op-definitions.ru \
convert --check false -f obo $(OBO_FORMAT_OPTIONS) -o tmp/source-merged.owl.obo &&\
grep -v ^owl-axioms tmp/source-merged.owl.obo > tmp/source-stripped2.obo &&\
grep -v '^def[:][ ]["]x[ ]only[ ]in[ ]taxon' tmp/source-stripped2.obo > tmp/source-stripped3.obo &&\
Expand Down
3 changes: 2 additions & 1 deletion src/ontology/config/remove_annotations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ RO:0002220
BSPO:0000126
BFO:0000062
RO:0002161
BSPO:0001108
BSPO:0001108
RO:0002373
24 changes: 24 additions & 0 deletions src/sparql/remove-op-definitions.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX description: <http://purl.obolibrary.org/obo/IAO_0000115>
PREFIX owl: <http://www.w3.org/2002/07/owl#>


DELETE {
?sub description: ?obj .
?relax a owl:Axiom ;
owl:annotatedSource ?sub ;
owl:annotatedProperty description: ;
owl:annotatedTarget ?obj ;
?a ?b .
}
WHERE {
{
?sub description: ?obj .
?relax a owl:Axiom ;
owl:annotatedSource ?sub ;
owl:annotatedProperty description: ;
owl:annotatedTarget ?obj ;
?a ?b .
FILTER (ISIRI(?sub) && STRSTARTS(STR(?sub), "http://purl.obolibrary.org/obo/RO_"))
}
}

0 comments on commit 61aac21

Please sign in to comment.