Differences

This shows you the differences between two versions of the page.

Link to this comparison view

analyst:relationshiplist [2024/04/16 05:09] – created optrixanalyst:relationshiplist [2025/12/18 22:50] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +=====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