From bb7b3214a23661f981b83077b4617ae0f57f2a6d Mon Sep 17 00:00:00 2001 From: Andrew Berezovskyi Date: Sat, 5 May 2018 12:07:37 +0200 Subject: [PATCH] Fix the Result construction in ShaclexSchema::cnvResult Signed-off-by: Andrew Berezovskyi --- .../src/main/scala/es/weso/schema/ShaclexSchema.scala | 6 +++--- version.sbt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/schema/src/main/scala/es/weso/schema/ShaclexSchema.scala b/modules/schema/src/main/scala/es/weso/schema/ShaclexSchema.scala index 28ec2f02..4d2e48a5 100644 --- a/modules/schema/src/main/scala/es/weso/schema/ShaclexSchema.scala +++ b/modules/schema/src/main/scala/es/weso/schema/ShaclexSchema.scala @@ -45,11 +45,11 @@ case class ShaclexSchema(schema: ShaclSchema) extends Schema { _.toValidationReport ) Result( - isValid = r.isOK, - message = if (r.isOK) "Valid" else "Not valid", + isValid = vr.conforms, + message = if (vr.conforms) "Valid" else "Not valid", shapeMaps = r.results.map(cnvShapeTyping(_, rdf)), validationReport = vr.toRDF(builder), - errors = r.errors.map(cnvViolationError(_)), + errors = vr.results.map(cnvViolationError(_)), trigger = None, nodesPrefixMap = rdf.getPrefixMap(), shapesPrefixMap = schema.pm) diff --git a/version.sbt b/version.sbt index 0d038718..dc0d7370 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -version in ThisBuild := "0.0.76" \ No newline at end of file +version in ThisBuild := "0.0.77"