From ee1528828b545099dc08b935d5230382bd9cbbf1 Mon Sep 17 00:00:00 2001 From: Aljosha Koecher Date: Sat, 4 Dec 2021 10:02:39 +0100 Subject: [PATCH 1/2] Added some timing information about the duration a mapping takes --- lib/src/main/java/mapping/MtpToSkillMapper.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/src/main/java/mapping/MtpToSkillMapper.java b/lib/src/main/java/mapping/MtpToSkillMapper.java index 4749f16..4abfcdc 100644 --- a/lib/src/main/java/mapping/MtpToSkillMapper.java +++ b/lib/src/main/java/mapping/MtpToSkillMapper.java @@ -32,7 +32,10 @@ public class MtpToSkillMapper { * @return Skill ontology in turtle syntax */ public String executeMapping(String mtpFilePath) { - + + System.out.println("Started mapping of " + mtpFilePath); + long start = System.currentTimeMillis(); + // 1. Execute RML mapping RmlMapper rmlMapper = new RmlMapper(); String rmlMappingResult = rmlMapper.executeRmlMapping(mtpFilePath); @@ -42,6 +45,10 @@ public String executeMapping(String mtpFilePath) { // 3. Combine rml mapping result with state machines String mappingResult = rmlMappingResult + "\n" + stateMachines; + + long end = System.currentTimeMillis(); + long mappingDuration = (end - start) / 1000; + System.out.println("Finished mapping in " + mappingDuration + " seconds."); return mappingResult; } From 9ab3438eb8c5a9b273c0f68fca5bcff43a646a39 Mon Sep 17 00:00:00 2001 From: Aljosha Koecher Date: Sat, 4 Dec 2021 10:03:01 +0100 Subject: [PATCH 2/2] Fixed internal dependency mess (wrong group and artifact ids) --- cli/pom.xml | 6 +++--- lib/pom.xml | 2 +- pom.xml | 2 +- rest-api/pom.xml | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cli/pom.xml b/cli/pom.xml index 896fc22..13a8fdd 100644 --- a/cli/pom.xml +++ b/cli/pom.xml @@ -6,7 +6,7 @@ de.hsu-hh.aut.mtp2skill mtp2skill-parent - 1.0.0 + 1.0.1 mtp2skill-cli @@ -19,8 +19,8 @@ 1.4 - de.hsu-hh.ifa.mtp-mapping - lib + de.hsu-hh.aut.mtp2skill + mtp2skill-lib ${project.version} diff --git a/lib/pom.xml b/lib/pom.xml index 213f1e2..384cdf1 100644 --- a/lib/pom.xml +++ b/lib/pom.xml @@ -6,7 +6,7 @@ de.hsu-hh.aut.mtp2skill mtp2skill-parent - 1.0.0 + 1.0.1 mtp2skill-lib diff --git a/pom.xml b/pom.xml index 69caabb..916c529 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ de.hsu-hh.aut.mtp2skill mtp2skill-parent - 1.0.0 + 1.0.1 pom diff --git a/rest-api/pom.xml b/rest-api/pom.xml index bab7401..eca8dfa 100644 --- a/rest-api/pom.xml +++ b/rest-api/pom.xml @@ -6,7 +6,7 @@ de.hsu-hh.aut.mtp2skill mtp2skill-parent - 1.0.0 + 1.0.1 mtp2skill-rest-api @@ -19,8 +19,8 @@ 2.9.3 - de.hsu-hh.ifa.mtp-mapping - lib + de.hsu-hh.aut.mtp2skill + mtp2skill-lib ${project.version}