Skip to content

Commit 6ac8fd0

Browse files
authored
Merge pull request #122 from monarch-initiative/foodon_for_mic
Add FOODON partial import for MIC food terms
2 parents a3bc25a + 9d59fd4 commit 6ac8fd0

6 files changed

Lines changed: 84 additions & 4 deletions

File tree

docs/odk-workflows/RepositoryFileStructure.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ These are the current imports in PHENIO
3333
| pato | http://purl.obolibrary.org/obo/pato.owl | slme |
3434
| mpath | http://purl.obolibrary.org/obo/mpath.owl | slme |
3535
| nbo | http://purl.obolibrary.org/obo/nbo.owl | slme |
36+
| foodon | http://purl.obolibrary.org/obo/foodon.owl | slme |
3637
| upheno-bridge | https://raw.githubusercontent.com/obophenotype/upheno/refs/heads/master/src/ontology/components/upheno-bridge.owl | slme |
3738
| upheno-alignments | https://raw.githubusercontent.com/obophenotype/upheno/refs/heads/master/src/ontology/components/upheno-alignments.owl | slme |
3839
## Components

src/ontology/Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# More information: https://github.com/INCATools/ontology-development-kit/
1111

1212
# Fingerprint of the configuration file when this Makefile was last generated
13-
CONFIG_HASH= 54f36db115c6c77e8be9f3c4ce65dc2c04c59ba8bda026bc48bf5607dc7e4345
13+
CONFIG_HASH= 8a1e7113eb999f6d8e09c96cc08cc2dcec13f87d8e4d4ef643c332d1fa5da07b
1414

1515

1616
# ----------------------------------------
@@ -196,7 +196,7 @@ all_main: $(MAIN_FILES)
196196
# ----------------------------------------
197197

198198

199-
IMPORTS = monochrom ncbigene hgnc so bspo wbls zfs fbdv chebi pr eco bfo ro ncbitaxon-taxslim pato mpath nbo upheno-bridge upheno-alignments
199+
IMPORTS = monochrom ncbigene hgnc so bspo wbls zfs fbdv chebi pr eco bfo ro ncbitaxon-taxslim pato mpath nbo foodon upheno-bridge upheno-alignments
200200

201201
IMPORT_ROOTS = $(IMPORTDIR)/merged_import
202202
IMPORT_OWL_FILES = $(foreach n,$(IMPORT_ROOTS), $(n).owl)
@@ -1123,6 +1123,14 @@ mirror-nbo: | $(TMPDIR)
11231123
$(ROBOT) remove -i $(TMPDIR)/nbo-download.owl --base-iri http://purl.obolibrary.org/obo/NBO_ --axioms external --preserve-structure false --trim false -o $(TMPDIR)/$@.owl
11241124

11251125

1126+
## ONTOLOGY: foodon
1127+
.PHONY: mirror-foodon
1128+
.PRECIOUS: $(MIRRORDIR)/foodon.owl
1129+
mirror-foodon: | $(TMPDIR)
1130+
curl -L $(OBOBASE)/foodon.owl --create-dirs -o $(TMPDIR)/foodon-download.owl --retry 4 --max-time 400 && \
1131+
$(ROBOT) remove -i $(TMPDIR)/foodon-download.owl --base-iri http://purl.obolibrary.org/obo/FOODON_ --axioms external --preserve-structure false --trim false -o $(TMPDIR)/$@.owl
1132+
1133+
11261134
## ONTOLOGY: upheno-bridge
11271135
.PHONY: mirror-upheno-bridge
11281136
.PRECIOUS: $(MIRRORDIR)/upheno-bridge.owl
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0"?>
2+
<rdf:RDF
3+
xml:base="http://purl.obolibrary.org/obo/"
4+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
5+
xmlns:owl="http://www.w3.org/2002/07/owl#"
6+
xmlns:oboInOwl="http://www.geneontology.org/formats/oboInOwl#"
7+
xmlns:xml="http://www.w3.org/XML/1998/namespace"
8+
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
9+
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
10+
xmlns:obo="http://purl.obolibrary.org/obo/">
11+
<owl:Ontology rdf:about="http://purl.obolibrary.org/obo/phenio/imports/foodon_import.owl"/>
12+
13+
<!-- This is a placeholder, it will be regenerated when makefile is first executed -->
14+
</rdf:RDF>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
FOODON:00001001
2+
FOODON:00001040
3+
FOODON:00001041
4+
FOODON:00001082
5+
FOODON:00001088
6+
FOODON:00001123
7+
FOODON:00001164
8+
FOODON:00001169
9+
FOODON:00001172
10+
FOODON:00001175
11+
FOODON:00001240
12+
FOODON:00001257
13+
FOODON:00001264
14+
FOODON:00001274
15+
FOODON:00001275
16+
FOODON:00001564
17+
FOODON:00001620
18+
FOODON:00001666
19+
FOODON:00001687
20+
FOODON:00001895
21+
FOODON:00001997
22+
FOODON:00002050
23+
FOODON:00002055
24+
FOODON:00002075
25+
FOODON:00002255
26+
FOODON:00002269
27+
FOODON:00002320
28+
FOODON:00002323
29+
FOODON:00002479
30+
FOODON:00002644
31+
FOODON:00002668
32+
FOODON:00002669
33+
FOODON:00002923
34+
FOODON:00003029
35+
FOODON:00003094
36+
FOODON:00003205
37+
FOODON:00003208
38+
FOODON:00003429
39+
FOODON:00003443
40+
FOODON:00003521
41+
FOODON:00003523
42+
FOODON:00003534
43+
FOODON:00003600
44+
FOODON:00004387
45+
FOODON:00004697
46+
FOODON:02020157
47+
FOODON:02020913
48+
FOODON:03301410
49+
FOODON:03301415
50+
FOODON:03304999
51+
FOODON:03306867
52+
FOODON:03306936
53+
FOODON:03411116
54+
FOODON:03411222

src/ontology/phenio-odk.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ import_group:
125125
make_base: TRUE
126126
base_iris:
127127
- http://purl.obolibrary.org/obo/NBO_
128-
128+
- id: foodon
129+
make_base: TRUE
130+
base_iris:
131+
- http://purl.obolibrary.org/obo/FOODON_
132+
129133
# Bridge Ontologies (Phenotypes) - we import these as import modules to only get the bridging axioms relevant to PHENIO
130134
- id: upheno-bridge
131135
mirror_from: https://raw.githubusercontent.com/obophenotype/upheno/refs/heads/master/src/ontology/components/upheno-bridge.owl

src/ontology/phenio.Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ phenio-full.owl: $(TMPDIR)/$(ONT)-full-unreasoned.owl $(MAPPINGDIR)/cl.sssom.tsv
116116
remove --select "<http://purl.obolibrary.org/obo/PCO_*>" \
117117
remove --select "<hhttps://purl.brain-bican.org/ontology/mbao/MBA_*>" \
118118
remove --select "<http://purl.obolibrary.org/obo/CLM_*>" \
119-
remove --select "<http://purl.obolibrary.org/obo/FOODON_*>" \
120119
remove --select "<http://purl.obolibrary.org/obo/PO_*>" \
121120
remove --select "<http://purl.obolibrary.org/obo/BTO_*>" \
122121
remove --select "<http://purl.obolibrary.org/obo/RnorDv_*>" \

0 commit comments

Comments
 (0)