Skip to content

Commit

Permalink
fix flip
Browse files Browse the repository at this point in the history
  • Loading branch information
BalduinLandolt committed Dec 22, 2024
1 parent 88ca9f5 commit 0bf0564
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1977,10 +1977,11 @@ final case class OntologyResponderV2(
// Check for rdfs:subPropertyOf cycles.

allKnoraSuperPropertyIrisWithoutSelf: Set[SmartIri] = knoraSuperProperties.flatMap { superPropertyIri =>
cacheData.subPropertyOfRelations.getOrElse(
superPropertyIri,
Set.empty[SmartIri],
)
cacheData
.getSuperPropertiesOf(superPropertyIri)
.getOrElse(
Set.empty[SmartIri],
)
}

_ <- ZIO.when(allKnoraSuperPropertyIrisWithoutSelf.contains(internalPropertyIri)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ case class OntologyCacheData(
def classDefinedInOntology(classIri: SmartIri): Option[SmartIri] = classDefinedInOntology.get(classIri)
def propertyDefinedInOntology(propertyIri: SmartIri): Option[SmartIri] = propertyDefinedInOntology.get(propertyIri)

def getSubPropertiesOf(propertyIri: SmartIri): Option[Set[SmartIri]] = subPropertyOfRelations.get(propertyIri)
def getSuperPropertiesOf(propertyIri: SmartIri): Option[Set[SmartIri]] = superPropertyOfRelations.get(propertyIri)
def getSubPropertiesOf(propertyIri: SmartIri): Option[Set[SmartIri]] = superPropertyOfRelations.get(propertyIri)
def getSuperPropertiesOf(propertyIri: SmartIri): Option[Set[SmartIri]] = subPropertyOfRelations.get(propertyIri)

def getSubClassesOf(classIri: SmartIri): Option[Set[SmartIri]] = classToSubclassLookup.get(classIri)
def getSuperClassesOf(classIri: SmartIri): Option[Seq[SmartIri]] = classToSuperClassLookup.get(classIri)
Expand Down

0 comments on commit 0bf0564

Please sign in to comment.