Skip to content

Commit

Permalink
Merge pull request #4 from hsu-aut/develop
Browse files Browse the repository at this point in the history
Fixed dependency chaos
  • Loading branch information
aljoshakoecher authored Dec 4, 2021
2 parents 3498b6e + 9ab3438 commit 08b26cc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.hsu-hh.aut.mtp2skill</groupId>
<artifactId>mtp2skill-parent</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</parent>

<artifactId>mtp2skill-cli</artifactId>
Expand All @@ -19,8 +19,8 @@
<version>1.4</version>
</dependency>
<dependency>
<groupId>de.hsu-hh.ifa.mtp-mapping</groupId>
<artifactId>lib</artifactId>
<groupId>de.hsu-hh.aut.mtp2skill</groupId>
<artifactId>mtp2skill-lib</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.hsu-hh.aut.mtp2skill</groupId>
<artifactId>mtp2skill-parent</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</parent>

<artifactId>mtp2skill-lib</artifactId>
Expand Down
9 changes: 8 additions & 1 deletion lib/src/main/java/mapping/MtpToSkillMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>de.hsu-hh.aut.mtp2skill</groupId>
<artifactId>mtp2skill-parent</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>

<packaging>pom</packaging>

Expand Down
6 changes: 3 additions & 3 deletions rest-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.hsu-hh.aut.mtp2skill</groupId>
<artifactId>mtp2skill-parent</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</parent>

<artifactId>mtp2skill-rest-api</artifactId>
Expand All @@ -19,8 +19,8 @@
<version>2.9.3</version>
</dependency>
<dependency>
<groupId>de.hsu-hh.ifa.mtp-mapping</groupId>
<artifactId>lib</artifactId>
<groupId>de.hsu-hh.aut.mtp2skill</groupId>
<artifactId>mtp2skill-lib</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
Expand Down

0 comments on commit 08b26cc

Please sign in to comment.