I want all the triples in the graph from a specific subject / node.
I can get all the triples...
SELECT $s $p $o WHERE { $s $p $o }
... not really helpful
I can get all the directly connect triples...
SELECT $s $p $o WHERE {
$s _some_predicate_ _some_object_specifier .
$s $p $o }
What I want is to start at $s (selected by predicate and object)
and then get
something like $s $p* $o
Thoughts?
So I'd like to start at ID_6 and get all node below that including the nodes 1 and 2. I also need the predicates because not all the predicates will be HAS
So more specifically using the graph below I want all the triples below object "P2" I need the subject, predicate and object for each of the 1xx and 2xx nodes... I can recursively query each node to get the data but I'm hoping there is a simple (ish) query to get all the data in a single query...