SPARQL property paths only return the start and end nodes of a path and do not allow variables in property path expressions.

SPARQL property paths don't return intermediate nodes neither triples.

SPARQL property paths cannot retrieve and naturally represented a path in the tabular result format of SPARQL.

Considering RDF-Star and SPARQL-Star current specifications, is it possible to bind the RDF triples from a property path query to embedded triples of RDF-Star triples?

For example

SELECT ?since ?t WHERE { ns:p3 ns:FRIENDS_OF+ ns:p2 AS path (?s ?p ?o)       ns:date_of_start ?since.     BIND( AS ?t)     FILTER (?since > 2016) . }

Similar to the Cypher query bellow

WITH 2016 AS since MATCH rels= (p1:Person) - [:FRIENDS_OF*1..2]->(p2:Person) WHERE ALL(k1 in relationships(rels) WHERE k1.date_of_start > since) RETURN rels;

RDF-star and SPARQL-star

Final Community Group Report 17 December 2021

https://w3c.github.io/rdf-star/cg-spec/2021-12-17.html

More Veronica Santos's questions See All
Similar questions and discussions