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 10:13:00 UTC
[jira] [Created] (JENA-1935) Query::cloneQuery produces invalid
syntax
Martynas Jusevičius created JENA-1935:
-----------------------------------------
Summary: 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
{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)