Hi Max,
The Query Hub stage should be able to traverse the given tree by anchoring on the root entity and traversing the successors for a fixed depth. It does not however support traversing for an unknown depth. I am unsure I fully understand your query though. You can use Entity to Entity steps if all you are concerned with are entities. If you want to collect or filter based on relationship properties, you would need to use Entity to Relationship and Relationship to Entity steps. A pair of these steps would traverse as far as a single Entity to Entity step but allow for collecting the relationships and\or filtering (using conditions) against relationship properties. In addition to filtering using literals or input field values, you can also have conditions that compare a current steps property values against values collected in previous steps. These are available in the drop down that defaults to Literal when defining Conditions for all but the initial Root step.
------------------------------
Luke Daugherty
Knowledge Community Shared Account
Shelton CT
------------------------------
Original Message:
Sent: 04-15-2019 06:58
From: Maximilian Zurek
Subject: Query tree structure from Data Hub.
Hello everyone.
For a project I need to read a tree hierarchy from the Data Hub.
I provided you a picture with an example.
I need every node of the tree, but only if the connecting relation fulfill a condition (= A).
We do not know the actual depth of the tree.
I tried to read this tree with the Query Hub stage.
But i do not understand how to query multiple nodes on the same hierarchy level.
Does anybody ever had this problem before and has a solution for his?
Otherwise i have to write the query in gremlin.
BR
Max
------------------------------
Maximilian Zurek
ADWEKO Consulting GmbH
Walldorf/Baden
------------------------------