virtuoso

OpenLink Virtuoso: Finding if two nodes are connected within a certain distance

Hi folks, How can I find the distance between 2 nodes in a graph using Virtuoso? I've read the Transitivity documentations but they limit you to one predicate e.g.: SELECT ?link ?g ?step ?path WHERE { { SELECT ?s ?o ?g WHERE { graph ?g {?s foaf:knows ?o } } } OPTION (TRANSITIVE, t_distinct, t_in(?s), t_o...