ProjectAdA / ada-ae

Repository for the source code of the annotation explorer, REST API and triplestore, and all linked data sets that were developed in the AdA project.
1 stars 0 forks source link

Explorer: Implement consistency checks for requested annotation data (Prio: 2) #45

Closed hagt closed 3 years ago

hagt commented 3 years ago

If corrupted or duplicate data is inserted, counts and further processing will fail because expected fields are either missing in the json-ld or are returned as arrays where they should not be.

e.g. count_annotations explorer.js:1330:10 Uncaught (in promise) TypeError: a.target.source is undefined allmovies https://project1.ada.cinepoetics.org/explorer/explorer.js:1340 count_annotations https://project1.ada.cinepoetics.org/explorer/explorer.js:1340 getCurrentAnnotationData https://project1.ada.cinepoetics.org/explorer/explorer.js:1464

hagt commented 3 years ago

Fixed in https://github.com/ProjectAdA/ada-ae/commit/343205027ead5ac19e36fb7f0c3908e67b0676ca and https://github.com/ProjectAdA/ada-ae/commit/0e987df39a1f2fcacd1651e5e331580c5b27f11e