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

Andy Seaborne commented on JENA-1952:
-------------------------------------

{{<<?s ?p ?o>>}} in a SPARQL* query will only match is there is the base triple.

ARQ uses the triple table to match the  {{<<?s ?p ?o>>}}, avoiding needing 
additional indexing for RDF*.
 
{noformat}
  ex:book dct:creator ex:alice .
  << ex:book dct:creator ex:alice >> dct:rank 4 .
{noformat}

To capture the RDF triple term only: with Jena 3.16.0:
{noformat}
    PREFIX afn:     <http://jena.apache.org/ARQ/function#>
    SELECT ?o ?o1 {
       ?T  dct:rank ?o1
        BIND( afn:object(?T) AS ?o )
    }
{noformat}

Currently, confusingly, a complete ground term {{ << ex:book dct:creator 
ex:alice >> dct:rank ?rank . }} does match with the base triple. It should be 
consistent.



> Jena support for SPARQL*
> ------------------------
>
>                 Key: JENA-1952
>                 URL: https://issues.apache.org/jira/browse/JENA-1952
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: Jena 3.16.0
>            Reporter: Adrika Mukherjee
>            Priority: Major
>
> SPARQL * does not able to return variables on embedded triples. For example : 
> "SELECT ?o ?o1 WHERE \{<<?s ?p ?o>> dct:rank ?o1}"; this query does not work.



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

Reply via email to