You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2016/02/13 21:01:28 UTC
[04/26] incubator-taverna-language git commit: Draft: Using
Jena/schemagen instead of sesame/elmo
Draft: Using Jena/schemagen instead of sesame/elmo
Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/commit/4ab3fad4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/tree/4ab3fad4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/diff/4ab3fad4
Branch: refs/heads/master
Commit: 4ab3fad46c71c71e3f528ae8c21ca4e1500745ea
Parents: f24046d
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Thu Feb 26 01:55:05 2015 +0000
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Wed Feb 10 11:04:47 2016 +0000
----------------------------------------------------------------------
taverna-scufl2-wfdesc/pom.xml | 225 +++++--------------------------------
1 file changed, 27 insertions(+), 198 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/blob/4ab3fad4/taverna-scufl2-wfdesc/pom.xml
----------------------------------------------------------------------
diff --git a/taverna-scufl2-wfdesc/pom.xml b/taverna-scufl2-wfdesc/pom.xml
index dec59fc..1dc069d 100755
--- a/taverna-scufl2-wfdesc/pom.xml
+++ b/taverna-scufl2-wfdesc/pom.xml
@@ -36,89 +36,34 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.6</version>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <configuration>
- <target>
- <property name="compile_classpath" refid="maven.compile.classpath" />
- <property name="runtime_classpath" refid="maven.runtime.classpath" />
- <property name="test_classpath" refid="maven.test.classpath" />
- <property name="plugin_classpath" refid="maven.plugin.classpath" />
-
- <!-- inspired by http://openprovenance.org/java/maven-releases/org/openprovenance/opm-elmo/1.1.1/opm-elmo-1.1.1.pom -->
-
- <mkdir dir="${project.build.directory}" />
- <mkdir dir="${project.build.directory}/generated-sources" />
- <mkdir dir="${project.build.directory}/generated-sources/elmo" />
-
- <java classname="org.openrdf.elmo.codegen.OntologyConverter" fork="true" failonerror="true" maxmemory="128m">
- <arg value="-b" />
- <arg value="org.purl.wf4ever.wfdesc=http://purl.org/wf4ever/wfdesc#" />
- <arg value="-b" />
- <arg value="org.purl.wf4ever.wf4ever=http://purl.org/wf4ever/wf4ever#" />
- <arg value="-b" />
- <arg value="org.purl.wf4ever.wfprov=http://purl.org/wf4ever/wfprov#" />
- <arg value="-b" />
- <arg value="org.w3.prov=http://www.w3.org/ns/prov#" />
- <arg value="-b" />
- <arg value="org.purl.wf4ever.roterms=http://purl.org/wf4ever/roterms#" />
- <arg value="-b" />
- <arg value="org.w3.rdfs=http://www.w3.org/2000/01/rdf-schema#" />
-
-
-
- <!-- <arg value="-p" /> <arg value="wfdesc" /> -->
- <arg value="-j" />
- <arg value="target/wfdesc-ontology.jar" />
-
- <arg value="-p" />
- <arg value="wf" /> <!-- Windows freaks out if this is really empty -->
-
- <!-- <arg value="http://purl.org/wf4ever/wfdesc" /> -->
- <arg value="src/main/resources/org/purl/wf4ever/wfdesc/wfdesc.ttl" />
- <arg value="src/main/resources/org/purl/wf4ever/wfdesc/wf4ever.ttl" />
- <arg value="src/main/resources/com/xmlns/foaf/foaf.rdf" />
- <arg value="src/main/resources/org/w3/prov-o.ttl" />
-
- <!--
- -->
- <arg value="src/main/resources/org/purl/wf4ever/wfdesc/roterms.ttl" />
-
-
- <classpath refid="maven.plugin.classpath" />
- <classpath>
- <pathelement path="." />
- </classpath>
- project.name
- </java>
- <unzip src="${project.build.directory}/wfdesc-ontology.jar" dest="${project.build.directory}/generated-sources/elmo">
- <patternset>
- <exclude name="**/*.class" />
- </patternset>
- </unzip>
- </target>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.openrdf.elmo</groupId>
- <artifactId>elmo-codegen</artifactId>
- <version>1.5</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>1.5.2</version> <!-- note old version required for elmo! -->
- </dependency>
- </dependencies>
+ <groupId>org.apache.jena</groupId>
+ <artifactId>jena-maven-tools</artifactId>
+ <version>0.8-SNAPSHOT</version>
+ <configuration>
+ <includes>
+ <include>src/main/resources/org/purl/wf4ever/wfdesc/*.ttl</include>
+ <include>src/main/resources/org/purl/wf4ever/wfdesc/*.ttl</include>
+ <include>src/main/resources/com/xmlns/foaf/foaf.rdf</include>
+ <include>src/main/resources/org/w3/prov-o.ttl</include>
+ </includes>
+ <fileOptions>
+ <source>
+ <input>default</input>
+ <package-name>org.apache.taverna.scufl2.wfdesc.impl.ontologies</package-name>
+ <ontology>true</ontology>
+ </source>
+ </fileOptions>
+ </configuration>
+ <executions>
+ <execution>
+ <id>schemagen</id>
+ <goals>
+ <goal>translate</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
+
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
@@ -194,51 +139,6 @@
</executions>
</plugin>
</plugins>
- <pluginManagement>
- <plugins>
- <!--This plugin's configuration is used to store Eclipse
- m2e settings only. It has no influence on the Maven build itself. -->
- <plugin>
- <groupId>org.eclipse.m2e</groupId>
- <artifactId>lifecycle-mapping</artifactId>
- <version>1.0.0</version>
- <configuration>
- <lifecycleMappingMetadata>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <versionRange>[1.6,)</versionRange>
- <goals>
- <goal>run</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <execute>
- <runOnIncremental>false</runOnIncremental>
- </execute>
- </action>
- </pluginExecution>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <versionRange>[1.5,)</versionRange>
- <goals>
- <goal>add-source</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <execute />
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
</build>
<dependencies>
@@ -276,51 +176,12 @@
<artifactId>commons-beanutils</artifactId>
<version>1.7.0</version>
</dependency>
-
- <dependency>
- <groupId>org.openrdf.elmo</groupId>
- <artifactId>elmo-api</artifactId>
- <version>${elmo.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.openrdf.elmo</groupId>
- <artifactId>elmo-sesame</artifactId>
- <version>${elmo.version}</version>
- <exclusions>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>jcl104-over-slf4j</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.4.3</version>
</dependency>
<dependency>
- <groupId>org.openrdf.elmo</groupId>
- <artifactId>elmo-dynabean</artifactId>
- <version>${elmo.version}</version>
- </dependency>
- <dependency>
- <groupId>org.openrdf.sesame</groupId>
- <artifactId>sesame-repository-sail</artifactId>
- <version>${sesame.version}</version>
- </dependency>
- <dependency>
- <groupId>org.openrdf.sesame</groupId>
- <artifactId>sesame-sail-memory</artifactId>
- <version>${sesame.version}</version>
- </dependency>
- <dependency>
- <groupId>org.openrdf.elmo</groupId>
- <artifactId>elmo-codegen</artifactId>
- <version>${elmo.version}</version>
- </dependency>
- <dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<type>jar</type>
@@ -339,36 +200,4 @@
<scope>compile</scope>
</dependency>
</dependencies>
- <repositories>
- <repository>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <id>aduna-opensource.releases</id>
- <name>Aduna (Sesame) releases</name>
- <url>http://repo.aduna-software.org/maven2/releases/</url>
- <!-- Also mirrored at
- <url>http://repository.mygrid.org.uk/artifactory/aduna/</url>
- -->
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <id>aduna-opensource.releases</id>
- <name>Aduna (Sesame) releases</name>
- <url>http://repo.aduna-software.org/maven2/releases/</url>
- <!-- Also mirrored at
- <url>http://repository.mygrid.org.uk/artifactory/aduna/</url>
- -->
- </pluginRepository>
- </pluginRepositories>
</project>