rohub / portal

0 stars 0 forks source link

Problem to create annotations #1

Open esgg opened 3 years ago

esgg commented 3 years ago

Hi,

I have created the following research object in rohub: [http://www.rohub.org/rodetails/ACTION_air_pollution].

I am trying to create an annotation on an specific resource ( DATALOG_Lambertseter_VGS_20190329 in Raw data folder) but it is not working. I can't see the annotation in the annotation list.

No error message is shown in the screen or in the javascript console.

Thank you!

rapw3k commented 3 years ago

Hi @esgg, thanks for the feedback. Can you tell us which annotation did you try to add? The resource has title and type, so annotations seems to be created. However, there seems to be an issue in "show the annotations", which does not show them. The issues is with the "#" in the URI. By the way you can always check in the sparql endpoint, e.g., http://sandbox.rohub.org/rodl/sparql?query=describe%20%3Chttps://zenodo.org/record/3737799%23.X6GSnVNKi8o%3E You can also use the old sparql UI http://old.rohub.org/portal/sparql

esgg commented 3 years ago

I tried to add the following annotation on dataset DATALOG_Lambertseter_VGS_20190329 (Raw data folder):

Thanks!

rapw3k commented 3 years ago

thanks @esgg , yes, I confirm. As mentioned above, the issue is not with creating the resource annotation, but with displaying the resource annotations because the resource URI ("https://zenodo.org/record/3737759#.X6GSQFNKi8o") includes "#", and the string after that character (the fragment part) is not parsed in the frontend visualization i.e., "#.X6GSQFNKi8o". I have opened an internal issue for this in the portal (frontend).

Also mentioned above, you can always check the annotations via the sparql endpoint.