Skip to content
Permalink
Browse files
Fix: Problem with updating cache after deleting comments (DEV-508) (#…
…2060)

* Fix problem with updating cache after deleting comments

* add missing triple to WHERE clause
  • Loading branch information
irinaschubert committed May 10, 2022
1 parent 58971c8 commit a9fda7e4449f52e61350863e6302cce79202fa92
@@ -3581,9 +3581,8 @@ class OntologyResponderV2(responderData: ResponderData) extends Responder(respon
}

// Update the ontology cache using the new class definition.
newReadClassInfo: ReadClassInfoV2 = ReadClassInfoV2(
entityInfoContent = loadedClassDef,
allBaseClasses = classToUpdate.allBaseClasses
newReadClassInfo: ReadClassInfoV2 = classToUpdate.copy(
entityInfoContent = classDefWithoutComment
)

updatedOntologyMetadata: OntologyMetadataV2 = ontology.ontologyMetadata.copy(
@@ -60,6 +60,8 @@ WHERE {
?ontology rdf:type owl:Ontology ;
knora-base:lastModificationDate "@lastModificationDate"^^xsd:dateTime .

?class ?p ?o .

OPTIONAL {
?class <@predicateToUpdate> ?oldObj .
}

0 comments on commit a9fda7e

Please sign in to comment.