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 = ac6d4d8c5106493b34d9c9853b25ae71f9f7e6a51738c204ad5e22bf3a2cc2bf
13+ CONFIG_HASH = 0acc00c345099121252f4b4195577c15ff8ff846902163e3dcc825957fc1a87e
1414
1515
1616# ----------------------------------------
@@ -58,9 +58,9 @@ OTHER_SRC =
5858ONTOLOGYTERMS = $(TMPDIR ) /ontologyterms.txt
5959EDIT_PREPROCESSED = $(TMPDIR ) /$(ONT ) -preprocess.owl
6060
61- FORMATS = $(sort owl owl)
61+ FORMATS = $(sort owl ttl owl)
6262FORMATS_INCL_TSV = $(sort $(FORMATS ) tsv)
63- RELEASE_ARTEFACTS = $(sort $(ONT ) -full )
63+ RELEASE_ARTEFACTS = $(sort $(ONT ) -base $( ONT ) - full )
6464
6565ifeq ($(ODK_DEBUG ) ,yes)
6666ODK_DEBUG_FILE = debug.log
@@ -464,6 +464,9 @@ $(SUBSETDIR)/%.owl: $(ONT).owl | $(SUBSETDIR)
464464.PRECIOUS : $(SUBSETDIR ) /% .owl
465465
466466
467+ $(SUBSETDIR ) /% .ttl : $(SUBSETDIR ) /% .owl
468+ $(ROBOT ) convert --input $< --check false -f ttl -o $@ .tmp.ttl && mv $@ .tmp.ttl $@
469+
467470
468471# ---------------------------------------------
469472# Sparql queries: Table exports / Query Reports
@@ -483,6 +486,12 @@ endif
483486# ----------------------------------------
484487
485488
489+ $(ONT ) -base.ttl : $(ONT ) -base.owl
490+ $(ROBOT ) annotate --input $< --ontology-iri $(ONTBASE ) /$@ $(ANNOTATE_ONTOLOGY_VERSION ) \
491+ convert --check false -f ttl -o $@ .tmp.ttl && mv $@ .tmp.ttl $@
492+ $(ONT ) -full.ttl : $(ONT ) -full.owl
493+ $(ROBOT ) annotate --input $< --ontology-iri $(ONTBASE ) /$@ $(ANNOTATE_ONTOLOGY_VERSION ) \
494+ convert --check false -f ttl -o $@ .tmp.ttl && mv $@ .tmp.ttl $@
486495# ----------------------------------------
487496# Release artefacts: main release artefacts
488497# ----------------------------------------
@@ -491,6 +500,9 @@ $(ONT).owl: $(ONT)-full.owl
491500 $(ROBOT ) annotate --input $< --ontology-iri $(URIBASE ) /$@ $(ANNOTATE_ONTOLOGY_VERSION ) \
492501 convert -o $@ .tmp.owl && mv $@ .tmp.owl $@
493502
503+ $(ONT ) .ttl : $(ONT ) .owl
504+ $(ROBOT ) annotate --input $< --ontology-iri $(URIBASE ) /$@ $(ANNOTATE_ONTOLOGY_VERSION ) \
505+ convert --check false -f ttl -o $@ .tmp.ttl && mv $@ .tmp.ttl $@
494506# -----------------------------------------------------
495507# Release artefacts: variants (base, full, simple, etc)
496508# -----------------------------------------------------
@@ -505,6 +517,17 @@ ROBOT_RELEASE_IMPORT_MODE=$(ROBOT) merge --input $<
505517# ROBOT pipeline that removes imports, then merges components. This is for release artefacts that start from "base"
506518ROBOT_RELEASE_IMPORT_MODE_BASE =$(ROBOT ) remove --input $< --select imports --trim false merge $(patsubst % , -i % , $(OTHER_SRC ) )
507519
520+ # base: A version of the ontology that does not include any externally imported axioms.
521+ $(ONT ) -base.owl : $(EDIT_PREPROCESSED ) $(OTHER_SRC ) $(IMPORT_FILES )
522+ $(ROBOT_RELEASE_IMPORT_MODE ) \
523+ reason --reasoner ELK --equivalent-classes-allowed asserted-only --exclude-tautologies structural --annotate-inferred-axioms False \
524+ relax \
525+ reduce -r ELK \
526+ remove --base-iri $(URIBASE ) /CTO --axioms external --preserve-structure false --trim false \
527+ $(SHARED_ROBOT_COMMANDS ) \
528+ annotate --link-annotation http://purl.org/dc/elements/1.1/type http://purl.obolibrary.org/obo/IAO_8000001 \
529+ --ontology-iri $(ONTBASE ) /$@ $(ANNOTATE_ONTOLOGY_VERSION ) \
530+ --output $@ .tmp.owl && mv $@ .tmp.owl $@
508531# Full: The full artefacts with imports merged, reasoned.
509532$(ONT ) -full.owl : $(EDIT_PREPROCESSED ) $(OTHER_SRC ) $(IMPORT_FILES )
510533 $(ROBOT_RELEASE_IMPORT_MODE ) \
0 commit comments