You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2020/07/07 16:23:00 UTC

[jira] [Updated] (JENA-1935) Query::cloneQuery produces invalid syntax

     [ https://issues.apache.org/jira/browse/JENA-1935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne updated JENA-1935:
--------------------------------
    Priority: Minor  (was: Major)

> 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
>            Priority: Minor
>
> {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)