Get all nodes in a transitive relation
问题 Is it somehow possible to get the list of nodes connected through a transitive relation with SPARQL? I have elements that are connected in this way: ?a g:eastOf ?b ?b g:eastOf ?c … Not all nodes are connected with each other, because some are further down south. Only when nodes are vertically in the same plane there might be a g:eastOf relationship. This means there are several groups of nodes that are not connected with each other. I'd like to get all these groups of nodes (basically a list