From 2a9b51592238a4c37f58944e7187eb7aabeefc08 Mon Sep 17 00:00:00 2001 From: Nico Matentzoglu Date: Tue, 5 Apr 2022 15:22:33 +0300 Subject: [PATCH] Merging in develops from chain is component see https://github.com/obophenotype/uberon/issues/2381 --- src/ontology/components/develops-from-chains.owl | 13 +++++++++++++ src/ontology/uberon.Makefile | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/ontology/components/develops-from-chains.owl diff --git a/src/ontology/components/develops-from-chains.owl b/src/ontology/components/develops-from-chains.owl new file mode 100644 index 0000000000..10891b3159 --- /dev/null +++ b/src/ontology/components/develops-from-chains.owl @@ -0,0 +1,13 @@ +Prefix(:=) +Prefix(owl:=) +Prefix(rdf:=) +Prefix(xml:=) +Prefix(xsd:=) +Prefix(rdfs:=) + + +Ontology( + +SubObjectPropertyOf(ObjectPropertyChain( ) ) + +) \ No newline at end of file diff --git a/src/ontology/uberon.Makefile b/src/ontology/uberon.Makefile index 5a4b97ee7e..100ce1ee77 100644 --- a/src/ontology/uberon.Makefile +++ b/src/ontology/uberon.Makefile @@ -176,12 +176,16 @@ $(TMPDIR)/is_ok: $(TMPDIR)/materialized.owl ## **Hacking_Feb_2022** TODO - rewrite as as expansions from annotation axioms using SPARQL. Expanded axioms --> component (as for taxon restrictions). TMP_REFL=$(COMPONENTSDIR)/reflexivity_axioms.owl +DEVELOPS_FROM_CHAIN=$(COMPONENTSDIR)/develops-from-chains.owl +# see https://github.com/obophenotype/uberon/issues/2381 + $(TMPDIR)/materialized.owl: $(TMPDIR)/unreasoned.owl $(TMP_REFL) - $(ROBOT) merge -i $< --collapse-import-closure false \ + $(ROBOT) merge -i $< -i $(DEVELOPS_FROM_CHAIN) --collapse-import-closure false \ relax \ materialize -T $(CONFIGDIR)/basic_properties.txt -r elk \ reason -r elk --exclude-duplicate-axioms true --equivalent-classes-allowed asserted-only \ unmerge -i $(TMP_REFL) \ + unmerge -i $(DEVELOPS_FROM_CHAIN) \ annotate -O $(URIBASE)/uberon/materialized.owl -V $(RELEASE)/materialized.owl -o $@ 2>&1 > $@.LOG .PRECIOUS: $(TMPDIR)/materialized.owl