Rick Moynihan created JENA-989:
----------------------------------
Summary: Round tripping property paths from SPARQL into
Sexpressions and back yields a syntax error
Key: JENA-989
URL: https://issues.apache.org/jira/browse/JENA-989
Project: Apache Jena
Issue Type: Bug
Components: ARQ
Affects Versions: Jena 3.0.0
Reporter: Rick Moynihan
The following SPARQL query:
{quote}
SELECT ?uri WHERE {
?uri <http://www.w3.org/2000/01/rdf-schema#subPropertyOf>+
<http://purl.org/linked-data/sdmx/2009/dimension#refArea>
}
{quote}
When converted into an sse:
{quote}
(path
?uri
(path+ <http://www.w3.org/2000/01/rdf-schema#subPropertyOf>)
<http://purl.org/linked-data/sdmx/2009/dimension#refArea>)
{quote}
and converted back into a SPARQL query via OpAsQuery is syntactically invalid.
Note the misplaced `.`:
{quote}
SELECT *
WHERE
{ .
?uri (<http://www.w3.org/2000/01/rdf-schema#subPropertyOf>)+
<http://purl.org/linked-data/sdmx/2009/dimension#refArea>
}
{quote}
The same seems to occur for all other property paths (e.g. those that use +, *,
/, ^ etc...)
This seems related to issues resolved in JENA-963.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)