Author: concelvio
Date: Mon Mar 21 00:41:48 2011
New Revision: 1083643
URL: http://svn.apache.org/viewvc?rev=1083643&view=rev
Log:
STANBOL-39:
1) Moved from eu.iksproject.kres.shered.dependency.owlink to reasoners/owllink
(org.apache.stanbol.reasoners.owllink)
Added:
incubator/stanbol/trunk/kres/reasoners/owllink/ (with props)
incubator/stanbol/trunk/kres/reasoners/owllink/pom.xml
incubator/stanbol/trunk/kres/reasoners/owllink/src/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/assembly/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/assembly/felix.xml
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/java/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/java/org/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/java/org/apache/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/java/org/apache/stanbol/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/java/org/apache/stanbol/reasoners/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/java/org/apache/stanbol/reasoners/owllink/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/eu/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/eu/iksproject/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/eu/iksproject/kres/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/eu/iksproject/kres/shared/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/eu/iksproject/kres/shared/dependency/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/eu/iksproject/kres/shared/dependency/owllink/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/owl-link/
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/owl-link/owlapi-3.0.0.jar
(with props)
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/iksproject/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/iksproject/kres/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/iksproject/kres/shared/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/iksproject/kres/shared/dependency/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/iksproject/kres/shared/dependency/owllink/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/iksproject/kres/shared/dependency/owllink/CheckLinkTest.java
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/java/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/java/org/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/java/org/apache/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/java/org/apache/stanbol/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/java/org/apache/stanbol/reasoners/
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/java/org/apache/stanbol/reasoners/owllink/
Propchange: incubator/stanbol/trunk/kres/reasoners/owllink/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Mar 21 00:41:48 2011
@@ -0,0 +1 @@
+target
Added: incubator/stanbol/trunk/kres/reasoners/owllink/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/reasoners/owllink/pom.xml?rev=1083643&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/reasoners/owllink/pom.xml (added)
+++ incubator/stanbol/trunk/kres/reasoners/owllink/pom.xml Mon Mar 21 00:41:48
2011
@@ -0,0 +1,224 @@
+<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/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.stanbol</groupId>
+ <artifactId>stanbol-parent</artifactId>
+ <version>0.9-SNAPSHOT</version>
+ <relativePath>../../../parent</relativePath>
+ </parent>
+
+ <artifactId>org.apache.stanbol.reasoners.owllink</artifactId>
+ <version>${stanbol-version}</version>
+ <packaging>bundle</packaging>
+ <name>Apache Stanbol Reasoners OwlLink Dependency</name>
+
+ <properties>
+ <kres-version>0.7</kres-version>
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <repositories>
+ <repository>
+ <id>stlab-cnr-repo</id>
+ <url>http://stlab.istc.cnr.it/software/maven/repo</url>
+ </repository>
+ </repositories>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <version>1.4.0</version>
+ </dependency>
+ <dependency>
+ <groupId>owl-link</groupId>
+ <artifactId>owl-link</artifactId>
+ <version>1.0.2</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.4</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>owlapi</groupId>
+ <artifactId>owlapi</artifactId>
+ <version>3.0.0</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>2.0.1</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Export-Package>
+
org.semanticweb.owlapi.owllink.*
+ </Export-Package>
+ <Private-Package>
+
eu.iksproject.kres.shared.dependency.owllink.*
+ </Private-Package>
+ <Import-Package>
+
!com.sun.org.apache.xml.internal.serialize,
+ !javax.xml.parsers,
+
!org.coode.owlapi.owlxml.renderer,
+
!org.coode.owlapi.owlxmlparser,
+ !org.coode.string,
+ !org.coode.xml,
+ !org.mortbay.http,
+
!org.mortbay.http.handler,
+ !org.mortbay.util,
+
!org.semanticweb.owl.apibinding,
+
!org.semanticweb.owl.inference,
+
!org.semanticweb.owl.model,
+
!org.semanticweb.owl.util,
+
!org.semanticweb.owl.vocab,
+
!org.semanticweb.owlapi.apibinding,
+
!org.semanticweb.owlapi.io,
+
!org.semanticweb.owlapi.model,
+
!org.semanticweb.owlapi.profiles,
+
!org.semanticweb.owlapi.reasoner,
+
!org.semanticweb.owlapi.reasoner.impl,
+
!org.semanticweb.owlapi.util,
+
!org.semanticweb.owlapi.vocab,
+
!org.semanticweb.reasonerfactory.pellet,
+ !org.xml.sax,
+ !org.xml.sax.helpers,
+ !uk.ac.manchester.cs.owl
+ </Import-Package>
+ <_nouses>true</_nouses>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+
<encoding>${project.build.sourceEncoding}</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+
<encoding>${project.build.sourceEncoding}</encoding>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <!-- this profile executes the bundle on apache felix-->
+ <id>run-on-felix</id>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.felix</groupId>
+
<artifactId>org.apache.felix.main</artifactId>
+ <version>2.0.2</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.felix.gogo</groupId>
+
<artifactId>org.apache.felix.gogo.commands</artifactId>
+ <version>0.2.2</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+
<groupId>org.apache.maven.plugins</groupId>
+
<artifactId>maven-antrun-plugin</artifactId>
+ <version>1.3</version>
+ <executions>
+ <execution>
+ <id>compile</id>
+
<phase>compile</phase>
+ <goals>
+
<goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+
<property name="plugins" refid="maven.runtime.classpath" />
+
<pathconvert pathsep=" " dirsep="/"
+
property="project.build.url">
+
<path path="${project.build.directory}" />
+
</pathconvert>
+
<pathconvert property="plugins.jars" pathsep=":">
+
<path path="${plugins}" />
+
<map from="${project.build.directory}/classes" to="" />
+
</pathconvert>
+
<makeurl property="urls" separator=" " validate="false">
+
<path path="${plugins.jars}" />
+
</makeurl>
+
<pathconvert pathsep=" " property="bundles">
+
<path path="${plugins}" />
+
<mapper>
+
<chainedmapper>
+
<flattenmapper />
+
<globmapper from="*" to="file:modules/*"
+
casesensitive="no" />
+
</chainedmapper>
+
</mapper>
+
</pathconvert>
+
<makeurl property="main.bundle.url"
+
file="${project.build.directory}/${project.artifactId}-${project.version}.jar"
/>
+
<echo file="${project.build.directory}/run.properties">
+
felix.auto.install=${urls}
+
felix.auto.start=${main.bundle.url}
+
org.osgi.framework.storage=${project.build.url}/felix-cache
+
org.osgi.framework.bootdelegation=*
+ </echo>
+
<replace file="${project.build.directory}/run.properties"
+
token="\" value="\\" />
+
<echo file="${project.build.directory}/config.properties">
+
felix.auto.install="${bundles}"
+
felix.auto.start=file:modules/${project.artifactId}-${project.version}.jar
+ </echo>
+
<copy
+
file="${maven.dependency.org.apache.felix.org.apache.felix.main.jar.path}"
+
tofile="${project.build.directory}/felix.jar" />
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+
<groupId>org.apache.maven.plugins</groupId>
+
<artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-5</version>
+ <executions>
+ <execution>
+
<id>create-executable-jar</id>
+
<phase>package</phase>
+ <goals>
+
<goal>single</goal>
+ </goals>
+ <configuration>
+
<descriptors>
+
<descriptor>${basedir}/src/main/assembly/felix.xml</descriptor>
+
</descriptors>
+
<finalName>${project.artifactId}-${project.version}</finalName>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ <groupId>org.apache.stanbol</groupId>
+</project>
Added:
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/assembly/felix.xml
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/reasoners/owllink/src/main/assembly/felix.xml?rev=1083643&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/reasoners/owllink/src/main/assembly/felix.xml
(added)
+++ incubator/stanbol/trunk/kres/reasoners/owllink/src/main/assembly/felix.xml
Mon Mar 21 00:41:48 2011
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly>
+ <id>all</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <dependencySets>
+ <dependencySet>
+ <useProjectArtifact>false</useProjectArtifact>
+ <outputDirectory>modules</outputDirectory>
+ <excludes>
+ <exclude>org.apache.felix:org.apache.felix.main</exclude>
+ </excludes>
+ </dependencySet>
+ <dependencySet>
+ <useProjectArtifact>false</useProjectArtifact>
+ <outputDirectory></outputDirectory>
+ <includes>
+ <include>org.apache.felix:org.apache.felix.main</include>
+ </includes>
+ </dependencySet>
+ </dependencySets>
+ <files>
+ <file>
+
<source>${project.build.directory}/${project.artifactId}-${project.version}.jar</source>
+ <outputDirectory>modules</outputDirectory>
+ </file>
+ <file>
+ <source>${project.build.directory}/felix.jar</source>
+ <outputDirectory>bin</outputDirectory>
+ </file>
+ <file>
+ <source>${project.build.directory}/config.properties</source>
+ <outputDirectory>conf</outputDirectory>
+ </file>
+ </files>
+</assembly>
Added:
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/owl-link/owlapi-3.0.0.jar
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/owl-link/owlapi-3.0.0.jar?rev=1083643&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
incubator/stanbol/trunk/kres/reasoners/owllink/src/main/resources/owl-link/owlapi-3.0.0.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added:
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/iksproject/kres/shared/dependency/owllink/CheckLinkTest.java
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/iksproject/kres/shared/dependency/owllink/CheckLinkTest.java?rev=1083643&view=auto
==============================================================================
---
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/iksproject/kres/shared/dependency/owllink/CheckLinkTest.java
(added)
+++
incubator/stanbol/trunk/kres/reasoners/owllink/src/test/eu/iksproject/kres/shared/dependency/owllink/CheckLinkTest.java
Mon Mar 21 00:41:48 2011
@@ -0,0 +1,59 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package eu.iksproject.kres.shared.dependency.owllink;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ *
+ * @author elvio
+ */
+public class CheckLinkTest {
+
+ public CheckLinkTest() {
+ }
+
+ @org.junit.BeforeClass
+ public static void setUpClass() throws Exception {
+ }
+
+ @org.junit.AfterClass
+ public static void tearDownClass() throws Exception {
+ }
+
+ @org.junit.Before
+ public void setUp() throws Exception {
+ }
+
+ @org.junit.After
+ public void tearDown() throws Exception {
+ }
+
+ /*@Before
+ public void setUp() {
+ }
+
+ @After
+ public void tearDown() {
+ }*/
+
+ /**
+ * Test of getCkLink method, of class CheckLink.
+ */
+ @org.junit.Test
+ public void testGetCkLink() {
+ CheckLink check = new CheckLink();
+ if(check.getCkLink()){
+ assertEquals(check.getCkLink(),true);
+ }else{
+ fail("Problem with owl link");
+ }
+ }
+
+}
\ No newline at end of file