Return-Path: X-Original-To: apmail-clerezza-dev-archive@www.apache.org Delivered-To: apmail-clerezza-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1B33F35E for ; Tue, 2 Apr 2013 06:10:44 +0000 (UTC) Received: (qmail 79857 invoked by uid 500); 2 Apr 2013 06:10:44 -0000 Delivered-To: apmail-clerezza-dev-archive@clerezza.apache.org Received: (qmail 79677 invoked by uid 500); 2 Apr 2013 06:10:43 -0000 Mailing-List: contact dev-help@clerezza.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@clerezza.apache.org Delivered-To: mailing list dev@clerezza.apache.org Received: (qmail 79642 invoked by uid 99); 2 Apr 2013 06:10:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 06:10:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.128.173] (HELO mail-ve0-f173.google.com) (209.85.128.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 06:10:36 +0000 Received: by mail-ve0-f173.google.com with SMTP id cy12so70605veb.32 for ; Mon, 01 Apr 2013 23:10:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=1lzIpOyH2WaPW5kVuPHizvL/z+1eAXdbtBYufXmjOfw=; b=o1wfQf14MG5tFjnnoHp9aTf66gIl7Aq5eBLemLKz+1+c71izUBIgS4TaQIY/1NJ/yZ ILqj82GZrM/cyB5lCTvrskRfM7CrLx0wHZh9bXfUv7IlK2FjqJFgY5ORr+1L0MSLlY9G MNGoOD6Rr1gCz4A4N6L5X2iiGa8hsWN+sbXaS0O6am/ZQz0GtTqDlsHi6+a1XQNFKAbB 83CWewQNvTNXMH6p4xZM8E54MPhghan/naBlyLzuuV5NUbolOgdaE2TcGR+1Hx8tT9/F 2Qb5DteaXbLI2mvg9bpc34eH7WVezJcRYjpbQ4CA/07tMdzrXw6U9tQM0ySSUt+VHJkO xydg== MIME-Version: 1.0 X-Received: by 10.220.214.6 with SMTP id gy6mr11484558vcb.8.1364883015908; Mon, 01 Apr 2013 23:10:15 -0700 (PDT) Received: by 10.220.151.79 with HTTP; Mon, 1 Apr 2013 23:10:15 -0700 (PDT) X-Originating-IP: [212.55.219.194] In-Reply-To: References: Date: Tue, 2 Apr 2013 08:10:15 +0200 Message-ID: Subject: Re: [jira] [Commented] (CLEREZZA-761) Implement SPARQL PreParser to support fastlane From: Hasan Hasan To: dev@clerezza.apache.org Cc: clerezza-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=14dae9cdc78752e56004d95a97ba X-Gm-Message-State: ALoCoQm3m7t5ZO57bKBPxrYpLl6IGr4sAfKYUnY7ZA9pZbONHwP2TLlNkRtMzhrIacVCSAtmCjXN X-Virus-Checked: Checked by ClamAV on apache.org --14dae9cdc78752e56004d95a97ba Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Reto, all Two issues here: First the query: SELECT DISTINCT ?g { GRAPH ?g { ?s ?p ?o } } does not specify NAMED graphs. If the query is as follows SELECT DISTINCT ?g FROM NAMED http://example.org/g1 { GRAPH ?g { ?s ?p ?o } } then the engine will return http://example.org/g1 because the clause GRAPH refers only NAMED graphs as mentioned by Andy Second the parser: I think the parser needs not know about TcManager or other providers in this case, because the named graphs are all specified in the query. Cheers Hasan On Fri, Mar 29, 2013 at 1:47 PM, Reto Bachmann-Gm=FCr (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/CLEREZZA-761?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D136172= 95#comment-13617295] > > Reto Bachmann-Gm=FCr commented on CLEREZZA-761: > --------------------------------------------- > > zz>import org.apache.clerezza.rdf.core.sparql._ > import org.apache.clerezza.rdf.core.sparql._ > zz>val spp =3D $[SparqlPreParser] > spp: org.apache.clerezza.rdf.core.sparql.SparqlPreParser =3D > org.apache.clerezza.rdf.core.sparql.SparqlPreParser@3aa78e7a > zz>spp.getReferredGraphs("SELECT DISTINCT ?g { GRAPH ?g { ?s ?p ?o } }", > new UriRef("urn:x-localinstance:/content.graph")) > res0: java.util.Set[org.apache.clerezza.rdf.core.UriRef] =3D > [] > zz> > > As discussed in > http://mail-archives.apache.org/mod_mbox/clerezza-dev/201303.mbox/%3C5149= 8242.4020809@apache.org%3Ethis should return all the graphs in the dataset.= I think that > SParqlPreParser being a service it could consider by default TcManager > being the dataset, but it probably should also have a method that takes a= ny > TcProvider as dataset and return it's triple collections. > > > Implement SPARQL PreParser to support fastlane > > ---------------------------------------------- > > > > Key: CLEREZZA-761 > > URL: https://issues.apache.org/jira/browse/CLEREZZA-761 > > Project: Clerezza > > Issue Type: New Feature > > Reporter: Hasan > > Assignee: Hasan > > > > The purpose is to have a class with a method to obtain referred graphs > in a SPARQL Query or SPARQL Update > > -- > This message is automatically generated by JIRA. > If you think it was sent incorrectly, please contact your JIRA > administrators > For more information on JIRA, see: http://www.atlassian.com/software/jira > --14dae9cdc78752e56004d95a97ba--