Andrew Crapo created JENA-238:
---------------------------------

             Summary: 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: LARQ 1.0.0, ARQ 2.9.0
         Environment: Windows Vista 32-bit
            Reporter: Andrew Crapo


Here are two queries:
select ?o ?o1 ?o2 where {<http://sadl.org/AssetManagement/ALoco#LocoA> 
        <http://com.ge.research.sadl/locomotive#poweredBy> ?o  . 
        OPTIONAL {?o 
<http://com.ge.research.sadl/locomotive#operatingTemperature> ?o1} .
        OPTIONAL {?o 
<http://com.ge.research.sadl/locomotive#desiredOperatingTemperature> ?o2}}
        
construct where {<http://sadl.org/AssetManagement/ALoco#LocoA> 
        <http://com.ge.research.sadl/locomotive#poweredBy> ?o  . 
        OPTIONAL {?o 
<http://com.ge.research.sadl/locomotive#operatingTemperature> ?o1} .
        OPTIONAL {?o 
<http://com.ge.research.sadl/locomotive#desiredOperatingTemperature> ?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

        

Reply via email to