-
Notifications
You must be signed in to change notification settings - Fork 18
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
Creating ontology ignores rdfs:comment field (small snafu....) #1690
Comments
I’m on holiday, please assign this to @SepidehAlassi |
@lrosenth and please open an issue on YouTrack. We don't use Github for issues anymore. |
User story for this DSP-548 |
@lrosenth when you request an ontology to be created, as a response, the metadata of the ontology is returned. Currently, the comment is not among the metadata information. I can add it though. |
Hey Sepideh,
Yes, this would be great. I thinbk (but I have to test) that the comment is also missing when querying the ontology.
THanks a lot,
Lukas (still lying on the back like a bug....)
Lukas Rosenthaler
Von meinem iPad gesendet
Am 17.08.2020 um 10:07 schrieb Sepideh Alassi <notifications@github.com>:
@lrosenth<https://github.com/lrosenth> when you request an ontology to be created, as a response, the metadata of the ontology is returned. Currently, the comment is not among the metadata information. I can add it though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1690 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABJX3TD26D4LHNBZQCMAUGDSBDQKTANCNFSM4QANVSVQ>.
|
@lrosenth Having a closer look at the code, I figured out the following: with the current design, comments can be given and are taken into account for ontology classes and properties but not for the ontology itself. Please see the example in the documentation The user can provide a comment for ontology, but it is currently ignored (not parsed out of the JSON-body of the request). So an ontology comment is neither read during creation from the request nor stored, hence not returned. This issue is actually not a bug, it is a missing feature. It would need a bit more work than adding a field to the metadata. I will work on it first thing in the coming sprint. |
Ok, it‘s really not urgent at all!
Best,Lukas
Lukas Rosenthaler
Von meinem iPad gesendet
Am 17.08.2020 um 11:00 schrieb Sepideh Alassi <notifications@github.com>:
@lrosenth<https://github.com/lrosenth> Having a closer look at the code, I figured out the following:
with the current design, comments can be given and are taken into account for ontology classes and properties but not for the ontology itself. Please see the example in the documentation<https://docs.knora.org/03-apis/api-v2/ontology-information/#creating-a-new-ontology>
The user can provide a comment for ontology, but it is currently ignored (not parsed out of the JSON-body of the request).
So an ontology comment is neither read during creation from the request nor stored, hence not returned.
This issue is actually not a bug, it is a missing feature. It would need a bit more work than adding a field to the metadata. I will work on it first thing in the coming sprint.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1690 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABJX3TGLRCJO7N7DMVWJ2TDSBDWQ7ANCNFSM4QANVSVQ>.
|
When creating an ontology with the API call:
http://0.0.0.0:3333/v2/ontologies
(POST)and the body:
the resulting ontology has no comment field, as the resulting json and subsequent queries show:
Tests being made using postman...
The text was updated successfully, but these errors were encountered: