From c0e31bc632e9759506ee0f22290b69d7eadee560 Mon Sep 17 00:00:00 2001 From: Ashley Caselli Date: Sat, 11 Jan 2025 17:25:01 +0100 Subject: [PATCH] refactor: update code style ValidationExample --- .../org/topbraid/shacl/ValidationExample.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/test/java/org/topbraid/shacl/ValidationExample.java b/src/test/java/org/topbraid/shacl/ValidationExample.java index e1b9ddf6..83f79bb5 100644 --- a/src/test/java/org/topbraid/shacl/ValidationExample.java +++ b/src/test/java/org/topbraid/shacl/ValidationExample.java @@ -25,20 +25,20 @@ public class ValidationExample { - /** - * Loads an example SHACL file and validates all focus nodes against all shapes. - */ - public static void main(String[] args) throws Exception { - - // Load the main data model - Model dataModel = JenaUtil.createMemoryModel(); - dataModel.read(ValidationExample.class.getResourceAsStream("/sh/tests/core/property/class-001.test.ttl"), "urn:dummy", FileUtils.langTurtle); - - // Perform the validation of everything, using the data model - // also as the shapes model - you may have them separated - Resource report = ValidationUtil.validateModel(dataModel, dataModel, true); - - // Print violations - System.out.println(ModelPrinter.get().print(report.getModel())); - } + /** + * Loads an example SHACL file and validates all focus nodes against all shapes. + */ + public static void main(String[] args) { + + // Load the main data model + Model dataModel = JenaUtil.createMemoryModel(); + dataModel.read(ValidationExample.class.getResourceAsStream("/sh/tests/core/property/class-001.test.ttl"), "urn:dummy", FileUtils.langTurtle); + + // Perform the validation of everything, using the data model + // also as the shapes model - you may have them separated + Resource report = ValidationUtil.validateModel(dataModel, dataModel, true); + + // Print violations + System.out.println(ModelPrinter.get().print(report.getModel())); + } } \ No newline at end of file