UUDigitalHumanitieslab / readit-interface

Public interface for READ-IT
Other
1 stars 0 forks source link

rdflib is encoding local names in Turtle incorrectly #553

Open jgonggrijp opened 2 years ago

jgonggrijp commented 2 years ago

When I go to my landing page in development, the tally of my items never updates:

Schermafbeelding 2022-09-06 om 12 02 51

Looking into the dev console, they are properly fetched from the backend, but notice the parentheses on line 106:

Schermafbeelding 2022-09-06 om 12 03 35

The frontend parser is rejecting this:

Schermafbeelding 2022-09-06 om 12 03 57

According to the Turtle specification, the parser is right; those parentheses should be escaped.

Consequence: anyone who has created an item with an ontology class that contains parentheses in the IRI, will not be able to load their own items (or the tally of those items). So far, not many people have created items, so hopefully nobody is suffering from this yet. Still, it seems somewhat urgent to fix.

I can currently think of four non-ideal solutions:

For now, I have worked around this in my local development database by simply deleting the affect item and the annotation it was linked to.

jgonggrijp commented 1 year ago

Update: I just noticed that if any annotation in a source has an affected class or property, then no annotation will be visible in the explorer, neither in the source panel nor in the annotation list panel next to it. This makes the bug extra urgent.