-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
4,784 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>de.fraunhofer.scai.bio</groupId> | ||
<artifactId>owltooling</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<name>OWL Tooling</name> | ||
<description>some library to work with owl files</description> | ||
|
||
<distributionManagement> | ||
<repository> | ||
<id>github</id> | ||
<name>GitHub SCAI-BIO Apache Maven Packages</name> | ||
<url>https://maven.pkg.github.com/SCAI-BIO/owl-tooling</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
<properties> | ||
<docker.skip>true</docker.skip> | ||
<java.version>1.8</java.version> | ||
<maven.compiler.source>${java.version}</maven.compiler.source> | ||
<maven.compiler.target>${java.version}</maven.compiler.target> | ||
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format> | ||
<maven.compiler.target>1.8</maven.compiler.target> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<javadoc.opts>-Xdoclint:none</javadoc.opts> | ||
<build.timestamp>2020-11-11 13:49</build.timestamp> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<maven.compiler.source>1.8</maven.compiler.source> | ||
<version.junit>4.13</version.junit> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>net.sourceforge.owlapi</groupId> | ||
<artifactId>owlapi-distribution</artifactId> | ||
<version>5.1.17</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<version>1.18.6</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-csv</artifactId> | ||
<version>1.8</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.jena</groupId> | ||
<artifactId>jena-core</artifactId> | ||
<version>3.16.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.sourceforge.owlapi</groupId> | ||
<artifactId>org.semanticweb.hermit</artifactId> | ||
<version>1.4.5.519</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>${version.junit}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<mainClass>de.fraunhofer.scai.bio.owltooling.App</mainClass> | ||
</manifest> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>pl.project13.maven</groupId> | ||
<artifactId>git-commit-id-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>get-the-git-infos</id> | ||
<goals> | ||
<goal>revision</goal> | ||
</goals> | ||
</execution> | ||
<execution> | ||
<id>validate-the-git-infos</id> | ||
<goals> | ||
<goal>validateRevision</goal> | ||
</goals> | ||
<!-- *NOTE*: The default phase of validateRevision is verify, but in | ||
case you want to change it, you can do so by adding the phase here --> | ||
<phase>package</phase> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<generateGitPropertiesFile>true</generateGitPropertiesFile> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
57 changes: 57 additions & 0 deletions
57
src/main/java/de/fraunhofer/scai/bio/owltooling/Label.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package de.fraunhofer.scai.bio.owltooling; | ||
|
||
import java.util.Objects; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* language specific labels | ||
* | ||
* @author Marc Jacobs | ||
* | ||
*/ | ||
public class Label { | ||
|
||
@JsonProperty("language") | ||
@Getter @Setter private String language = null; | ||
|
||
@JsonProperty("content") | ||
@Getter @Setter private String content = null; | ||
|
||
public Label(String content, String language) { | ||
setContent(content); | ||
setLanguage(language); | ||
} | ||
|
||
@Override | ||
public boolean equals(java.lang.Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
Label label = (Label) o; | ||
return Objects.equals(this.content, label.content) && | ||
Objects.equals(this.language, label.language); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(language, content); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("\""); | ||
sb.append(content); | ||
sb.append("\"@"); | ||
sb.append(language); | ||
return sb.toString(); | ||
} | ||
|
||
} |
Oops, something went wrong.