Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 a9fda7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -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(
Expand Down
Expand Up @@ -60,6 +60,8 @@ WHERE {
?ontology rdf:type owl:Ontology ;
knora-base:lastModificationDate "@lastModificationDate"^^xsd:dateTime .

?class ?p ?o .

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

0 comments on commit a9fda7e

Please sign in to comment.