Skip to content

Commit

Permalink
Add AISM, COLAO, LEPAO, HAO, CLAO, OARCS. (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff authored Jan 4, 2023
1 parent aa6ddb9 commit f4cb4f0
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
42 changes: 41 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ NONBASE_ONTOLOGIES := $(shell cat "ontologies.txt")

all: ubergraph.jnl.gz ubergraph.nq.gz redundant-graph-table.tgz nonredundant-graph-table.tgz ontologies-merged.ofn.gz

mirror: ontologies.txt pr-base.owl po-base.owl ppo-base.owl apo-base.owl mmusdv-base.owl foodon-base.owl to-base.owl peco-base.owl mro-base.owl ubergraph-axioms.ofn
mirror: ontologies.txt pr-base.owl po-base.owl ppo-base.owl apo-base.owl mmusdv-base.owl foodon-base.owl to-base.owl peco-base.owl mro-base.owl hao-base.owl clao-base.owl oarcs-base.owl ubergraph-axioms.ofn
mkdir -p $@ && cd $@ &&\
xargs -n 1 curl --retry 5 -L -O <../ontologies.txt &&\
cp ../pr-base.owl pr-base.owl &&\
Expand All @@ -23,6 +23,9 @@ mirror: ontologies.txt pr-base.owl po-base.owl ppo-base.owl apo-base.owl mmusdv-
cp ../to-base.owl to-base.owl &&\
cp ../peco-base.owl peco-base.owl &&\
cp ../mro-base.owl mro-base.owl &&\
cp ../hao-base.owl hao-base.owl &&\
cp ../clao-base.owl clao-base.owl &&\
cp ../oarcs-base.owl oarcs-base.owl &&\
$(ROBOT) convert -i ../ubergraph-axioms.ofn -o ubergraph-axioms.owl

build-metadata.nt: build-sparql/build-metadata.rq
Expand Down Expand Up @@ -134,6 +137,43 @@ mro-base.owl: mro.owl
--trim false \
--output $@

hao.owl:
curl -L -O 'http://purl.obolibrary.org/obo/hao.owl'

hao-base.owl: hao.owl
$(ROBOT) merge --input $< \
remove \
--base-iri 'http://purl.obolibrary.org/obo/HAO_' \
--axioms external \
--preserve-structure false \
--trim false \
--output $@

clao.owl:
curl -L -O 'http://purl.obolibrary.org/obo/clao.owl'

# CLAO provides a base download, but it includes RO axioms
clao-base.owl: clao.owl
$(ROBOT) merge --input $< \
remove \
--base-iri 'http://purl.obolibrary.org/obo/CLAO_' \
--axioms external \
--preserve-structure false \
--trim false \
--output $@

oarcs.owl:
curl -L -O 'http://purl.obolibrary.org/obo/oarcs.owl'

oarcs-base.owl: oarcs.owl
$(ROBOT) merge --input $< \
remove \
--base-iri 'http://purl.obolibrary.org/obo/OARCS_' \
--axioms external \
--preserve-structure false \
--trim false \
--output $@

ontologies-merged.ttl: mirror
$(ROBOT) merge $(addprefix -i mirror/,$(shell ls mirror)) \
remove --axioms 'disjoint' --trim true --preserve-structure false \
Expand Down
3 changes: 3 additions & 0 deletions ontologies.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
http://purl.obolibrary.org/obo/aism/aism-base.owl
http://purl.obolibrary.org/obo/bspo.owl
http://purl.obolibrary.org/obo/chebi.owl
http://purl.obolibrary.org/obo/cl/cl-base.owl
http://purl.obolibrary.org/obo/cob/cob-base.owl
http://purl.obolibrary.org/obo/cob/cob-to-external.owl
http://purl.obolibrary.org/obo/colao/colao-base.owl
http://purl.obolibrary.org/obo/dpo/dpo-base.owl
http://purl.obolibrary.org/obo/eco/eco-base.owl
http://purl.obolibrary.org/obo/ecto/ecto-base.owl
Expand All @@ -16,6 +18,7 @@ http://purl.obolibrary.org/obo/go/extensions/go-bfo-bridge.owl
http://purl.obolibrary.org/obo/go/go-base.owl
http://purl.obolibrary.org/obo/hp/hp-base.owl
http://purl.obolibrary.org/obo/iao.owl
http://purl.obolibrary.org/obo/lepao/lepao-base.owl
http://purl.obolibrary.org/obo/ma.owl
http://purl.obolibrary.org/obo/maxo/maxo-base.owl
http://purl.obolibrary.org/obo/mi.owl
Expand Down

0 comments on commit f4cb4f0

Please sign in to comment.