-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix outdated prefix map #297
Conversation
I have the fix in place
I do not know why this would change though? Thoughts? |
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.
This is super cool, make sure this works when installing from pip (remember these problems with loading from a package-local path in the past?).
The changing numbers are sort of expected, if the prefix map does not know a prefix, its not added to the table when parsing with obo graphs..
sssom/context.py
Outdated
@@ -26,6 +29,11 @@ def get_jsonld_context(): | |||
|
|||
:return: JSON-LD context | |||
""" | |||
schema_path = pkg_resources.resource_filename( |
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.
Does this work when installing with pip? Do we have a precedence in the code for this (loading the resource this way I mean). I feel schema_path
should be in constants.py somehow, but up to you.
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.
I forgot that schema_path was already implemented in constants.py
. Updating code accordingly. The variable name is SCHEMA_YAML
and is used in many parts of the project. So it definitely works since previous releases did not have any issues when we implemented sssom-schema
.
@matentzn , ready for another review. |
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.
I cant approve it with Github since I opened the PR but this is amazing, like - finally all your hard work engineering this stuff properly is paying off and changes are getting so much smaller and better. 3 months ago the same PR would have taken 1 week to implement with 100 lines of code.. Great!
(approved) |
@hrshdhgd can you fix this for me? It was still using the old prefix map..