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 65F669E98 for ; Thu, 26 Apr 2012 21:53:14 +0000 (UTC) Received: (qmail 34194 invoked by uid 500); 26 Apr 2012 21:53:14 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 34160 invoked by uid 500); 26 Apr 2012 21:53:14 -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 34150 invoked by uid 99); 26 Apr 2012 21:53:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 21:53:14 +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; Thu, 26 Apr 2012 21:53:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6B9AB422CE1 for ; Thu, 26 Apr 2012 21:52:50 +0000 (UTC) Date: Thu, 26 Apr 2012 21:52:50 +0000 (UTC) From: "Damian Steer (JIRA)" To: jena-dev@incubator.apache.org Message-ID: <624036558.490.1335477170467.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <244820656.374.1335474891311.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JENA-238) construct query where clause does not seem to work as advertised MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JENA-238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263171#comment-13263171 ] Damian Steer commented on JENA-238: ----------------------------------- >From http://www.w3.org/TR/sparql11-query/#constructWhere "A short form for the CONSTRUCT query form is provided for the case where the template and the pattern are the same and the pattern is *just a basic graph pattern* (no FILTERs and no complex graph patterns are allowed in the short form)." Unless this has changed that would mean no OPTIONAL or UNION in the where clause. > construct query where clause does not seem to work as advertised > ---------------------------------------------------------------- > > Key: JENA-238 > URL: https://issues.apache.org/jira/browse/JENA-238 > Project: Apache Jena > Issue Type: Bug > Components: ARQ, LARQ > Affects Versions: ARQ 2.9.0, LARQ 1.0.0 > Environment: Windows Vista 32-bit > Reporter: Andrew Crapo > > Here are two queries: > select ?o ?o1 ?o2 where { > ?o . > OPTIONAL {?o ?o1} . > OPTIONAL {?o ?o2}} > > construct where { > ?o . > OPTIONAL {?o ?o1} . > OPTIONAL {?o ?o2}} > My understanding is that the where clause for construct should handle OPTIONAL. The first query works fine, the second query has a parse error. The same is true if I try to use a construct query with a UNION in it--it will not parse. -- 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