LINNAE-project / SFB-Annotator

This web app is intended for demo purposes only!
https://www.research-software.nl/software/sfb-annotator
Apache License 2.0
1 stars 0 forks source link

Failed to delete all triples of an example annotation via GUI #91

Closed arnikz closed 3 years ago

arnikz commented 3 years ago

Given an oa:Annotation instance, only its direct descendant nodes are deleted rather than all nodes of the annotation subgraph.

See also #2, #88 and #89.

arnikz commented 3 years ago

Deleting annotations of MeasurementOrFact type (i.e., examples 4-6) leaves 5 triples over:

img:MMNAT01_AF_NNM001001033_003.jpg rdf:type foaf:Image
img:MMNAT01_AF_NNM001001033_003.jpg rdf:type dcmitype:StillImage
img:MMNAT01_AF_NNM001001033_003.jpg rdf:type dsw:Token
img:MMNAT01_AF_NNM001001033_003.jpg rdf:type dwc:HumanObservation
img:MMNAT01_AF_NNM001001033_003.jpg rdf:type oa:Source

The issue is with SPARQL DELETE query that doesn't handle the img:MMNAT01_AF_NNM001001033_003.jpg node(s) with more than one parent (BNodes).