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 E4975200B9A for ; Fri, 7 Oct 2016 16:22:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E3532160AF4; Fri, 7 Oct 2016 14:22:18 +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 0C86A160AF7 for ; Fri, 7 Oct 2016 16:22:17 +0200 (CEST) Received: (qmail 41223 invoked by uid 500); 7 Oct 2016 14:22:17 -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 41152 invoked by uid 99); 7 Oct 2016 14:22:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 14:22:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BAFC21809E9 for ; Fri, 7 Oct 2016 14:22:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id sKRSleHQzFvh for ; Fri, 7 Oct 2016 14:22:16 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id A7B495F342 for ; Fri, 7 Oct 2016 14:22:15 +0000 (UTC) Received: (qmail 40777 invoked by uid 99); 7 Oct 2016 14:22:15 -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 14:22:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 16DBFE78A1; Fri, 7 Oct 2016 14:22:15 +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 14:22:44 -0000 Message-Id: <81e8f20467fb4150bf590d89a96ad03e@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [31/50] incubator-commonsrdf git commit: asJenaModel() might be made on demand archived-at: Fri, 07 Oct 2016 14:22:19 -0000 asJenaModel() might be made on demand See https://github.com/apache/incubator-commonsrdf/pull/23#pullrequestreview-2146939 Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/2462a954 Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/2462a954 Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/2462a954 Branch: refs/heads/master Commit: 2462a9540c67113c797c309d1998d5336c88c9a0 Parents: c763ffa Author: Stian Soiland-Reyes Authored: Thu Sep 29 15:42:53 2016 +0100 Committer: Stian Soiland-Reyes Committed: Thu Sep 29 15:42:53 2016 +0100 ---------------------------------------------------------------------- .../src/main/java/org/apache/commons/rdf/jena/JenaGraph.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/2462a954/jena/src/main/java/org/apache/commons/rdf/jena/JenaGraph.java ---------------------------------------------------------------------- diff --git a/jena/src/main/java/org/apache/commons/rdf/jena/JenaGraph.java b/jena/src/main/java/org/apache/commons/rdf/jena/JenaGraph.java index fa8954e..2ce453f 100644 --- a/jena/src/main/java/org/apache/commons/rdf/jena/JenaGraph.java +++ b/jena/src/main/java/org/apache/commons/rdf/jena/JenaGraph.java @@ -34,12 +34,16 @@ public interface JenaGraph extends org.apache.commons.rdf.api.Graph { public Graph asJenaGraph(); /** - * Return the underlying Jena {@link Model}. + * Return the graph as a Jena {@link Model}. *

* Changes to the Jena model are reflected in the Commons RDF graph and vice * versa. + *

+ * Note that in some cases there is no underlying Jena {@link Model}, in + * which case this method will create one. Subsequent calls should return + * the same model. * * @return A Jena {@link Model} - */ + */ public Model asJenaModel(); }