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)) {