Skip to content

Commit 748497b

Browse files
authored
Merge pull request #91 from INCATools/swo-prefixes
Adding overrides for SWO prefixes.
2 parents f488caf + f25ac94 commit 748497b

File tree

5 files changed

+422
-17
lines changed

5 files changed

+422
-17
lines changed

ontologies.Makefile

Lines changed: 186 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
download/upheno.owl: STAMP
2-
curl -L -s http://purl.obolibrary.org/obo/upheno.owl > $@.tmp
1+
download/swo.owl: STAMP
2+
curl -L -s http://purl.obolibrary.org/obo/swo.owl > $@.tmp
33
sha256sum -b $@.tmp > $@.sha256
44
mv $@.tmp $@
55

6-
.PRECIOUS: download/upheno.owl
6+
.PRECIOUS: download/swo.owl
77

8-
db/upheno.owl: download/upheno.owl
8+
db/swo.owl: download/swo.owl
99
robot merge -i $< -o $@
1010

1111

@@ -20,6 +20,39 @@ db/chiro.owl: download/chiro.owl
2020
robot relax -i $< merge -o $@
2121

2222

23+
download/pcl.owl: STAMP
24+
curl -L -s http://purl.obolibrary.org/obo/pcl.owl > $@.tmp
25+
sha256sum -b $@.tmp > $@.sha256
26+
mv $@.tmp $@
27+
28+
.PRECIOUS: download/pcl.owl
29+
30+
db/pcl.owl: download/pcl.owl
31+
cp $< $@
32+
33+
34+
download/chemessence.owl: STAMP
35+
curl -L -s https://github.com/cmungall/chemessence/releases/latest/download/chemessence.owl > $@.tmp
36+
sha256sum -b $@.tmp > $@.sha256
37+
mv $@.tmp $@
38+
39+
.PRECIOUS: download/chemessence.owl
40+
41+
db/chemessence.owl: download/chemessence.owl
42+
cp $< $@
43+
44+
45+
download/ogco.owl: STAMP
46+
curl -L -s https://raw.githubusercontent.com/cmungall/chemessence/refs/heads/main/src/ontology/components/ogco.owl > $@.tmp
47+
sha256sum -b $@.tmp > $@.sha256
48+
mv $@.tmp $@
49+
50+
.PRECIOUS: download/ogco.owl
51+
52+
db/ogco.owl: download/ogco.owl
53+
cp $< $@
54+
55+
2356
download/ncit.owl: STAMP
2457
curl -L -s http://purl.obolibrary.org/obo/ncit.owl > $@.tmp
2558
sha256sum -b $@.tmp > $@.sha256
@@ -86,6 +119,17 @@ db/msio.owl: download/msio.owl
86119
cp $< $@
87120

88121

122+
download/pride.owl: STAMP
123+
curl -L -s https://raw.githubusercontent.com/PRIDE-Archive/pride-ontology/master/pride_cv.obo > $@.tmp
124+
sha256sum -b $@.tmp > $@.sha256
125+
mv $@.tmp $@
126+
127+
.PRECIOUS: download/pride.owl
128+
129+
db/pride.owl: download/pride.owl
130+
robot relax -i $< merge -o $@
131+
132+
89133
download/modl.owl: STAMP
90134
curl -L -s https://raw.githubusercontent.com/Data-Semantics-Laboratory/modular-ontology-design-library/master/MODL.owl > $@.tmp
91135
sha256sum -b $@.tmp > $@.sha256
@@ -98,7 +142,7 @@ db/modl.owl: download/modl.owl
98142

99143

100144
download/phenio.owl: STAMP
101-
curl -L -s https://github.com/monarch-initiative/phenio/releases/latest/download/phenio.owl > $@.tmp
145+
curl -L -s https://github.com/monarch-initiative/phenio/releases/latest/download/phenio.owl.gz | gzip -dc > $@.tmp
102146
sha256sum -b $@.tmp > $@.sha256
103147
mv $@.tmp $@
104148

@@ -163,6 +207,17 @@ db/reacto.owl: download/reacto.owl
163207
cp $< $@
164208

165209

210+
download/xsmo.owl: STAMP
211+
curl -L -s https://download.xenbase.org/xenbase/Ontologies/XSMO/XSMO_1.1/XSMO_1.1.owl > $@.tmp
212+
sha256sum -b $@.tmp > $@.sha256
213+
mv $@.tmp $@
214+
215+
.PRECIOUS: download/xsmo.owl
216+
217+
db/xsmo.owl: download/xsmo.owl
218+
cp $< $@
219+
220+
166221
download/bcio.owl: STAMP
167222
curl -L -s http://humanbehaviourchange.org/ontology/bcio.owl > $@.tmp
168223
sha256sum -b $@.tmp > $@.sha256
@@ -229,6 +284,28 @@ db/oeo.owl: download/oeo.owl
229284
cp $< $@
230285

231286

287+
download/envthes.owl: STAMP
288+
curl -L -s https://vocabs.lter-europe.net/rest/v1/envthes/data?format=text/turtle > $@.tmp
289+
sha256sum -b $@.tmp > $@.sha256
290+
mv $@.tmp $@
291+
292+
.PRECIOUS: download/envthes.owl
293+
294+
db/envthes.owl: download/envthes.owl
295+
robot query -i $< --update sparql/skos-to-owl.ru -o $@
296+
297+
298+
download/wifire.owl: STAMP
299+
curl -L -s https://raw.githubusercontent.com/WIFIRE-Lab/WIFIRE-commons-ontology/master/WIFIRE-commons-ontology-V1.owl > $@.tmp
300+
sha256sum -b $@.tmp > $@.sha256
301+
mv $@.tmp $@
302+
303+
.PRECIOUS: download/wifire.owl
304+
305+
db/wifire.owl: download/wifire.owl
306+
cp $< $@
307+
308+
232309
download/taxslim.owl: STAMP
233310
curl -L -s http://purl.obolibrary.org/obo/ncbitaxon/subsets/taxslim.obo > $@.tmp
234311
sha256sum -b $@.tmp > $@.sha256
@@ -406,7 +483,7 @@ db/bao.owl: download/bao.owl
406483

407484

408485
download/orcid.owl: STAMP
409-
curl -L -s https://raw.githubusercontent.com/cthoyt/wikidata-orcid-ontology/main/orcid.owl > $@.tmp
486+
curl -L -s https://w3id.org/orcidio/orcidio.owl > $@.tmp
410487
sha256sum -b $@.tmp > $@.sha256
411488
mv $@.tmp $@
412489

@@ -482,6 +559,28 @@ db/ito.owl: download/ito.owl
482559
cp $< $@
483560

484561

562+
download/chemont.owl: STAMP
563+
curl -L -s http://classyfire.wishartlab.com/system/downloads/1_0/chemont/ChemOnt_2_1.obo.zip > $@.zip.tmp && unzip -p $@.zip.tmp ChemOnt_2_1.obo > $@.tmp && rm $@.zip.tmp
564+
sha256sum -b $@.tmp > $@.sha256
565+
mv $@.tmp $@
566+
567+
.PRECIOUS: download/chemont.owl
568+
569+
db/chemont.owl: download/chemont.owl
570+
robot convert -i $< -o $@
571+
572+
573+
download/molgenie.owl: STAMP
574+
curl -L -s https://github.com/MolGenie/ontology/blob/main/mol_classes_ext_2024-11-20.obo > $@.tmp
575+
sha256sum -b $@.tmp > $@.sha256
576+
mv $@.tmp $@
577+
578+
.PRECIOUS: download/molgenie.owl
579+
580+
db/molgenie.owl: download/molgenie.owl
581+
robot convert -i $< -o $@
582+
583+
485584
download/cso.owl: STAMP
486585
curl -L -s https://cso.kmi.open.ac.uk/download/version-3.3/CSO.3.3.owl.zip > $@.zip.tmp && unzip -p $@.zip.tmp CSO.3.3.owl > $@.tmp && rm $@.zip.tmp
487586
sha256sum -b $@.tmp > $@.sha256
@@ -504,6 +603,17 @@ db/obiws.owl: download/obiws.owl
504603
cp $< $@
505604

506605

606+
download/biopragmatics-reactome.owl: STAMP
607+
curl -L -s https://w3id.org/biopragmatics/resources/reactome/reactome.obo > $@.tmp
608+
sha256sum -b $@.tmp > $@.sha256
609+
mv $@.tmp $@
610+
611+
.PRECIOUS: download/biopragmatics-reactome.owl
612+
613+
db/biopragmatics-reactome.owl: download/biopragmatics-reactome.owl
614+
cp $< $@
615+
616+
507617
download/reactome-hs.owl: STAMP
508618
curl -L -s https://reactome.org/download/current/biopax.zip > $@.zip.tmp && unzip -p $@.zip.tmp Homo_sapiens.owl > $@.tmp && rm $@.zip.tmp
509619
sha256sum -b $@.tmp > $@.sha256
@@ -592,6 +702,28 @@ db/sweetAll.owl: download/sweetAll.owl
592702
robot merge -i $< -o $@
593703

594704

705+
download/oboe-core.owl: STAMP
706+
curl -L -s http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl > $@.tmp
707+
sha256sum -b $@.tmp > $@.sha256
708+
mv $@.tmp $@
709+
710+
.PRECIOUS: download/oboe-core.owl
711+
712+
db/oboe-core.owl: download/oboe-core.owl
713+
cp $< $@
714+
715+
716+
download/oboe-standards.owl: STAMP
717+
curl -L -s http://ecoinformatics.org/oboe/oboe.1.0/oboe-standards.owl > $@.tmp
718+
sha256sum -b $@.tmp > $@.sha256
719+
mv $@.tmp $@
720+
721+
.PRECIOUS: download/oboe-standards.owl
722+
723+
db/oboe-standards.owl: download/oboe-standards.owl
724+
cp $< $@
725+
726+
595727
download/lov.owl: STAMP
596728
curl -L -s https://lov.linkeddata.es/lov.n3.gz | gzip -dc > $@.tmp
597729
sha256sum -b $@.tmp > $@.sha256
@@ -735,6 +867,17 @@ db/icd10cm.owl: download/icd10cm.owl
735867
cp $< $@
736868

737869

870+
download/omim.owl: STAMP
871+
curl -L -s https://github.com/monarch-initiative/mondo-ingest/releases/latest/download/omim.owl > $@.tmp
872+
sha256sum -b $@.tmp > $@.sha256
873+
mv $@.tmp $@
874+
875+
.PRECIOUS: download/omim.owl
876+
877+
db/omim.owl: download/omim.owl
878+
cp $< $@
879+
880+
738881
download/co_324.owl: STAMP
739882
curl -L -s https://cropontology.org/ontology/CO_324/rdf > $@.tmp
740883
sha256sum -b $@.tmp > $@.sha256
@@ -824,7 +967,7 @@ db/eccode.owl: download/eccode.owl
824967

825968

826969
download/uniprot.owl: STAMP
827-
curl -L -s https://github.com/biopragmatics/obo-db-ingest/raw/main/export/uniprot/2022_02/uniprot.owl.gz | gzip -dc > $@.tmp
970+
curl -L -s https://w3id.org/biopragmatics/resources/uniprot/2022_02/uniprot.owl.gz | gzip -dc > $@.tmp
828971
sha256sum -b $@.tmp > $@.sha256
829972
mv $@.tmp $@
830973

@@ -835,14 +978,14 @@ db/uniprot.owl: download/uniprot.owl
835978

836979

837980
download/rhea.owl: STAMP
838-
curl -L -s https://w3id.org/biopragmatics/resources/rhea/rhea.owl > $@.tmp
981+
curl -L -s https://w3id.org/biopragmatics/resources/rhea/rhea.obo > $@.tmp
839982
sha256sum -b $@.tmp > $@.sha256
840983
mv $@.tmp $@
841984

842985
.PRECIOUS: download/rhea.owl
843986

844987
db/rhea.owl: download/rhea.owl
845-
cp $< $@
988+
robot merge -i $< -o $@
846989

847990

848991
download/swisslipid.owl: STAMP
@@ -900,6 +1043,28 @@ db/wikipathways.owl: download/wikipathways.owl
9001043
cp $< $@
9011044

9021045

1046+
download/pathbank.owl: STAMP
1047+
curl -L -s https://w3id.org/biopragmatics/resources/pathbank/pathbank.obo.gz | gzip -dc > $@.tmp
1048+
sha256sum -b $@.tmp > $@.sha256
1049+
mv $@.tmp $@
1050+
1051+
.PRECIOUS: download/pathbank.owl
1052+
1053+
db/pathbank.owl: download/pathbank.owl
1054+
cp $< $@
1055+
1056+
1057+
download/kegg.genome.owl: STAMP
1058+
curl -L -s https://w3id.org/biopragmatics/resources/kegg.genome/kegg.genome.obo > $@.tmp
1059+
sha256sum -b $@.tmp > $@.sha256
1060+
mv $@.tmp $@
1061+
1062+
.PRECIOUS: download/kegg.genome.owl
1063+
1064+
db/kegg.genome.owl: download/kegg.genome.owl
1065+
cp $< $@
1066+
1067+
9031068
download/drugmechdb.owl: STAMP
9041069
curl -L -s None > $@.tmp
9051070
sha256sum -b $@.tmp > $@.sha256
@@ -1021,6 +1186,17 @@ db/mixs.owl: download/mixs.owl
10211186
robot merge -i $< reason -o $@
10221187

10231188

1189+
download/kgcl.owl: STAMP
1190+
curl -L -s https://w3id.org/kgcl/kgcl.owl.ttl > $@.tmp
1191+
sha256sum -b $@.tmp > $@.sha256
1192+
mv $@.tmp $@
1193+
1194+
.PRECIOUS: download/kgcl.owl
1195+
1196+
db/kgcl.owl: download/kgcl.owl
1197+
robot merge -i $< reason -o $@
1198+
1199+
10241200
download/fibo.owl: STAMP
10251201
curl -L -s https://spec.edmcouncil.org/fibo/ontology/AboutFIBOProd/ > $@.tmp
10261202
sha256sum -b $@.tmp > $@.sha256
@@ -1086,4 +1262,4 @@ download/%.owl: STAMP
10861262
db/%.owl: download/%.owl
10871263
robot merge -i $< -o $@
10881264

1089-
EXTRA_ONTOLOGIES = upheno chiro ncit fma maxo foodon chebiplus msio modl phenio phenio_test comploinc bero aio reacto bcio icd10who ordo gard mondo-ingest oeo taxslim goldterms sdgio kin biovoices omop comet cco occo iof upa go go-lego go-amigo neo bao orcid cpont biolink biopax enanomapper mlo ito cso obiws reactome-hs reactome-mm efo hcao hpinternational edam chr sweetAll lov schema-dot-org prov dtype vaem qudtunit quantitykind cellosaurus cosmo fhkb dbpendiaont uberoncm icd10cm co_324 ppeo interpro hgnc.genegroup hgnc sgd dictybase eccode uniprot rhea swisslipid drugbank drugcentral complexportal wikipathways drugmechdb rxnorm vccf ontobiotope nando ecso enigma_context ontie ecosim nmdc_schema mixs fibo bfo2020 bfo2020_core bfo2020_notime bfo2020_time
1265+
EXTRA_ONTOLOGIES = swo chiro pcl chemessence ogco ncit fma maxo foodon chebiplus msio pride modl phenio phenio_test comploinc bero aio reacto xsmo bcio icd10who ordo gard mondo-ingest oeo envthes wifire taxslim goldterms sdgio kin biovoices omop comet cco occo iof upa go go-lego go-amigo neo bao orcid cpont biolink biopax enanomapper mlo ito chemont molgenie cso obiws biopragmatics-reactome reactome-hs reactome-mm efo hcao hpinternational edam chr sweetAll oboe-core oboe-standards lov schema-dot-org prov dtype vaem qudtunit quantitykind cellosaurus cosmo fhkb dbpendiaont uberoncm icd10cm omim co_324 ppeo interpro hgnc.genegroup hgnc sgd dictybase eccode uniprot rhea swisslipid drugbank drugcentral complexportal wikipathways pathbank kegg.genome drugmechdb rxnorm vccf ontobiotope nando ecso enigma_context ontie ecosim nmdc_schema mixs kgcl fibo bfo2020 bfo2020_core bfo2020_notime bfo2020_time

sparql/skos-to-owl.ru

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
2+
PREFIX owl: <http://www.w3.org/2002/07/owl#>
3+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
4+
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
5+
PREFIX IAO: <http://purl.obolibrary.org/obo/IAO_>
6+
7+
# Transform broader to subClassOf
8+
DELETE {
9+
?concept skos:broader ?broaderConcept .
10+
}
11+
INSERT {
12+
?concept rdf:type owl:Class .
13+
?broaderConcept rdf:type owl:Class .
14+
?concept rdfs:subClassOf ?broaderConcept .
15+
}
16+
WHERE {
17+
?concept skos:broader ?broaderConcept .
18+
};
19+
20+
# Transform prefLabel to rdfs:label
21+
DELETE {
22+
?concept skos:prefLabel ?label .
23+
}
24+
INSERT {
25+
?concept rdfs:label ?label .
26+
}
27+
WHERE {
28+
?concept skos:prefLabel ?label .
29+
};
30+
31+
# Transform SKOS definition to IAO definition
32+
DELETE {
33+
?concept skos:definition ?definition .
34+
}
35+
INSERT {
36+
?concept IAO:0000115 ?definition .
37+
}
38+
WHERE {
39+
?concept skos:definition ?definition .
40+
};
41+
42+
43+
DELETE {
44+
?concept rdf:type skos:Concept .
45+
}
46+
INSERT {
47+
?concept rdf:type owl:Class .
48+
}
49+
WHERE {
50+
?concept rdf:type skos:Concept .
51+
};
52+
53+
54+
DELETE {
55+
?concept rdf:type owl:NamedIndividual .
56+
}
57+
WHERE {
58+
?concept rdf:type owl:Class .
59+
};
60+
61+

0 commit comments

Comments
 (0)