diff --git a/webapi/src/main/scala/org/knora/webapi/slice/shacl/domain/ShaclValidator.scala b/webapi/src/main/scala/org/knora/webapi/slice/shacl/domain/ShaclValidator.scala index d7184aaf57..000e492ed2 100644 --- a/webapi/src/main/scala/org/knora/webapi/slice/shacl/domain/ShaclValidator.scala +++ b/webapi/src/main/scala/org/knora/webapi/slice/shacl/domain/ShaclValidator.scala @@ -20,7 +20,7 @@ import java.io.InputStream final case class ValidationOptions(validateShapes: Boolean, reportDetails: Boolean, addBlankNodes: Boolean) object ValidationOptions { - val default: ValidationOptions = ValidationOptions(true, true, false) + val default: ValidationOptions = ValidationOptions(false, true, false) } final case class ShaclValidator() { self => @@ -35,7 +35,7 @@ final case class ShaclValidator() { self => } yield report private def readModel(data: InputStream) = ZIO.attempt { - val model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM_RDFS_INF) + val model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM) model.read(data, null, FileUtils.langTurtle) model } diff --git a/webapi/src/test/scala/org/knora/webapi/slice/shacl/domain/ShaclValidatorSpec.scala b/webapi/src/test/scala/org/knora/webapi/slice/shacl/domain/ShaclValidatorSpec.scala index c81e121aca..5580adba49 100644 --- a/webapi/src/test/scala/org/knora/webapi/slice/shacl/domain/ShaclValidatorSpec.scala +++ b/webapi/src/test/scala/org/knora/webapi/slice/shacl/domain/ShaclValidatorSpec.scala @@ -67,18 +67,5 @@ object ShaclValidatorSpec extends ZIOSpecDefault { reportResource <- shaclValidator(_.validate(validData, shapes, ValidationOptions.default)) } yield assertTrue(reportResource.hasProperty(SH.conforms, JenaDatatypes.TRUE)) }, - test("should do basic rdfs inferencing") { - val data = """ - |@prefix ex: . - |@prefix rdf: . - |@prefix rdfs: . - | - |ex:myProperty - | a rdf:Property. - |""".stripMargin - for { - reportResource <- shaclValidator(_.validate(data, "", ValidationOptions.default)) - } yield assertTrue(reportResource.hasProperty(SH.conforms, JenaDatatypes.TRUE)) - }, ).provide(ShaclValidator.layer) }