Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A5C8A200B9A for ; Fri, 7 Oct 2016 17:01:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A3DAC160AF3; Fri, 7 Oct 2016 15:01:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C83F5160AF1 for ; Fri, 7 Oct 2016 17:01:09 +0200 (CEST) Received: (qmail 75229 invoked by uid 500); 7 Oct 2016 15:01:09 -0000 Mailing-List: contact commits-help@commonsrdf.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commonsrdf.incubator.apache.org Delivered-To: mailing list commits@commonsrdf.incubator.apache.org Received: (qmail 75214 invoked by uid 99); 7 Oct 2016 15:01:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 15:01:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9C9D7C0635 for ; Fri, 7 Oct 2016 15:01:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id NWDvDmRBfUZd for ; Fri, 7 Oct 2016 15:01:07 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id A4B4F5FE69 for ; Fri, 7 Oct 2016 15:01:05 +0000 (UTC) Received: (qmail 74559 invoked by uid 99); 7 Oct 2016 15:01:04 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 15:01:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8B087E0B66; Fri, 7 Oct 2016 15:01:04 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: stain@apache.org To: commits@commonsrdf.incubator.apache.org Date: Fri, 07 Oct 2016 15:01:19 -0000 Message-Id: In-Reply-To: <5d52302d6ad34704ae38a97ba65e6a3d@git.apache.org> References: <5d52302d6ad34704ae38a97ba65e6a3d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [16/50] incubator-commonsrdf git commit: Javadoc tweaks archived-at: Fri, 07 Oct 2016 15:01:10 -0000 Javadoc tweaks Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/06711f9c Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/06711f9c Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/06711f9c Branch: refs/heads/master Commit: 06711f9c2832609680b9775de39456b5b2b71ccb Parents: 13c491e Author: Stian Soiland-Reyes Authored: Wed Sep 28 23:55:59 2016 +0100 Committer: Stian Soiland-Reyes Committed: Wed Sep 28 23:55:59 2016 +0100 ---------------------------------------------------------------------- .../commons/rdf/rdf4j/RDF4JTermFactory.java | 33 +++++++++++--------- .../rdf/rdf4j/experimental/package-info.java | 3 +- 2 files changed, 19 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/06711f9c/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java ---------------------------------------------------------------------- diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java index 55a8046..32044f1 100644 --- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java +++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/RDF4JTermFactory.java @@ -101,10 +101,8 @@ import org.eclipse.rdf4j.repository.Repository; public class RDF4JTermFactory implements RDFTermFactory { /** - * * Adapt a RDF4J {@link Value} as a Commons RDF {@link RDFTerm}. *

- *

* The value will be of the same kind as the term, e.g. a * {@link org.eclipse.rdf4j.model.BNode} is converted to a * {@link org.apache.commons.rdf.api.BlankNode}, a @@ -113,15 +111,19 @@ public class RDF4JTermFactory implements RDFTermFactory { * {@link org.eclipse.rdf4j.model.Literal}. is converted to a * {@link org.apache.commons.rdf.api.Literal} * - * @param value The RDF4J {@link Value} to convert. + * @param value + * The RDF4J {@link Value} to convert. * @param salt * A {@link UUID} salt to use for uniquely mapping any * {@link BNode}s. The salt should typically be the same for * multiple statements in the same {@link Repository} or * {@link Model} to ensure {@link BlankNode#equals(Object)} and * {@link BlankNode#uniqueReference()} works as intended. + * @param + * The subclass of {@link Value}, e.g. {@link BNode} * @return A {@link RDFTerm} that corresponds to the RDF4J value - * @throws IllegalArgumentException if the value is not a BNode, Literal or IRI + * @throws IllegalArgumentException + * if the value is not a BNode, Literal or IRI */ @SuppressWarnings("unchecked") public static RDF4JTerm asRDFTerm(final T value, UUID salt) { @@ -213,7 +215,6 @@ public class RDF4JTermFactory implements RDFTermFactory { * * Adapt a RDF4J {@link Value} as a Commons RDF {@link RDFTerm}. *

- *

* The value will be of the same kind as the term, e.g. a * {@link org.eclipse.rdf4j.model.BNode} is converted to a * {@link org.apache.commons.rdf.api.BlankNode}, a @@ -235,6 +236,8 @@ public class RDF4JTermFactory implements RDFTermFactory { * instance is used per RDF4J repository/model. * * @param value The RDF4J {@link Value} to convert. + * @param + * The subclass of {@link Value}, e.g. {@link BNode} * @return A {@link RDFTerm} that corresponds to the RDF4J value * @throws IllegalArgumentException if the value is not a BNode, Literal or IRI */ @@ -358,19 +361,19 @@ public class RDF4JTermFactory implements RDFTermFactory { /** * Adapt a RDF4J {@link Statement} as a Commons RDF {@link Triple}. *

- * For the purpose of {@link BlankNode} equivalence, this - * method will use an internal salt UUID that is unique per instance of - * {@link RDF4JTermFactory}. + * For the purpose of {@link BlankNode} equivalence, this method will use an + * internal salt UUID that is unique per instance of + * {@link RDF4JTermFactory}. *

- * NOTE: If combining RDF4J statements from - * multiple repositories or models, then their {@link BNode}s - * may have the same {@link BNode#getID()}, which with this method - * would become equivalent according to {@link BlankNode#equals(Object)} and - * {@link BlankNode#uniqueReference()}, - * unless a separate {@link RDF4JTermFactory} - * instance is used per RDF4J repository/model. + * NOTE: If combining RDF4J statements from multiple + * repositories or models, then their {@link BNode}s may have the same + * {@link BNode#getID()}, which with this method would become equivalent + * according to {@link BlankNode#equals(Object)} and + * {@link BlankNode#uniqueReference()}, unless a separate + * {@link RDF4JTermFactory} instance is used per RDF4J repository/model. * * @param statement + * The RDF4J {@link Statement} to adapt. * @return A {@link RDF4JTriple} that is equivalent to the statement */ public RDF4JTriple asTriple(final Statement statement) { http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/06711f9c/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/package-info.java ---------------------------------------------------------------------- diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/package-info.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/package-info.java index 192a148..217d003 100644 --- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/package-info.java +++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/experimental/package-info.java @@ -24,11 +24,10 @@ *

* When a class has stabilized, it will move to the * {@link org.apache.commons.rdf.rdf4j} package. - *

*

    *
  • {@link RDF4JParser} - an RDF4J-backed * implementations of - * {@link org.apache.commons.rdf.api.experimental.RDFParser}.
  • + * {@link org.apache.commons.rdf.experimental.RDFParser}. *
*/ package org.apache.commons.rdf.rdf4j.experimental; \ No newline at end of file