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 2015/08/01 01:48:20 UTC
[1/2] incubator-commonsrdf git commit: COMMONSRDF-25 Remove mentions
of "local scope"
Repository: incubator-commonsrdf
Updated Branches:
refs/heads/master 8a2620284 -> 70fd93903
COMMONSRDF-25 Remove mentions of "local scope"
(except for in BlankNode about parsing)
Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/250c4394
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/250c4394
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/250c4394
Branch: refs/heads/master
Commit: 250c4394cc066b75c643d0dd52c46df87d4ce821
Parents: 0f9d716
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Tue May 12 11:56:05 2015 +0100
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Tue May 12 11:56:05 2015 +0100
----------------------------------------------------------------------
api/src/main/java/org/apache/commons/rdf/api/BlankNode.java | 5 ++---
api/src/main/java/org/apache/commons/rdf/api/IRI.java | 4 +---
api/src/main/java/org/apache/commons/rdf/api/Literal.java | 2 --
api/src/main/java/org/apache/commons/rdf/api/Triple.java | 5 -----
4 files changed, 3 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/250c4394/api/src/main/java/org/apache/commons/rdf/api/BlankNode.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/commons/rdf/api/BlankNode.java b/api/src/main/java/org/apache/commons/rdf/api/BlankNode.java
index 52275ad..c382e60 100644
--- a/api/src/main/java/org/apache/commons/rdf/api/BlankNode.java
+++ b/api/src/main/java/org/apache/commons/rdf/api/BlankNode.java
@@ -87,13 +87,12 @@ public interface BlankNode extends BlankNodeOrIRI {
* Check it this BlankNode is equal to another BlankNode. Two BlankNodes
* MUST be equal if, and only if, they have the same
* {@link #uniqueReference()}.
- *
+ * <p>
* Implementations MUST also override {@link #hashCode()} so that two equal
* Literals produce the same hash code.
*
* @param other Another object
- * @return true if other is a BlankNode, is in the same local scope and is
- * equal to this BlankNode
+ * @return true if other is a BlankNode instance that represent the same blank node
* @see Object#equals(Object)
*/
@Override
http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/250c4394/api/src/main/java/org/apache/commons/rdf/api/IRI.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/commons/rdf/api/IRI.java b/api/src/main/java/org/apache/commons/rdf/api/IRI.java
index 20ed071..f9283b6 100644
--- a/api/src/main/java/org/apache/commons/rdf/api/IRI.java
+++ b/api/src/main/java/org/apache/commons/rdf/api/IRI.java
@@ -43,11 +43,9 @@ public interface IRI extends BlankNodeOrIRI {
* normalization MUST NOT be performed when comparing IRIs for equality.
* </blockquote>
*
- * Two IRIs are equal are in the same local scope and their
+ * Two IRI instances are equal if and only if their
* {@link #getIRIString()} are equal.
*
- * Implementations MAY check the local scope for IRI comparison.
- *
* Implementations MUST also override {@link #hashCode()} so that two equal
* IRIs produce the same hash code.
*
http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/250c4394/api/src/main/java/org/apache/commons/rdf/api/Literal.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/commons/rdf/api/Literal.java b/api/src/main/java/org/apache/commons/rdf/api/Literal.java
index 8e22acb..bb3c2de 100644
--- a/api/src/main/java/org/apache/commons/rdf/api/Literal.java
+++ b/api/src/main/java/org/apache/commons/rdf/api/Literal.java
@@ -92,8 +92,6 @@ public interface Literal extends RDFTerm {
* literals can have the same value without being the same RDF term.
* </blockquote>
*
- * Implementations MAY check the local scope for Literal comparison.
- *
* Implementations MUST also override {@link #hashCode()} so that two equal
* Literals produce the same hash code.
*
http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/250c4394/api/src/main/java/org/apache/commons/rdf/api/Triple.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/commons/rdf/api/Triple.java b/api/src/main/java/org/apache/commons/rdf/api/Triple.java
index f7dcd39..b91cca4 100644
--- a/api/src/main/java/org/apache/commons/rdf/api/Triple.java
+++ b/api/src/main/java/org/apache/commons/rdf/api/Triple.java
@@ -66,11 +66,6 @@ public interface Triple {
* {@link #getPredicate()} and {@link #getObject()} are equal.
* </p>
* <p>
- * Implementations MUST check the local scope for Triple comparison if
- * either the subject or object is a BlankNode, and MAY check the local
- * scope in other cases.
- * </p>
- * <p>
* Implementations MUST also override {@link #hashCode()} so that two equal
* Triples produce the same hash code.
* </p>
[2/2] incubator-commonsrdf git commit: Merge remote-tracking branch
'stain/COMMONSRDF-25-remove-localscope'
Posted by st...@apache.org.
Merge remote-tracking branch 'stain/COMMONSRDF-25-remove-localscope'
This closes #14
Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/70fd9390
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/70fd9390
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/70fd9390
Branch: refs/heads/master
Commit: 70fd93903e119dff88d8cd92606483e336ad4939
Parents: 8a26202 250c439
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Sat Aug 1 00:47:06 2015 +0100
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Sat Aug 1 00:47:06 2015 +0100
----------------------------------------------------------------------
api/src/main/java/org/apache/commons/rdf/api/BlankNode.java | 5 ++---
api/src/main/java/org/apache/commons/rdf/api/IRI.java | 4 +---
api/src/main/java/org/apache/commons/rdf/api/Literal.java | 2 --
api/src/main/java/org/apache/commons/rdf/api/Triple.java | 5 -----
4 files changed, 3 insertions(+), 13 deletions(-)
----------------------------------------------------------------------