Skip to content

Commit fa78dae

Browse files
committed
updated TTO import
1 parent 76d47e1 commit fa78dae

1 file changed

Lines changed: 31 additions & 13 deletions

File tree

src/ontology/distel-mech.Makefile

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,34 @@ PMDCO_CLASSES_TO_REMOVE = $(IMPORTDIR)/pmdco_classes_to_remove.txt
1111

1212

1313
# Import TTO classes preserving subclass hierarchy to PMDco
14-
$(IMPORTDIR)/tto_import.owl: $(MIRRORDIR)/tto.owl $(IMPORTDIR)/tto_terms.txt $(IMPORTSEED) | all_robot_plugins
14+
#$(IMPORTDIR)/tto_import.owl: $(MIRRORDIR)/tto.owl $(IMPORTDIR)/tto_terms.txt $(IMPORTSEED) | all_robot_plugins
15+
#
16+
# $(ROBOT) annotate --input $< --remove-annotations \
17+
# odk:normalize --add-source true \
18+
# extract --term-file $(IMPORTDIR)/tto_terms.txt \
19+
# --force true \
20+
# --copy-ontology-annotations true \
21+
# --individuals exclude \
22+
# --intermediates all \
23+
# --method BOT \
24+
# remove --term-file $(IMPORTDIR)/tto_remove_parent.txt \
25+
# --select "ancestors" \
26+
# --trim false \
27+
# remove --select "complement" --select "named" --trim true \
28+
# remove --term-file $(IAO_TO_REMOVE) \
29+
# --select "individuals classes"\
30+
# remove --term-file $(IMPORTDIR)/tto_to_remove.txt \
31+
# --select "classes"\
32+
# remove --select individuals \
33+
# odk:normalize --base-iri https://w3id.org/pmd/distel \
34+
# --subset-decls true --synonym-decls true \
35+
# remove --term http://purl.obolibrary.org/obo/IAO_0000412 \
36+
# --select annotation \
37+
# annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) \
38+
# convert -f owl --output $@.tmp.owl && mv $@.tmp.owl $@
1539

40+
$(IMPORTDIR)/tto_import.owl: $(MIRRORDIR)/tto.owl $(IMPORTDIR)/tto_terms.txt $(IMPORTSEED) | all_robot_plugins
41+
@echo "Generating import module from private TTO mirror..."
1642
$(ROBOT) annotate --input $< --remove-annotations \
1743
odk:normalize --add-source true \
1844
extract --term-file $(IMPORTDIR)/tto_terms.txt \
@@ -21,23 +47,15 @@ $(IMPORTDIR)/tto_import.owl: $(MIRRORDIR)/tto.owl $(IMPORTDIR)/tto_terms.txt $(I
2147
--individuals exclude \
2248
--intermediates all \
2349
--method BOT \
24-
remove --term-file $(IMPORTDIR)/tto_remove_parent.txt \
25-
--select "ancestors" \
26-
--trim false \
27-
remove --select "complement" --select "named" --trim true \
28-
remove --term-file $(IAO_TO_REMOVE) \
29-
--select "individuals classes"\
30-
remove --term-file $(IMPORTDIR)/tto_to_remove.txt \
31-
--select "classes"\
32-
remove --select individuals \
50+
remove --term "https://w3id.org/pmd/co/relatesTo" \
51+
-- select "self" \
52+
--axioms "logical" \
53+
--trim true \
3354
odk:normalize --base-iri https://w3id.org/pmd/distel \
3455
--subset-decls true --synonym-decls true \
35-
remove --term http://purl.obolibrary.org/obo/IAO_0000412 \
36-
--select annotation \
3756
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) \
3857
convert -f owl --output $@.tmp.owl && mv $@.tmp.owl $@
3958

40-
4159
$(IMPORTDIR)/pmdco_import.owl: $(MIRRORDIR)/pmdco.owl $(IMPORTDIR)/pmdco_terms.txt
4260
@echo "Generating Application Module from pmdco..."
4361
if [ $(IMP) = true ]; then $(ROBOT) \

0 commit comments

Comments
 (0)