Skip to content

Commit

Permalink
add missing config in odk to use sssom mapping set added in PR #563 (#…
Browse files Browse the repository at this point in the history
…570)

Co-authored-by: Anita Caron <[email protected]>
  • Loading branch information
Anita Caron and anitacaron authored Aug 19, 2024
1 parent 9ecd2fa commit a6fcdc9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
2 changes: 0 additions & 2 deletions docs/odk-workflows/ManageDocumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ The documentation is _not_ automatically updated from the Markdown, and needs to
3. Just to double check, you can now navigate to your documentation pages (usually https://pato-ontology.github.io/pato/).
Just make sure you give GitHub 2-5 minutes to build the pages!



24 changes: 23 additions & 1 deletion src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# More information: https://github.com/INCATools/ontology-development-kit/

# Fingerprint of the configuration file when this Makefile was last generated
CONFIG_HASH= 8c38f556f1076ce2a46088cd083451de27b8553932affe92d72c22f02b6e92e4
CONFIG_HASH= 97037c2418df585a2332da8a26b11ac73e9ae6c3bb97d1371443b254249a7ab1


# ----------------------------------------
Expand Down Expand Up @@ -57,6 +57,12 @@ ANNOTATE_CONVERT_FILE = annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONT
OTHER_SRC = $(COMPONENTSDIR)/pato_ext.owl
ONTOLOGYTERMS = $(TMPDIR)/ontologyterms.txt
EDIT_PREPROCESSED = $(TMPDIR)/$(ONT)-preprocess.owl
MAPPINGDIR= ../mappings
MAPPING_TESTER= sssom validate
SSSOMPY= sssom
MAPPINGS= pato-to-qudt-quantitykind
MAPPING_RELEASE_FILES= $(foreach n,$(MAPPINGS), $(MAPPINGDIR)/$(n).sssom.tsv)


FORMATS = $(sort owl obo json owl)
FORMATS_INCL_TSV = $(sort $(FORMATS) tsv)
Expand Down Expand Up @@ -570,6 +576,22 @@ custom_reports: $(EDIT_PREPROCESSED) | $(REPORTDIR)
ifneq ($(SPARQL_EXPORTS_ARGS),)
$(ROBOT) query -f tsv --use-graphs true -i $< $(SPARQL_EXPORTS_ARGS)
endif
# ----------------------------------------
# SSSOM Mapping Files
# ----------------------------------------

validate-sssom-%:
tsvalid $(MAPPINGDIR)/$*.sssom.tsv --comment "#"
sssom validate $(MAPPINGDIR)/$*.sssom.tsv

# This mappingset is manually curated, so we only check that the file actually exists.
$(MAPPINGDIR)/pato-to-qudt-quantitykind.sssom.tsv:
test -f $@

validate_mappings:
$(MAKE_FAST) $(foreach n,$(MAPPINGS), validate-sssom-$(n))



# ----------------------------------------
# Release artefacts: export formats
Expand Down
1 change: 1 addition & 0 deletions src/ontology/pato-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ git_main_branch: master
repo: pato
report_fail_on: none
edit_format: obo
use_mappings: True
export_formats:
- owl
- obo
Expand Down

0 comments on commit a6fcdc9

Please sign in to comment.