|
10 | 10 | # More information: https://github.com/INCATools/ontology-development-kit/ |
11 | 11 |
|
12 | 12 | # Fingerprint of the configuration file when this Makefile was last generated |
13 | | -CONFIG_HASH= f5a9d1ce153a46ffaef9ec764e1d72263a3f2459ad54de1c4a20829b9affd945 |
| 13 | +CONFIG_HASH= 799b43df9d1d26346103cbdacb63c0a80550e5c42db371ea9f878e01030b3928 |
14 | 14 |
|
15 | 15 |
|
16 | 16 | # ---------------------------------------- |
@@ -188,7 +188,7 @@ all_main: $(MAIN_FILES) |
188 | 188 | # ---------------------------------------- |
189 | 189 |
|
190 | 190 |
|
191 | | -IMPORTS = bfo ro iao obi chebi stato uo cob nfdicore |
| 191 | +IMPORTS = bfo ro iao obi chebi stato uo cob nfdicore time |
192 | 192 |
|
193 | 193 | IMPORT_ROOTS = $(patsubst %, $(IMPORTDIR)/%_import, $(IMPORTS)) |
194 | 194 | IMPORT_OWL_FILES = $(foreach n,$(IMPORT_ROOTS), $(n).owl) |
@@ -483,6 +483,25 @@ $(IMPORTDIR)/nfdicore_import.owl: $(MIRRORDIR)/nfdicore.owl $(IMPORTDIR)/nfdicor |
483 | 483 | repair --merge-axiom-annotations true \ |
484 | 484 | $(ANNOTATE_CONVERT_FILE) |
485 | 485 |
|
| 486 | +## Module for ontology: time (slme) |
| 487 | +$(IMPORTDIR)/time_import.owl: $(MIRRORDIR)/time.owl $(IMPORTDIR)/time_terms.txt $(IMPORTSEED) | all_robot_plugins |
| 488 | + $(ROBOT) annotate --input $< --remove-annotations \ |
| 489 | + odk:normalize --add-source true \ |
| 490 | + extract --term-file $(IMPORTDIR)/time_terms.txt $(T_IMPORTSEED) \ |
| 491 | + --copy-ontology-annotations true --force true \ |
| 492 | + --individuals include \ |
| 493 | + --method SUBSET \ |
| 494 | + remove $(foreach p, $(ANNOTATION_PROPERTIES), --term $(p)) \ |
| 495 | + --term rdfs:label \ |
| 496 | + --term IAO:0000115 \ |
| 497 | + --term OMO:0002000 \ |
| 498 | + --term-file $(IMPORTDIR)/time_terms.txt $(T_IMPORTSEED) \ |
| 499 | + --select complement --select annotation-properties \ |
| 500 | + odk:normalize --base-iri https://w3id.org/pmd \ |
| 501 | + --subset-decls true --synonym-decls true \ |
| 502 | + repair --merge-axiom-annotations true \ |
| 503 | + $(ANNOTATE_CONVERT_FILE) |
| 504 | + |
486 | 505 | endif # IMP=true |
487 | 506 |
|
488 | 507 | .PHONY: refresh-imports |
@@ -646,6 +665,13 @@ mirror-nfdicore: | $(TMPDIR) |
646 | 665 | $(ROBOT) convert -I https://raw.githubusercontent.com/ISE-FIZKarlsruhe/nfdicore/refs/tags/v3.0.4/nfdicore-base.owl -o $(TMPDIR)/$@.owl |
647 | 666 |
|
648 | 667 |
|
| 668 | +## ONTOLOGY: time |
| 669 | +.PHONY: mirror-time |
| 670 | +.PRECIOUS: $(MIRRORDIR)/time.owl |
| 671 | +mirror-time: | $(TMPDIR) |
| 672 | + $(ROBOT) convert -I https://raw.githubusercontent.com/w3c/sdw/gh-pages/time/rdf/time.ttl -o $(TMPDIR)/$@.owl |
| 673 | + |
| 674 | + |
649 | 675 | $(MIRRORDIR)/%.owl: mirror-% | $(MIRRORDIR) |
650 | 676 | if [ -f $(TMPDIR)/mirror-$*.owl ]; then if cmp -s $(TMPDIR)/mirror-$*.owl $@ ; then echo "Mirror identical, ignoring."; else echo "Mirrors different, updating." &&\ |
651 | 677 | cp $(TMPDIR)/mirror-$*.owl $@; fi; fi |
|
0 commit comments