How to return all S->P->O triples from a starting resource to a specified path depth?
问题 My goal is to graphically represent the S->P->O relations within a depth two edges from the specified resource, p:Person_1 . I want all relations within that path length to be returned from my query as ?s, ?p, ?o for further processing in my graphical application. I tried the first query below which gives me my first set of ?s ?p ?o with repeats, then ?p2, ?o2, ?p3, ?o3 as additional columns in the result. I want to bind ?p2 and ?p3 to ?p , ?o2 and ?o3 to ?o . SELECT * WHERE { p:Person_1 ?p