[ 
https://issues.apache.org/jira/browse/JENA-1935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17153532#comment-17153532
 ] 

ASF subversion and git services commented on JENA-1935:
-------------------------------------------------------

Commit 2e6ec6a3c7ec344fae7fab97ed45105eba725529 in jena's branch 
refs/heads/master from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=2e6ec6a ]

JENA-1935: No prologue for subquery


> Query::cloneQuery produces invalid syntax
> -----------------------------------------
>
>                 Key: JENA-1935
>                 URL: https://issues.apache.org/jira/browse/JENA-1935
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: Jena 3.16.0
>            Reporter: Martynas Jusevičius
>            Assignee: Andy Seaborne
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {code:java}
> QueryFactory.create("PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
> ASK { SELECT * { ?class a rdfs:Class . } }").cloneQuery().toString()
> {code}
> produces
> {noformat}
> PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> ASK
> WHERE
>   { PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
>     
>     SELECT  *
>     WHERE
>       { ?class  a  rdfs:Class }
>   }
> {noformat}
> which is invalid SPARQL syntax (note the second {{PREFIX}}).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to