Skip to content

Commit

Permalink
smaller CARO import
Browse files Browse the repository at this point in the history
  • Loading branch information
Clare72 committed Feb 25, 2022
1 parent 4c0339d commit e5e12fb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ $(IMPORTDIR)/%_import.owl: $(MIRRORDIR)/%.owl $(IMPORTDIR)/%_terms_combined.txt

.PRECIOUS: $(IMPORTDIR)/%_import.owl

## Module for ontology: caro

$(IMPORTDIR)/caro_import.owl: $(MIRRORDIR)/caro.owl
echo "ERROR: You have configured your default module type to be custom; this behavior needs to be overwritten in vfbext.Makefile!" && false
## Module for ontology: obi

$(IMPORTDIR)/obi_import.owl: $(MIRRORDIR)/obi.owl $(IMPORTDIR)/obi_terms_combined.txt
Expand Down
1 change: 1 addition & 0 deletions src/ontology/vfbext-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import_group:
products:
- id: ro
- id: caro
module_type: custom
- id: fbbt
- id: obi
module_type: minimal
Expand Down
7 changes: 7 additions & 0 deletions src/ontology/vfbext.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ $(ONT).owl: $(ONT)-full.owl
$(ROBOT) annotate --input $@.tmp.owl --ontology-iri http://virtualflybrain.org/data/VFB/OWL/vfbext.owl \
convert -o $@.tmp.owl && mv $@.tmp.owl $@

# smaller CARO import
$(IMPORTDIR)/caro_import.owl: $(MIRRORDIR)/caro.owl
if [ $(IMP) = true ]; then $(ROBOT) query -i $< --update ../sparql/preprocess-module.ru \
extract --method MIREOT --force true --copy-ontology-annotations true \
--lower-term "obo:CARO_0030002" \
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) --output $@.tmp.owl && mv $@.tmp.owl $@; fi


# Include copying import files
.PHONY: prepare_release
Expand Down

0 comments on commit e5e12fb

Please sign in to comment.