Added code for deleting individuals (#213)

* Added code for deleting individuals

* Allow admins delete individuals

* Fixed delete individual url params

* Improved query safety

* refact: fixed constants' names, fixed mistakes, removed useless code

* refact: refactored sparql queries

* fix: fixed error logging mistakes

* fix: use CONSTRUCT instead of DESCRIBE as less potentionally problematic, lookup for mostSpecificTypes

* feat: add delete link in vitro individual profile if individual is editable

* fix: renamed individualURI to individualUri and added safety check

* fix: use ABox model to construct triples to delete
This commit is contained in:
Georgy Litvinov 2022-05-20 21:28:29 +02:00 committed by GitHub
parent c41853440f
commit ff285fb80d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 327 additions and 9 deletions

View file

@ -128,6 +128,7 @@
<owl:ObjectProperty rdf:about="&display;restrictResultsByClass"/>
<owl:ObjectProperty rdf:about="&display;getIndividualsForClass"/>
<owl:ObjectProperty rdf:about="&display;hasDataGetter"/>
<owl:DataProperty rdf:about="&display;hasDeleteQuery"/>
<owl:ObjectProperty rdf:about="&display;requiresAction">
</owl:ObjectProperty>

View file

@ -204,6 +204,9 @@ vitro:additionalLink
display:hasElement
a owl:ObjectProperty .
display:hasDeleteQuery
a owl:DataProperty .
display:excludeClass
a owl:ObjectProperty .