From 88ca9f51f305566659ed9cbe6bb8fbcae702dc61 Mon Sep 17 00:00:00 2001 From: Balduin Landolt <33053745+BalduinLandolt@users.noreply.github.com> Date: Sun, 22 Dec 2024 23:16:21 +0100 Subject: [PATCH] revert more --- .../knora/webapi/responders/v2/OntologyResponderV2.scala | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/webapi/src/main/scala/org/knora/webapi/responders/v2/OntologyResponderV2.scala b/webapi/src/main/scala/org/knora/webapi/responders/v2/OntologyResponderV2.scala index 9df03890b5..4ea34c50ef 100644 --- a/webapi/src/main/scala/org/knora/webapi/responders/v2/OntologyResponderV2.scala +++ b/webapi/src/main/scala/org/knora/webapi/responders/v2/OntologyResponderV2.scala @@ -1977,11 +1977,10 @@ final case class OntologyResponderV2( // Check for rdfs:subPropertyOf cycles. allKnoraSuperPropertyIrisWithoutSelf: Set[SmartIri] = knoraSuperProperties.flatMap { superPropertyIri => - cacheData - .getSuperPropertiesOf(superPropertyIri) - .getOrElse( - Set.empty[SmartIri], - ) + cacheData.subPropertyOfRelations.getOrElse( + superPropertyIri, + Set.empty[SmartIri], + ) } _ <- ZIO.when(allKnoraSuperPropertyIrisWithoutSelf.contains(internalPropertyIri)) {