({{, SPARQLInverseProperty[p] 
represents the inverse of property p in a (PackageLink[SPARQLPropertyPath, paclet:GraphStore/ref/SPARQLPropertyPath, GraphStore Package Symbol]).}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Needs["GraphStore`"]

A family tree:

schema[s_]:=IRI["http://schema.org/"<>s];
ex[s_]:=IRI["http://example.org/"<>s];

family=RDFStore[{
RDFTriple[ex["alfred"],schema["parent"],ex["john"]],
RDFTriple[ex["alfred"],schema["parent"],ex["mary"]],
RDFTriple[ex["mary"],schema["parent"],ex["kate"]]
}];

Find all descendants of Kate:

family//SPARQLSelect[
SPARQLPropertyPath[ex["kate"],{SPARQLInverseProperty[schema["parent"]]..},SPARQLVariable["desc"]]
]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(PackageLink[SPARQLPropertyPath, paclet:GraphStore/ref/SPARQLPropertyPath, GraphStore Package Symbol])  ▪  (PackageLink[SPARQLSelect, paclet:GraphStore/ref/SPARQLSelect, GraphStore Package Symbol])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Querying RDF Stores Using SPARQL, paclet:GraphStore/guide/SPARQLQuery])}})}})