RELATIONSHIPLIST
An RELATIONSHIPLIST is an AQL list of relationships.
Creating
The most common way of creating a list of assets is using the RELATIONSHIP function.
'Location' RELATIONSHIP
The above function will return a list of all relationships with 'Location' in their name.
You can also search for all of the relationships an asset has with the RELS function.
'Wind Turbine #1' RELS
The function above will return an relationship list containing each of the relationships that the Wind Turbine is connected with..
Converting To Assets
You can use relationships to search for assets. You'll need to pick an asset to start from and a direction to search.
First, get an ASSETLIST of the starting asset. In this case, we'll start with Wind Turbine #1.
'Wind Turbine #1' ASSET
This function returns an ASSETLIST containing Wind Turbine #1.
Next, we search for the relationship we want to explore. In this case, we'll go with Sequence.
'Wind Turbine #1' ASSET 'Sequence' RELATIONSHIP
We now have our starting asset and the relationship we want to search..
Next, we specify the direction we want to search ('up' for upstream and 'down' for downstream) and call the RELATED function.
'Wind Turbine #1' ASSET 'Sequence' RELATIONSHIP 'downi' RELATED