Skip to content

Commit cc7d213

Browse files
committed
Document OTO workaround and refresh registry artifacts
1 parent 65b1fe1 commit cc7d213

5 files changed

Lines changed: 36 additions & 1 deletion

File tree

ontologies.Makefile

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,28 @@ db/oeo.owl: download/oeo.owl
460460
cp $< $@
461461

462462

463+
download/cepo.owl: STAMP
464+
curl -L -s https://raw.githubusercontent.com/OpenEnergyPlatform/ClimateEnergyPolicyOntology/production/src/ontology/cepo.owl > $@.tmp
465+
sha256sum -b $@.tmp > $@.sha256
466+
mv $@.tmp $@
467+
468+
.PRECIOUS: download/cepo.owl
469+
470+
db/cepo.owl: download/cepo.owl
471+
robot merge -i $< -o $@
472+
473+
474+
download/oto.owl: STAMP
475+
curl -L -s https://raw.githubusercontent.com/OpenEnergyPlatform/OpenTransportOntology/production/src/ontology/oto.ttl > $@.tmp
476+
sha256sum -b $@.tmp > $@.sha256
477+
mv $@.tmp $@
478+
479+
.PRECIOUS: download/oto.owl
480+
481+
db/oto.owl: download/oto.owl
482+
perl -0pe 's@http://w3id.org/oto/develop/oto-shared.ttl@https://raw.githubusercontent.com/OpenEnergyPlatform/OpenTransportOntology/production/src/ontology/edits/oto-shared.ttl@g' $< > $@.tmp.ttl && robot merge -i $@.tmp.ttl -o $@ && rm $@.tmp.ttl
483+
484+
463485
download/envthes.owl: STAMP
464486
curl -L -s https://vocabs.lter-europe.net/rest/v1/envthes/data?format=text/turtle > $@.tmp
465487
sha256sum -b $@.tmp > $@.sha256
@@ -1658,4 +1680,4 @@ download/%.owl: STAMP
16581680
db/%.owl: download/%.owl
16591681
robot merge -i $< -o $@
16601682

1661-
EXTRA_ONTOLOGIES = swo chiro pcl chemessence ogco ncit fma maxo foodon chebiplus msio chemrof deb matpo panet phenx pride sosa emi npc modl phenio comploinc hba mba dmba dhba pba bero aio reacto xsmo bcio sio icd10who icd11f ordo gard icd10cm omim mondo-ingest oeo envthes wifire taxslim goldterms sdgio kin metpo d3o biovoices omop comet cco occo iof upa go go-lego go-amigo neo bao orcid ror 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 gist gistBFO fhkb dbpendiaont uberoncm co_324 ppeo interpro pfam hgnc.genegroup hgnc sgd gtdb eccode uniprot uniprot.ptm credit rhea swisslipid drugbank drugcentral complexportal wikipathways pathbank kegg.genome drugmechdb rxnorm vccf ontobiotope nando ecso enigma_context cbo ontie pain como ecosim bervo valuesets micront nmdc_schema mixs kgcl fibo bfo2020 bfo2020_core bfo2020_notime bfo2020_time saref4ener saref4bldg hhearvs sdoho pathgo brick minsysont sulo
1683+
EXTRA_ONTOLOGIES = swo chiro pcl chemessence ogco ncit fma maxo foodon chebiplus msio chemrof deb matpo panet phenx pride sosa emi npc modl phenio comploinc hba mba dmba dhba pba bero aio reacto xsmo bcio sio icd10who icd11f ordo gard icd10cm omim mondo-ingest oeo cepo oto envthes wifire taxslim goldterms sdgio kin metpo d3o biovoices omop comet cco occo iof upa go go-lego go-amigo neo bao orcid ror 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 gist gistBFO fhkb dbpendiaont uberoncm co_324 ppeo interpro pfam hgnc.genegroup hgnc sgd gtdb eccode uniprot uniprot.ptm credit rhea swisslipid drugbank drugcentral complexportal wikipathways pathbank kegg.genome drugmechdb rxnorm vccf ontobiotope nando ecso enigma_context cbo ontie pain como ecosim bervo valuesets micront nmdc_schema mixs kgcl fibo bfo2020 bfo2020_core bfo2020_notime bfo2020_time saref4ener saref4bldg hhearvs sdoho pathgo brick minsysont sulo

src/semsql/builder/prefixes/prefixes.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ OEO,https://openenergyplatform.org/ontology/oeo/OEO_
117117
OEOX,https://openenergyplatform.org/ontology/oeo/OEOX_
118118
MENO,https://raw.githubusercontent.com/stap-m/midlevel-energy-ontology/main/ontology/src/midlevel-energy.owl/MENO_
119119
OEO.CCO,http://www.ontologyrepository.com/CommonCoreOntologies/
120+
CEPO,http://purl.org/cepo/ontology#cepo_
121+
OTO,http://w3id.org/oto/OTO_
120122
envthes,http://vocabs.lter-europe.net/EnvThes/
121123
omv,http://omv.ontoware.org/2005/05/
122124
iadopt,https://w3id.org/iadopt/ont/

src/semsql/builder/prefixes/prefixes_local.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ OEO,https://openenergyplatform.org/ontology/oeo/OEO_
5454
OEOX,https://openenergyplatform.org/ontology/oeo/OEOX_
5555
MENO,https://raw.githubusercontent.com/stap-m/midlevel-energy-ontology/main/ontology/src/midlevel-energy.owl/MENO_
5656
OEO.CCO,http://www.ontologyrepository.com/CommonCoreOntologies/
57+
CEPO,http://purl.org/cepo/ontology#cepo_
58+
OTO,http://w3id.org/oto/OTO_
5759
envthes,http://vocabs.lter-europe.net/EnvThes/
5860
omv,http://omv.ontoware.org/2005/05/
5961
iadopt,https://w3id.org/iadopt/ont/

src/semsql/builder/registry/ontologies.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ ontologies:
215215
url: https://raw.githubusercontent.com/OpenEnergyPlatform/OpenTransportOntology/production/src/ontology/oto.ttl
216216
has_imports: true
217217
format: turtle
218+
# Temporary workaround: the published import target `http://w3id.org/oto/develop/oto-shared.ttl`
219+
# currently resolves to HTML docs instead of RDF/Turtle.
220+
# Upstream issue: https://github.com/OpenEnergyPlatform/OpenTransportOntology/issues/46
218221
build_command: "perl -0pe 's@http://w3id.org/oto/develop/oto-shared.ttl@https://raw.githubusercontent.com/OpenEnergyPlatform/OpenTransportOntology/production/src/ontology/edits/oto-shared.ttl@g' $< > $@.tmp.ttl && robot merge -i $@.tmp.ttl -o $@ && rm $@.tmp.ttl"
219222
prefixmap:
220223
OTO: http://w3id.org/oto/OTO_

tests/test_builder/test_registry.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""Registry compilation tests.
2+
3+
These tests only verify that ontology registry entries compile into the expected
4+
download/build rules. They are not end-to-end ontology build tests.
5+
"""
6+
17
import re
28

39
import pytest

0 commit comments

Comments
 (0)