From 267dccace5f478387712b4ee63486650b2932348 Mon Sep 17 00:00:00 2001 From: Jim Balhoff Date: Mon, 29 Jul 2024 12:10:43 -0400 Subject: [PATCH] Return empty set instead of throwing exception, so that property assertion generator works. (#239) --- .../scala/org/geneontology/whelk/owlapi/WhelkOWLReasoner.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/owlapi/src/main/scala/org/geneontology/whelk/owlapi/WhelkOWLReasoner.scala b/modules/owlapi/src/main/scala/org/geneontology/whelk/owlapi/WhelkOWLReasoner.scala index 3a6ff3f..3e23b2f 100644 --- a/modules/owlapi/src/main/scala/org/geneontology/whelk/owlapi/WhelkOWLReasoner.scala +++ b/modules/owlapi/src/main/scala/org/geneontology/whelk/owlapi/WhelkOWLReasoner.scala @@ -98,7 +98,8 @@ class WhelkOWLReasoner(ontology: OWLOntology, bufferingMode: BufferingMode) exte } override def getDataPropertyValues(ind: OWLNamedIndividual, dp: OWLDataProperty): JSet[OWLLiteral] = - throw new UnsupportedOperationException("getDataPropertyValues") + //throw new UnsupportedOperationException("getDataPropertyValues") + Set.empty[OWLLiteral].asJava override def getReasonerName(): String = "Whelk"