Return-Path: X-Original-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2AAA395DD for ; Tue, 20 Mar 2012 19:32:02 +0000 (UTC) Received: (qmail 76273 invoked by uid 500); 20 Mar 2012 19:32:02 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 76185 invoked by uid 500); 20 Mar 2012 19:32:02 -0000 Mailing-List: contact jena-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-dev@incubator.apache.org Received: (qmail 76177 invoked by uid 99); 20 Mar 2012 19:32:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 19:32:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 19:31:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 24E50BDF89 for ; Tue, 20 Mar 2012 19:31:38 +0000 (UTC) Date: Tue, 20 Mar 2012 19:31:38 +0000 (UTC) From: "Andy Seaborne (Resolved) (JIRA)" To: jena-dev@incubator.apache.org Message-ID: <2107559715.37857.1332271898152.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1283508016.36137.1332244298430.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (JENA-222) Graph.size() reports '0' for TDB "urn:x-arq:UnionGraph" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JENA-222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andy Seaborne resolved JENA-222. -------------------------------- Resolution: Fixed Fix Version/s: TDB 0.9.1 Assignee: Andy Seaborne > Graph.size() reports '0' for TDB "urn:x-arq:UnionGraph" > ------------------------------------------------------- > > Key: JENA-222 > URL: https://issues.apache.org/jira/browse/JENA-222 > Project: Apache Jena > Issue Type: Bug > Components: TDB > Environment: tdb version 0.8.9 (via Apache Clerezza) > Reporter: Rupert Westenthaler > Assignee: Andy Seaborne > Priority: Minor > Fix For: TDB 0.9.1 > > > using > Dataset dataset = TDBFactory.createDataset(dir); > Model model dataset.getNamedModel("urn:x-arq:UnionGraph"); > Graph graph = model.getGraph(); > int size = graph.size(); > size will always report zero regardless of the amount of triples stored in the different named models of the dataset. > I think this is because com.hp.hpl.jena.tdb.store.GraphNamedTDB#countThis() would need special treatment in case of "isQuadUnionGraph(graphNode) == true" -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira