Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated vessel and vessel organ crosswalk #5

Merged
merged 19 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ src/ontology/imports/*_terms_combined.txt
src/patterns/data/**/*.ofn
src/patterns/data/**/*.txt
src/patterns/pattern_owl_seed.txt
src/patterns/all_pattern_terms.txt
src/patterns/all_pattern_terms.txt

src/scripts/etl/__init__.py
src/scripts/etl/__pycache__
.vscode
26 changes: 12 additions & 14 deletions src/ontology/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ----------------------------------------
# Makefile for vccf
# Generated using ontology-development-kit
# ODK Version: v1.4
# ODK Version: v1.4.3
# ----------------------------------------
# IMPORTANT: DO NOT EDIT THIS FILE. To override default make goals, use vccf.Makefile instead

Expand Down Expand Up @@ -44,14 +44,14 @@ REPORT_PROFILE_OPTS = --profile $(ROBOT_PROFILE)
OBO_FORMAT_OPTIONS =
SPARQL_VALIDATION_CHECKS = owldef-self-reference iri-range label-with-iri multiple-replaced_by
SPARQL_EXPORTS = basic-report class-count-by-prefix edges xrefs obsoletes synonyms
ODK_VERSION_MAKEFILE = v1.4
ODK_VERSION_MAKEFILE = v1.4.3

TODAY ?= $(shell date +%Y-%m-%d)
OBODATE ?= $(shell date +'%d:%m:%Y %H:%M')
VERSION= $(TODAY)
ANNOTATE_ONTOLOGY_VERSION = annotate -V $(ONTBASE)/releases/$(VERSION)/$@ --annotation owl:versionInfo $(VERSION)
ANNOTATE_CONVERT_FILE = annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) convert -f ofn --output [email protected] && mv [email protected] $@
OTHER_SRC = $(PATTERNDIR)/definitions.owl $(COMPONENTSDIR)/vessel_relation.owl
OTHER_SRC = $(PATTERNDIR)/definitions.owl $(COMPONENTSDIR)/vessel_relation.owl $(COMPONENTSDIR)/vessel_organ_crosswalk.owl
ONTOLOGYTERMS = $(TMPDIR)/ontologyterms.txt
EDIT_PREPROCESSED = $(TMPDIR)/$(ONT)-preprocess.owl
PATTERNDIR= ../patterns
Expand Down Expand Up @@ -335,16 +335,6 @@ $(IMPORTDIR)/uberon_import.owl: $(MIRRORDIR)/uberon.owl $(IMPORTDIR)/uberon_term
remove $(patsubst %, --term %, $(ANNOTATION_PROPERTIES)) -T $(IMPORTDIR)/uberon_terms_combined.txt --select complement --select "classes individuals annotation-properties" \
$(ANNOTATE_CONVERT_FILE); fi

## Module for ontology: ro

$(IMPORTDIR)/ro_import.owl: $(MIRRORDIR)/ro.owl $(IMPORTDIR)/ro_terms_combined.txt
if [ $(IMP) = true ]; then $(ROBOT) query -i $< --update ../sparql/preprocess-module.ru \
extract -T $(IMPORTDIR)/ro_terms_combined.txt --copy-ontology-annotations true --force true --method BOT \
remove --base-iri $(URIBASE)/RO --axioms external --preserve-structure false --trim false \
query --update ../sparql/inject-subset-declaration.ru --update ../sparql/inject-synonymtype-declaration.ru \
remove $(patsubst %, --term %, $(ANNOTATION_PROPERTIES)) -T $(IMPORTDIR)/ro_terms_combined.txt --select complement --select "classes individuals annotation-properties" \
$(ANNOTATE_CONVERT_FILE); fi

## Module for ontology: omo

$(IMPORTDIR)/omo_import.owl: $(MIRRORDIR)/omo.owl $(IMPORTDIR)/omo_terms_combined.txt
Expand Down Expand Up @@ -406,11 +396,19 @@ $(COMPONENTSDIR)/%: | $(COMPONENTSDIR)


$(COMPONENTSDIR)/vessel_relation.owl: $(TEMPLATEDIR)/vessel_relation.tsv
if [ $(COMP) = true ] ; then $(ROBOT) template --input imports/ro_import.owl --prefix 'RO: http://purl.obolibrary.org/obo/RO_' --prefix 'VCCF: http://purl.obolibrary.org/obo/VCCF_' \
if [ $(COMP) = true ] ; then $(ROBOT) template --input imports/ro_import.owl --prefix 'VCCF: http://purl.obolibrary.org/obo/VCCF_' \
$(patsubst %, --template %, $^) \
$(ANNOTATE_CONVERT_FILE); fi

.PRECIOUS: $(COMPONENTSDIR)/vessel_relation.owl


$(COMPONENTSDIR)/vessel_organ_crosswalk.owl: $(TEMPLATEDIR)/vessel_organ_crosswalk.tsv
if [ $(COMP) = true ] ; then $(ROBOT) template --input imports/ro_import.owl --prefix 'VCCF: http://purl.obolibrary.org/obo/VCCF_' \
$(patsubst %, --template %, $^) \
$(ANNOTATE_CONVERT_FILE); fi

.PRECIOUS: $(COMPONENTSDIR)/vessel_organ_crosswalk.owl
# ----------------------------------------
# Mirroring upstream ontologies
# ----------------------------------------
Expand Down
8 changes: 1 addition & 7 deletions src/ontology/catalog-v001.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group id="Folder Repository, directory=, recursive=false, Auto-Update=false, version=2" prefer="public" xml:base="">


<uri name="http://purl.obolibrary.org/obo/vccf/imports/uberon_import.owl" uri="imports/uberon_import.owl"/>
<uri name="http://purl.obolibrary.org/obo/vccf/imports/uberon_import.obo" uri="imports/uberon_import.obo"/>
<uri name="http://purl.obolibrary.org/obo/vccf/imports/ro_import.owl" uri="imports/ro_import.owl"/>
<uri name="http://purl.obolibrary.org/obo/vccf/imports/omo_import.owl" uri="imports/omo_import.owl"/>




<uri name="http://purl.obolibrary.org/obo/vccf/patterns/definitions.owl" uri="../patterns/definitions.owl"/>
<uri name="http://purl.obolibrary.org/obo/vccf/components/vessel_relation.owl" uri="components/vessel_relation.owl"/>
<uri name="http://purl.obolibrary.org/obo/vccf/components/vessel_organ_crosswalk.owl" uri="components/vessel_organ_crosswalk.owl"/>
</group>
</catalog>
Loading
Loading