Hi all I'd like to discover if there is a relation between two nodes and if any the predicates connecting them. Let's say my graph is like following
[Uri1]
/ \
(pred:a) (pred:b)
/ \ / \
[Uri2] [Uri3] [Uri4] [Uri5]
/ \
(pred:c) (pred:d)
/ \
[Uri6] [Uri7]
\
(pred:a)
\
[Uri8]
If the query is looking for the relations between Uri8 and Uri1, the expected result should be
[Uri7] = pred:a
[Uri2] = pred:d
[Uri1] = pred:a
Consider that predicates (relations) between nodes may vary and also lengths.
the two following: SPARQL: is there any path between two nodes? and Is it possible to return relationships between two objects in SPARQL? do not work