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(create-ontology): within an ontology, references to the ontology itself are not possible (DEV-135) #130
fix(create-ontology): within an ontology, references to the ontology itself are not possible (DEV-135) #130
Conversation
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.
LGTM, I just looked at the code, shall I also test it locally?
knora/dsplib/models/helpers.py
Outdated
for prefix, onto in context.items(): | ||
self._context[prefix] = OntoInfo(onto.removesuffix('#'), onto.endswith('#')) | ||
|
||
# we always want the base ontologies/prefixes included in the context |
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'm not very fond of these "we" comments. Maybe it can be changed to somewhat more neutral?
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.
you're right
knora/dsplib/models/helpers.py
Outdated
if not self._context.get(k): | ||
self._context[k] = v | ||
|
||
# we always want the DSP-API ontologies/prefixes included in the context |
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'm not very fond of these "we" comments. Maybe it can be changed to somewhat more neutral?
Kudos, SonarCloud Quality Gate passed!
|
resolves DEV-135
resolves DEV-278