You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commonsrdf.apache.org by st...@apache.org on 2016/06/20 11:29:39 UTC
[3/5] incubator-commonsrdf git commit: Reduce rdf4j-dependencies
Reduce rdf4j-dependencies
Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/01ae8d91
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/01ae8d91
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/01ae8d91
Branch: refs/heads/rdf4j
Commit: 01ae8d91fda0927bc989a5847d68da7b8154bfc4
Parents: 5709ab2
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Mon Jun 20 12:20:44 2016 +0100
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Mon Jun 20 12:20:44 2016 +0100
----------------------------------------------------------------------
rdf4j/pom.xml | 174 ++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 132 insertions(+), 42 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/01ae8d91/rdf4j/pom.xml
----------------------------------------------------------------------
diff --git a/rdf4j/pom.xml b/rdf4j/pom.xml
index 29aeb3f..08aaf7d 100644
--- a/rdf4j/pom.xml
+++ b/rdf4j/pom.xml
@@ -18,23 +18,43 @@
limitations under the License.
-->
-<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>
-
- <parent>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-rdf-parent</artifactId>
- <version>0.3.0-incubating-SNAPSHOT</version>
- </parent>
-
- <artifactId>commons-rdf-rdf4j</artifactId>
- <packaging>jar</packaging>
- <properties>
+<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>
+
+ <parent>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-rdf-parent</artifactId>
+ <version>0.3.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>commons-rdf-rdf4j</artifactId>
+ <packaging>jar</packaging>
+ <properties>
<rdf4j.version>2.0M2</rdf4j.version>
</properties>
- <name>Commons RDF: Integration: RDF4j</name>
- <description>Eclipse RDF4j implementation of Commons RDF API</description>
+ <name>Commons RDF: Integration: RDF4j</name>
+ <description>Eclipse RDF4j implementation of Commons RDF API</description>
+
+ <build>
+ <plugins>
+ <plugin>
+
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <!-- Not sure why this is needed, .impl and .internal is normally hidden
+ by the Bundle Plugin.. -->
+
+ <Export-Package>org.apache.commons.rdf.rdf4j</Export-Package>
+ <Private-Package>org.apache.commons.rdf.rdf4j.impl</Private-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
<dependencies>
<dependency>
@@ -47,37 +67,107 @@
<artifactId>commons-rdf-simple</artifactId>
<version>${project.version}</version>
</dependency>
+
+ <!-- Selected rdf4j dependencies We don't use rdf4j-runtime or rdf4j-runtime-osgi
+ here, as they pull in various depenencies like lucene, which might not be
+ needed. -->
+
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-model</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-repository-api</artifactId>
+ </dependency>
+
+ <!-- For RDF4JParserBuilder, these are the RIO dependencies for the standard
+ RDF 1.1 languages -->
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-rio-turtle</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-rio-ntriples</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-rio-nquads</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-rio-rdfxml</artifactId>
+ </dependency>
<dependency>
<groupId>org.eclipse.rdf4j</groupId>
- <artifactId>rdf4j-runtime</artifactId>
+ <artifactId>rdf4j-rio-trig</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-rio-jsonld</artifactId>
+ <!-- FIXME: version should be in rdf4j-bom https://github.com/eclipse/rdf4j/issues/189 -->
<version>${rdf4j.version}</version>
</dependency>
-
- <dependency>
- <groupId>${project.parent.groupId}</groupId>
- <artifactId>commons-rdf-api</artifactId>
- <version>${project.version}</version>
- <classifier>tests</classifier>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
-<!-- Ensure consistent rdf4j versions across the board -->
-<dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.eclipse.rdf4j</groupId>
- <artifactId>rdf4j-bom</artifactId>
- <version>${rdf4j.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
-</dependencyManagement>
+ <!-- Languages notably missing, and why:
+
+ rdf4j-rio-rdfjson: standard, but https://www.w3.org/TR/rdf-json/ says:
+ "The syntax defined in this document should not be used unless there is a specific reason to do so"
+
+ rdf4j-rio-binary: non-standard
+
+ rdf4j-rio-n3: unofficial standard, super-seeded by Turtle
+
+ rdf4j-rio-trix: unofficial standard
+ -->
+
+
+ <!-- There are multiple RDF4J sail/repository implementations, we use the
+ below for testing. -->
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-sail-memory</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-sail-nativerdf</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-repository-sail</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+
+ <dependency>
+ <groupId>${project.parent.groupId}</groupId>
+ <artifactId>commons-rdf-api</artifactId>
+ <version>${project.version}</version>
+ <classifier>tests</classifier>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+
+
+ <!-- Ensure consistent rdf4j versions across the board -->
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.rdf4j</groupId>
+ <artifactId>rdf4j-bom</artifactId>
+ <version>${rdf4j.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
</project>