You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Martynas Jusevičius (Jira)" <ji...@apache.org> on 2020/07/06 20:36:00 UTC
[jira] [Commented] (JENA-1935) Query::cloneQuery produces invalid
syntax
[ https://issues.apache.org/jira/browse/JENA-1935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17152302#comment-17152302 ]
Martynas Jusevičius commented on JENA-1935:
-------------------------------------------
{{QueryTransformOps}} exhibits the same problem:
{code:java}
QueryTransformOps.transformQuery(QueryFactory.create("PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> ASK { SELECT * { ?class a rdfs:Class . } }"), java.util.Collections.emptyMap()).toString()
{code}
> 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: Major
>
> {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)