-
Notifications
You must be signed in to change notification settings - Fork 14
First version of added namespace search in get_by_label #838
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
base: master
Are you sure you want to change the base?
Conversation
jesper-friis
left a comment
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.
See the comments.
The tests are failing, but I guess that the purpose of PR #839 is to fix them.
|
This PR has never been ready for review. will close all comments for now.
This PR has never been ready for review. will close all comments for now. |
| ) | ||
| namespace = splitlabel[0] | ||
|
|
||
| #print('namespace', namespace) |
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.
can be removed
|
|
||
| #print('namespace', namespace) | ||
| if namespace: | ||
| #print('in get_by_label namespavce') |
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.
can be removed
| #print("in namespace", namespace) | ||
| #print("entities", entities) | ||
| #for ent in entities: | ||
| # print("ent.namespace", ent.namespace) | ||
| # print("ent.namespace.name", ent.namespace.name) | ||
| # print("namespace", namespace) | ||
| # print(namespace in [ent.namespace.name, ent.namespace.base_iri]) |
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.
can be removed
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.
Tests are currently failing.
There is also a trivial merge-conflict and some print-statements that can be removed.
| exact_match: Do not treat "*" and brackets as special characters | ||
| when matching. May be useful if your ontology has labels | ||
| containing such labels. | ||
| label: label so search for. |
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.
looks like an extra indentation
| return 2 * ccadepth / (generations1 + generations2 + 2 * ccadepth) | ||
|
|
||
| def new_entity( | ||
| def new_entity( # pylint: disable=too-many-arguments,too-many-branches,too-many-positional-arguments |
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.
These pylint disable's will probably make the line too long. Probably better to move the comment to after the docstring (line 2119)
jesper-friis
left a comment
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.
There are some conflicts and failing tests that must be fixed.
I see that one of the tests fails with that emmo.hasPart doesn't exists. That should be there. Can there be something wrong in the changes in get_by_label()?
Description
Type of change
Checklist
This checklist can be used as a help for the reviewer.
Comments