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/11/04 09:57:45 UTC

[1/2] incubator-commonsrdf git commit: Bump version back to 0.3.0-incubating-SNAPSHOT

Repository: incubator-commonsrdf
Updated Branches:
  refs/heads/master 3ba5c3b93 -> fb165fa16


Bump version back to 0.3.0-incubating-SNAPSHOT

.. preparing for 0.3.0 RC2


Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/cb6f2c1e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/cb6f2c1e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/cb6f2c1e

Branch: refs/heads/master
Commit: cb6f2c1e993c3447d5a99362a2846d2c43aff627
Parents: 3ba5c3b
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Fri Nov 4 10:33:29 2016 +0100
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Fri Nov 4 10:33:29 2016 +0100

----------------------------------------------------------------------
 api/pom.xml               | 2 +-
 integration-tests/pom.xml | 2 +-
 jena/pom.xml              | 2 +-
 jsonld-java/pom.xml       | 2 +-
 pom.xml                   | 2 +-
 rdf4j/pom.xml             | 2 +-
 simple/pom.xml            | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/cb6f2c1e/api/pom.xml
----------------------------------------------------------------------
diff --git a/api/pom.xml b/api/pom.xml
index a7878ab..f3090c7 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-rdf-parent</artifactId>
-        <version>0.4.0-incubating-SNAPSHOT</version>
+        <version>0.3.0-incubating-SNAPSHOT</version>
     </parent>
 
     <artifactId>commons-rdf-api</artifactId>

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/cb6f2c1e/integration-tests/pom.xml
----------------------------------------------------------------------
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index 8da17f3..b990eb0 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -23,7 +23,7 @@
 	<parent>
 		<groupId>org.apache.commons</groupId>
 		<artifactId>commons-rdf-parent</artifactId>
-		<version>0.4.0-incubating-SNAPSHOT</version>
+		<version>0.3.0-incubating-SNAPSHOT</version>
 	</parent>
 	<artifactId>commons-rdf-integration-tests</artifactId>
 	<name>Commons RDF: Integration tests</name>

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/cb6f2c1e/jena/pom.xml
----------------------------------------------------------------------
diff --git a/jena/pom.xml b/jena/pom.xml
index 1cb4fba..eda03de 100644
--- a/jena/pom.xml
+++ b/jena/pom.xml
@@ -24,7 +24,7 @@
 	<parent>
 		<groupId>org.apache.commons</groupId>
 		<artifactId>commons-rdf-parent</artifactId>
-		<version>0.4.0-incubating-SNAPSHOT</version>
+		<version>0.3.0-incubating-SNAPSHOT</version>
 	</parent>
 
 	<artifactId>commons-rdf-jena</artifactId>

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/cb6f2c1e/jsonld-java/pom.xml
----------------------------------------------------------------------
diff --git a/jsonld-java/pom.xml b/jsonld-java/pom.xml
index d703f72..ad8645c 100644
--- a/jsonld-java/pom.xml
+++ b/jsonld-java/pom.xml
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-rdf-parent</artifactId>
-        <version>0.4.0-incubating-SNAPSHOT</version>
+        <version>0.3.0-incubating-SNAPSHOT</version>
     </parent>
 
     <artifactId>commons-rdf-jsonld-java</artifactId>

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/cb6f2c1e/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 9abce77..fa6a0dd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
 
     <groupId>org.apache.commons</groupId>
     <artifactId>commons-rdf-parent</artifactId>
-    <version>0.4.0-incubating-SNAPSHOT</version>
+    <version>0.3.0-incubating-SNAPSHOT</version>
     <packaging>pom</packaging>
 
     <name>Commons RDF</name>

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/cb6f2c1e/rdf4j/pom.xml
----------------------------------------------------------------------
diff --git a/rdf4j/pom.xml b/rdf4j/pom.xml
index ce70d79..45c4609 100644
--- a/rdf4j/pom.xml
+++ b/rdf4j/pom.xml
@@ -24,7 +24,7 @@
 	<parent>
 		<groupId>org.apache.commons</groupId>
 		<artifactId>commons-rdf-parent</artifactId>
-		<version>0.4.0-incubating-SNAPSHOT</version>
+		<version>0.3.0-incubating-SNAPSHOT</version>
 	</parent>
 
 	<artifactId>commons-rdf-rdf4j</artifactId>

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/cb6f2c1e/simple/pom.xml
----------------------------------------------------------------------
diff --git a/simple/pom.xml b/simple/pom.xml
index 2d92566..8e0ad57 100644
--- a/simple/pom.xml
+++ b/simple/pom.xml
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-rdf-parent</artifactId>
-        <version>0.4.0-incubating-SNAPSHOT</version>
+        <version>0.3.0-incubating-SNAPSHOT</version>
     </parent>
 
     <artifactId>commons-rdf-simple</artifactId>


[2/2] incubator-commonsrdf git commit: wider test coverage of Quad.asTriple()

Posted by st...@apache.org.
wider test coverage of Quad.asTriple()


Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/fb165fa1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/fb165fa1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/fb165fa1

Branch: refs/heads/master
Commit: fb165fa163ae7b3530bcc598be4b0526c88fa67c
Parents: cb6f2c1
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Fri Nov 4 10:57:28 2016 +0100
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Fri Nov 4 10:57:28 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/rdf/api/DefaultQuadTest.java | 11 +++++++++++
 .../java/org/apache/commons/rdf/api/RDFSyntaxTest.java   |  6 ++++++
 2 files changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/fb165fa1/api/src/test/java/org/apache/commons/rdf/api/DefaultQuadTest.java
----------------------------------------------------------------------
diff --git a/api/src/test/java/org/apache/commons/rdf/api/DefaultQuadTest.java b/api/src/test/java/org/apache/commons/rdf/api/DefaultQuadTest.java
index 9d563cd..53ba26d 100644
--- a/api/src/test/java/org/apache/commons/rdf/api/DefaultQuadTest.java
+++ b/api/src/test/java/org/apache/commons/rdf/api/DefaultQuadTest.java
@@ -19,6 +19,8 @@ package org.apache.commons.rdf.api;
 
 import static org.junit.Assert.*;
 
+import java.util.Objects;
+
 import org.junit.Test;
 
 public class DefaultQuadTest {
@@ -26,11 +28,20 @@ public class DefaultQuadTest {
     public void asQuad() throws Exception {
         Quad q = new DummyQuad();
         Triple t = q.asTriple();
+        assertEquals(t, t);
+        assertNotEquals(t,  q);
+        assertEquals(t, new DummyTriple());
+        assertEquals(t, new DummyQuad().asTriple());
+        
         // FIXME: This would not catch if asTriple() accidentally mixed up s/p/o
         // as they are here all the same
         assertEquals(new DummyIRI(1), t.getSubject());
         assertEquals(new DummyIRI(2), t.getPredicate());
         assertEquals(new DummyIRI(3), t.getObject());
+        
+        
+        
+        assertEquals(Objects.hash(q.getSubject(), q.getPredicate(), q.getObject()), t.hashCode());
     }
     
 }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/fb165fa1/api/src/test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java
----------------------------------------------------------------------
diff --git a/api/src/test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java b/api/src/test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java
index a1cb62e..3e22da6 100644
--- a/api/src/test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java
+++ b/api/src/test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java
@@ -112,4 +112,10 @@ public class RDFSyntaxTest {
         assertEquals("RDF 1.1 Turtle", RDFSyntax.TURTLE.toString());
     }
 
+    @Test
+    public void valueOf() throws Exception {
+        assertEquals(RDFSyntax.TURTLE, RDFSyntax.valueOf("TURTLE"));
+        // No need to test all of them, we'll trust Enum
+    }
+    
 }