Skip to content

Conversation

@matentzn
Copy link
Member

Introduced new Makefile rules to manage ROBOT plugins, including installation of custom and supplementary plugins. Added targets for simple merge operations and an obsolete replacement test using the odk plugin in mondo.Makefile. These changes improve plugin management and extend ontology processing capabilities.

Introduced new Makefile rules to manage ROBOT plugins, including installation of custom and supplementary plugins. Added targets for simple merge operations and an obsolete replacement test using the odk plugin in mondo.Makefile. These changes improve plugin management and extend ontology processing capabilities.
@matentzn matentzn requested a review from twhetzel as a code owner December 19, 2025 14:45
@matentzn
Copy link
Member Author

@ptgolden is PR is a precursor for adding the updated sssom-java into the Mondo pipeline. This is only necessary while we do not have an ODK minor release, but it is necessary so we can move forward.

Unfortunately Mondo, the most important ontology in my portfolio, is xactly the only ontology that has not been migrated to a proper ODK setup where all of this is automated.

@twhetzel
Copy link
Collaborator

@matentzn do you want me to review or @ptgolden?

@matentzn
Copy link
Member Author

@twhetzel you if possible - my comment was only to avoid duplicative work from @ptgolden who needs this here to finish his current task.


$(ROBOT_PLUGINS_DIRECTORY)/odk.jar:
#cp /Users/matentzn/ws/odk-robot-plugin/target/odk.jar $@
echo uncommentme
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the odk.jar coming from?


obsolete-replace-test: #cp-odk-plug
$(ROBOT) odk:obsolete-replace --input $(SRC) --obsolete MONDO:0032564 --replacement MONDO:0032565 -o $(SRC)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider having obsolete-replace-test depend on extra_robot_plugins.

.PHONY: all_robot_plugins
all_robot_plugins: $(foreach plugin,$(notdir $(wildcard /tools/robot-plugins/*.jar)),$(ROBOT_PLUGINS_DIRECTORY)/$(plugin)) \
$(foreach plugin,$(notdir $(wildcard ../../plugins/*.jar)),$(ROBOT_PLUGINS_DIRECTORY)/$(plugin)) \
custom_robot_plugins extra_robot_plugins \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove trailing \

ln ../../plugins/$*.jar $@ ; \
elif [ -f /tools/robot-plugins/$*.jar ]; then \
cp /tools/robot-plugins/$*.jar $@ ; \
fi
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rule silently succeeds even if the source file doesn't exist. Add an else clause to fail explicitly when the source file isn't found.

Copy link
Collaborator

@twhetzel twhetzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overall idea makes sense, but there are spots that would benefit from updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants