19
19
# 6. [Run everything (COB products and release pipeline)](all)
20
20
21
21
# Fingerprint of the configuration file when this Makefile was last generated
22
- CONFIG_HASH = 5daef41d99e802417bd9ad0f378f72168e2d30f0488f5b2423330cbc561ec834
22
+ CONFIG_HASH = 0cb0824fc712dd1bbe3e3067c8a9d6d4212a769da65f9ec96e0020e31e2cafb9
23
23
24
24
25
25
# ----------------------------------------
@@ -62,13 +62,13 @@ OBODATE ?= $(shell date +'%d:%m:%Y %H:%M')
62
62
VERSION = $(TODAY )
63
63
ANNOTATE_ONTOLOGY_VERSION = annotate -V $(ONTBASE ) /releases/$(VERSION ) /$@ --annotation owl:versionInfo $(VERSION )
64
64
ANNOTATE_CONVERT_FILE = annotate --ontology-iri $(ONTBASE ) /$@ $(ANNOTATE_ONTOLOGY_VERSION ) convert -f ofn --output $@ .tmp.owl && mv $@ .tmp.owl $@
65
- OTHER_SRC = $( COMPONENTSDIR ) /cob-annotations.owl $( COMPONENTSDIR ) /cob-to-external.owl
65
+ OTHER_SRC =
66
66
ONTOLOGYTERMS = $(TMPDIR ) /ontologyterms.txt
67
67
EDIT_PREPROCESSED = $(TMPDIR ) /$(ONT ) -preprocess.owl
68
68
69
69
FORMATS = $(sort owl owl)
70
70
FORMATS_INCL_TSV = $(sort $(FORMATS ) tsv)
71
- RELEASE_ARTEFACTS = $(sort $(ONT ) -base $(ONT ) -full cob-base-reasoned cob-examples-reasoned cob-native )
71
+ RELEASE_ARTEFACTS = $(sort $(ONT ) -base $(ONT ) -root )
72
72
73
73
ifeq ($(ODK_DEBUG ) ,yes)
74
74
ODK_DEBUG_FILE = debug.log
@@ -168,7 +168,7 @@ all_main: $(MAIN_FILES)
168
168
# ----------------------------------------
169
169
170
170
171
- IMPORTS = ro omo
171
+ IMPORTS =
172
172
173
173
IMPORT_ROOTS = $(patsubst % , $(IMPORTDIR ) /% _import, $(IMPORTS ) )
174
174
IMPORT_OWL_FILES = $(foreach n,$(IMPORT_ROOTS ) , $(n ) .owl)
@@ -375,16 +375,6 @@ $(IMPORTDIR)/%_import.owl: $(MIRRORDIR)/%.owl $(IMPORTDIR)/%_terms_combined.txt
375
375
376
376
.PRECIOUS : $(IMPORTDIR ) /% _import.owl
377
377
378
- # # Module for ontology: ro
379
-
380
- $(IMPORTDIR ) /ro_import.owl : $(MIRRORDIR ) /ro.owl
381
- echo " ERROR: You have configured your default module type to be custom; this behavior needs to be overwritten in cob.Makefile!" && false
382
- # # Module for ontology: omo
383
-
384
- $(IMPORTDIR ) /omo_import.owl : $(MIRRORDIR ) /omo.owl $(IMPORTDIR ) /omo_terms_combined.txt
385
- if [ $( IMP) = true ]; then $( ROBOT) merge -i $< query --update ../sparql/preprocess-module.ru --update ../sparql/inject-subset-declaration.ru --update ../sparql/inject-synonymtype-declaration.ru --update ../sparql/postprocess-module.ru \
386
- $(ANNOTATE_CONVERT_FILE); fi
387
-
388
378
389
379
.PHONY : refresh-imports
390
380
refresh-imports :
@@ -406,39 +396,6 @@ refresh-%:
406
396
no-mirror-refresh-% :
407
397
$(MAKE ) IMP=true IMP_LARGE=true MIR=false PAT=false $(IMPORTDIR ) /$* _import.owl -B
408
398
409
-
410
- # ----------------------------------------
411
- # Components
412
- # ----------------------------------------
413
- # Some ontologies contain external and internal components. A component is included in the ontology in its entirety.
414
-
415
- COMP =true # Global parameter to bypass component generation
416
-
417
- .PHONY : all_components
418
- all_components : $(OTHER_SRC )
419
-
420
- .PHONY : recreate-components
421
- recreate-components :
422
- $(MAKE ) COMP=true IMP=false MIR=true PAT=true IMP_LARGE=false all_components -B
423
-
424
- .PHONY : no-mirror-recreate-components
425
- no-mirror-recreate-components :
426
- $(MAKE ) COMP=true IMP=false MIR=false PAT=true IMP_LARGE=false all_components -B
427
-
428
- .PHONY : recreate-%
429
- recreate-% :
430
- $(MAKE ) COMP=true IMP=false IMP_LARGE=false MIR=true PAT=true $(COMPONENTSDIR ) /$* .owl -B
431
-
432
- .PHONY : no-mirror-recreate-%
433
- no-mirror-recreate-% :
434
- $(MAKE ) COMP=true IMP=false IMP_LARGE=false MIR=false PAT=true $(COMPONENTSDIR ) /$* .owl -B
435
-
436
- $(COMPONENTSDIR ) /% .owl : | $(COMPONENTSDIR )
437
- test -f $@ || touch $@
438
- .PRECIOUS : $(COMPONENTSDIR ) /% .owl
439
-
440
-
441
-
442
399
# ----------------------------------------
443
400
# Mirroring upstream ontologies
444
401
# ----------------------------------------
@@ -450,22 +407,6 @@ IMP_LARGE=true # Global parameter to bypass handling of large imports
450
407
ifeq ($(strip $(MIR ) ) ,true)
451
408
452
409
453
- # # ONTOLOGY: ro
454
- .PHONY : mirror-ro
455
- .PRECIOUS : $(MIRRORDIR ) /ro.owl
456
- mirror-ro : | $(TMPDIR )
457
- curl -L $(OBOBASE ) /ro.owl --create-dirs -o $(TMPDIR ) /ro-download.owl --retry 4 --max-time 200 && \
458
- $(ROBOT ) convert -i $(TMPDIR ) /ro-download.owl -o $(TMPDIR ) /$@ .owl
459
-
460
-
461
- # # ONTOLOGY: omo
462
- .PHONY : mirror-omo
463
- .PRECIOUS : $(MIRRORDIR ) /omo.owl
464
- mirror-omo : | $(TMPDIR )
465
- curl -L $(OBOBASE ) /omo.owl --create-dirs -o $(TMPDIR ) /omo-download.owl --retry 4 --max-time 200 && \
466
- $(ROBOT ) convert -i $(TMPDIR ) /omo-download.owl -o $(TMPDIR ) /$@ .owl
467
-
468
-
469
410
$(MIRRORDIR ) /% .owl : mirror-% | $(MIRRORDIR )
470
411
if [ -f $( TMPDIR) /mirror-$* .owl ]; then if cmp -s $( TMPDIR) /mirror-$* .owl $@ ; then echo " Mirror identical, ignoring." ; else echo " Mirrors different, updating." && \
471
412
cp $(TMPDIR ) /mirror-$* .owl $@ ; fi ; fi
@@ -549,15 +490,6 @@ $(ONT)-full.owl: $(EDIT_PREPROCESSED) $(OTHER_SRC) $(IMPORT_FILES)
549
490
relax \
550
491
reduce -r ELK \
551
492
$(SHARED_ROBOT_COMMANDS ) annotate --ontology-iri $(ONTBASE ) /$@ $(ANNOTATE_ONTOLOGY_VERSION ) --output $@ .tmp.owl && mv $@ .tmp.owl $@
552
-
553
- cob-base-reasoned.owl :
554
- echo " ERROR: You have configured a custom release artefact ($@ ); this release artefact needs to be define in cob.Makefile!" && false
555
-
556
- cob-examples-reasoned.owl :
557
- echo " ERROR: You have configured a custom release artefact ($@ ); this release artefact needs to be define in cob.Makefile!" && false
558
-
559
- cob-native.owl :
560
- echo " ERROR: You have configured a custom release artefact ($@ ); this release artefact needs to be define in cob.Makefile!" && false
561
493
# ----------------------------------------
562
494
# Debugging Tools
563
495
# ----------------------------------------
0 commit comments