From 6a0e65b1602e8d20eb3244e6d0f2a66759cf7db7 Mon Sep 17 00:00:00 2001 From: Jens Pots Date: Thu, 23 May 2024 18:16:10 +0200 Subject: [PATCH] refactor: `parser` package --- src/main/kotlin/{runner => parser}/Arguments.kt | 2 +- src/main/kotlin/{runner => parser}/Ontology.kt | 2 +- src/main/kotlin/{runner => parser}/Parser.kt | 3 ++- src/main/kotlin/{runner => parser}/Property.kt | 2 +- src/main/kotlin/{runner => parser}/Shape.kt | 2 +- src/main/kotlin/runner/Pipeline.kt | 1 + 6 files changed, 7 insertions(+), 5 deletions(-) rename src/main/kotlin/{runner => parser}/Arguments.kt (98%) rename src/main/kotlin/{runner => parser}/Ontology.kt (95%) rename src/main/kotlin/{runner => parser}/Parser.kt (98%) rename src/main/kotlin/{runner => parser}/Property.kt (93%) rename src/main/kotlin/{runner => parser}/Shape.kt (94%) diff --git a/src/main/kotlin/runner/Arguments.kt b/src/main/kotlin/parser/Arguments.kt similarity index 98% rename from src/main/kotlin/runner/Arguments.kt rename to src/main/kotlin/parser/Arguments.kt index 7e5d35c..6acb344 100644 --- a/src/main/kotlin/runner/Arguments.kt +++ b/src/main/kotlin/parser/Arguments.kt @@ -1,4 +1,4 @@ -package technology.idlab.runner +package technology.idlab.parser import java.util.* import technology.idlab.logging.Log diff --git a/src/main/kotlin/runner/Ontology.kt b/src/main/kotlin/parser/Ontology.kt similarity index 95% rename from src/main/kotlin/runner/Ontology.kt rename to src/main/kotlin/parser/Ontology.kt index ae4d28f..828956b 100644 --- a/src/main/kotlin/runner/Ontology.kt +++ b/src/main/kotlin/parser/Ontology.kt @@ -1,4 +1,4 @@ -package technology.idlab.runner +package technology.idlab.parser import org.apache.jena.rdf.model.RDFNode diff --git a/src/main/kotlin/runner/Parser.kt b/src/main/kotlin/parser/Parser.kt similarity index 98% rename from src/main/kotlin/runner/Parser.kt rename to src/main/kotlin/parser/Parser.kt index d04cb95..aa548a3 100644 --- a/src/main/kotlin/runner/Parser.kt +++ b/src/main/kotlin/parser/Parser.kt @@ -1,4 +1,4 @@ -package technology.idlab.runner +package technology.idlab.parser import bridge.HttpReader import bridge.Reader @@ -15,6 +15,7 @@ import technology.idlab.extensions.query import technology.idlab.extensions.readModelRecursively import technology.idlab.extensions.validate import technology.idlab.logging.Log +import technology.idlab.runner.Processor class Parser(file: File) { /** An RDF model of the configuration file. */ diff --git a/src/main/kotlin/runner/Property.kt b/src/main/kotlin/parser/Property.kt similarity index 93% rename from src/main/kotlin/runner/Property.kt rename to src/main/kotlin/parser/Property.kt index 7a19552..1759031 100644 --- a/src/main/kotlin/runner/Property.kt +++ b/src/main/kotlin/parser/Property.kt @@ -1,4 +1,4 @@ -package technology.idlab.runner +package technology.idlab.parser class Property(val name: String, val type: String, min: Int?, max: Int?) { enum class Count { diff --git a/src/main/kotlin/runner/Shape.kt b/src/main/kotlin/parser/Shape.kt similarity index 94% rename from src/main/kotlin/runner/Shape.kt rename to src/main/kotlin/parser/Shape.kt index 843a707..5e7eb57 100644 --- a/src/main/kotlin/runner/Shape.kt +++ b/src/main/kotlin/parser/Shape.kt @@ -1,4 +1,4 @@ -package technology.idlab.runner +package technology.idlab.parser import technology.idlab.logging.Log diff --git a/src/main/kotlin/runner/Pipeline.kt b/src/main/kotlin/runner/Pipeline.kt index 46ba2b2..3e02e75 100644 --- a/src/main/kotlin/runner/Pipeline.kt +++ b/src/main/kotlin/runner/Pipeline.kt @@ -3,6 +3,7 @@ package technology.idlab.runner import java.io.File import kotlin.concurrent.thread import technology.idlab.logging.Log +import technology.idlab.parser.Parser class Pipeline(config: File) { /** Processors described in the config. */