Skip to content

Commit 81fa244

Browse files
committed
Allow to seed the ORCIDIO module from specific properties.
Update the ODK ROBOT plugin to version 0.3.3, where the default behaviour of the `odk:extract-orcids` command is to extract ORCID references from all IRI-valued annotations. Add to the generated Makefile a ORCIDIO_PROPERTIES variable, intended to list the properties to use when extracting ORCID references. The variable is set to an empty list, which triggers the default behaviour of the `odk:extract-orcids` command (extract from all annotations regardless of the property). The variable is intended to allow the ontology owner to tweak that behaviour, by overriding its definition in the custom Makefile.
1 parent 414d458 commit 81fa244

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/incatools/odk/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
SSSOM_SOURCE = "https://github.com/gouttegd/sssom-java/releases/download/sssom-java-1.11.2/sssom-cli-1.11.2.jar"
2525
DOSDP_SOURCE = "https://github.com/INCATools/dosdp-tools/releases/download/v0.20.0/dosdp-tools-0.20.0.tgz"
2626
RELGR_SOURCE = "https://github.com/INCATools/relation-graph/releases/download/v2.3.4/relation-graph-cli-2.3.4.tgz"
27-
ODK_PLUGIN_SOURCE = "https://github.com/INCATools/odk-robot-plugin/releases/download/odk-robot-plugin-0.3.2/odk.jar"
27+
ODK_PLUGIN_SOURCE = "https://github.com/INCATools/odk-robot-plugin/releases/download/odk-robot-plugin-0.3.3/odk.jar"
2828
SSSOM_PLUGIN_SOURCE = "https://github.com/gouttegd/sssom-java/releases/download/sssom-java-1.11.2/sssom-robot-plugin-1.11.2.jar"
2929
OBO_EPM_SOURCE = "https://raw.githubusercontent.com/biopragmatics/bioregistry/main/exports/contexts/obo.epm.json"
3030

src/incatools/odk/templates/src/ontology/Makefile.jinja2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,17 @@ no-mirror-refresh-%:
791791
# ORCIDIO module
792792
# ----------------------------------------
793793

794+
# By default, the ORCIDIO module is seeded from ORCID references in ALL
795+
# IRI-valued annotations in the ontology, regardless of the annotation
796+
# property. To seed only from annotations using specific properties,
797+
# override the following variable with the desired list of properties.
798+
ORCIDIO_PROPERTIES =
799+
794800
ifeq ($(IMP),true)
795801
$(IMPORTDIR)/orcidio_import.owl: $(SRCMERGED) $(MIRRORDIR)/orcidio.owl | all_robot_plugins
796802
$(ROBOT) odk:extract-orcids --input $(SRCMERGED) \
797803
--orcid-file $(MIRRORDIR)/orcidio.owl \
804+
$(foreach p, $(ORCIDIO_PROPERTIES),--property $(p)) \
798805
$(ANNOTATE_CONVERT_FILE)
799806

800807
endif

0 commit comments

Comments
 (0)