-
Notifications
You must be signed in to change notification settings - Fork 11
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
Make it possible to run HermiT on EMMO #740
Conversation
ontopy/ontology.py
Outdated
filepath = os.path.join( | ||
dir, file if isinstance(file, str) else file.name | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why? If I revert this, tests pass without problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add fix: isinstance(file, str)
-> isinstance(file, (str, Path))
We should have a test on this. It is important that we wuickly pick up if running sync_reasoner on EMMO does not work. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #740 +/- ##
==========================================
- Coverage 72.21% 72.14% -0.07%
==========================================
Files 17 17
Lines 3462 3486 +24
==========================================
+ Hits 2500 2515 +15
- Misses 962 971 +9 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a general rule I think that untested features should be tested properly before being smerged to master.
Please make an issue that clearly decribes what needs to be tested so that it can be picked up later.
# Description Make it possible to run HermiT on EMMO, by: * Add support for additional keyword arguments that `sync_reasoner()` may pass to the `save()` method. * Remove custom datatypes before running HermiT. Readd the removed data properties after HermiT completes. * Add `--java-executable` and `--java-memory` arguments to ontoconvert to control how to run java. ## Type of change - [x] Bug fix. - [ ] New feature. - [ ] Documentation update. - [ ] Test update. Co-authored-by: francescalb <[email protected]>
Description
Make it possible to run HermiT on EMMO, by:
sync_reasoner()
may pass to thesave()
method.--java-executable
and--java-memory
arguments to ontoconvert to control how to run java.Type of change
Checklist
This checklist can be used as a help for the reviewer.
Comments