Skip to content

Commit

Permalink
Merge pull request #26 from stlab-istc-cnr/master
Browse files Browse the repository at this point in the history
Extract CPAnnotation schema
  • Loading branch information
essepuntato committed Feb 6, 2020
2 parents 137d86f + 3bd91f3 commit a64e42e
Show file tree
Hide file tree
Showing 34 changed files with 4,761 additions and 1,997 deletions.
260 changes: 145 additions & 115 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,117 +1,147 @@
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>it.essepuntato</groupId>
<artifactId>LODE</artifactId>
<version>1.3-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>

<!-- aterm -->
<dependency>
<groupId>com.github.ansell.aterms</groupId>
<artifactId>aterm-java</artifactId>
<version>1.8.2</version>
</dependency>

<!-- saxon-he -->
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>9.5.1-6</version>
</dependency>

<!-- jgrapht (jdk 1.5) -->
<dependency>
<groupId>org.jgrapht</groupId>
<artifactId>jgrapht-jdk1.5</artifactId>
<version>0.7.3</version>
</dependency>

<!-- pellet -->
<dependency>
<groupId>com.github.ansell.pellet</groupId>
<artifactId>pellet-core</artifactId>
<version>2.3.6-ansell</version>
</dependency>
<dependency>
<groupId>com.github.ansell.pellet</groupId>
<artifactId>pellet-datatypes</artifactId>
<version>2.3.6-ansell</version>
</dependency>
<dependency>
<groupId>com.github.ansell.pellet</groupId>
<artifactId>pellet-el</artifactId>
<version>2.3.6-ansell</version>
</dependency>
<dependency>
<groupId>com.github.ansell.pellet</groupId>
<artifactId>pellet-owlapiv3</artifactId>
<version>2.3.6-ansell</version>
</dependency>
<dependency>
<groupId>com.github.ansell.pellet</groupId>
<artifactId>pellet-rules</artifactId>
<version>2.3.6-ansell</version>
</dependency>

<!-- owlapi -->
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-distribution</artifactId>
<version>3.5.0</version>
</dependency>

<!-- servlets -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>

</dependencies>


<build>

<plugins>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>

<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<stopPort>9966</stopPort>
<stopKey>foo</stopKey>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webApp>
<contextPath>/lode</contextPath>
</webApp>
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>8080</port>
<maxIdleTime>60000</maxIdleTime>
<forwarded>true</forwarded>
</connector>
</connectors>
</configuration>
</plugin>

</plugins>

</build>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>it.essepuntato</groupId>
<artifactId>LODE</artifactId>
<version>1.3-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<apachecommons.version>2.1.1</apachecommons.version>
<apachecommonsbeanutils.version>1.9.3</apachecommonsbeanutils.version>
<log4j.version>1.7.7</log4j.version>
<sl4j.version>1.7.7</sl4j.version>
</properties>

<dependencies>

<!-- aterm -->
<dependency>
<groupId>com.github.ansell.aterms</groupId>
<artifactId>aterm-java</artifactId>
<version>1.8.2</version>
</dependency>

<!-- saxon-he -->
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>9.5.1-6</version>
</dependency>

<!-- jgrapht (jdk 1.5) -->
<dependency>
<groupId>org.jgrapht</groupId>
<artifactId>jgrapht-jdk1.5</artifactId>
<version>0.7.3</version>
</dependency>

<!-- pellet -->
<dependency>
<groupId>com.github.ansell.pellet</groupId>
<artifactId>pellet-core</artifactId>
<version>2.3.6-ansell</version>
</dependency>
<dependency>
<groupId>com.github.ansell.pellet</groupId>
<artifactId>pellet-datatypes</artifactId>
<version>2.3.6-ansell</version>
</dependency>
<dependency>
<groupId>com.github.ansell.pellet</groupId>
<artifactId>pellet-el</artifactId>
<version>2.3.6-ansell</version>
</dependency>
<dependency>
<groupId>com.github.ansell.pellet</groupId>
<artifactId>pellet-owlapiv3</artifactId>
<version>2.3.6-ansell</version>
</dependency>
<dependency>
<groupId>com.github.ansell.pellet</groupId>
<artifactId>pellet-rules</artifactId>
<version>2.3.6-ansell</version>
</dependency>

<!-- owlapi -->
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-distribution</artifactId>
<version>3.5.0</version>
</dependency>

<!-- servlets -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>

<!-- Commons configuration -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-configuration2</artifactId>
<version>${apachecommons.version}</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${apachecommonsbeanutils.version}</version>
</dependency>

<!-- Logging LOG4J - SLF4J -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>${sl4j.version}</version>
</dependency>

</dependencies>


<build>

<plugins>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>

<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<stopPort>9966</stopPort>
<stopKey>foo</stopKey>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webApp>
<contextPath>/lode</contextPath>
</webApp>
<connectors>
<connector
implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>8080</port>
<maxIdleTime>60000</maxIdleTime>
<forwarded>true</forwarded>
</connector>
</connectors>
</configuration>
</plugin>

</plugins>

</build>

</project>
42 changes: 42 additions & 0 deletions src/main/java/it/essepuntato/lode/LODEConfiguration.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package it.essepuntato.lode;

import org.apache.commons.configuration2.Configuration;
import org.apache.commons.configuration2.builder.fluent.Configurations;
import org.apache.commons.configuration2.ex.ConfigurationException;

public class LODEConfiguration {

private static LODEConfiguration instance = null;

private String externalURL,webvowl;

private LODEConfiguration(String configFile) {
try {
Configurations configs = new Configurations();
Configuration config = configs.properties(configFile);

externalURL = config.getString("externalURL");
webvowl = config.getString("webvowl");

} catch (ConfigurationException e) {
e.printStackTrace();
}

}

public static LODEConfiguration getInstance(String configFile) {
if (instance == null) {
instance = new LODEConfiguration(configFile);
}
return instance;
}

public String getExternalURL() {
return externalURL;
}

public String getWebvowl() {
return webvowl;
}

}
Loading

0 comments on commit a64e42e

Please sign in to comment.