This is an old revision of the document!
Specific Examples
These queries show specific examples of some real-world possible queries, based on our Blast Furnace Demo located at http://demo.optrix.com.au/s/bf
Show All Valves
Get all Valves on Stove #1
'Stove #1' ASSET 'Location' RELATIONSHIP 'down' RELATED 'Valve' TYPE ISTYPE
Get a list of all of the open analogue valves
'Valve' TYPE ISTYPE ('Position') PROPERTY POINTS '50' GREATER
Example: http://demo.optrix.com.au/s/bf/aql/show?query=%27Valve%27%20TYPE%20ISTYPE%20(%27Position%27)%20PROPERTY%20POINTS%20%2750%27%20GREATER
Get a list of all of the open on/off valves
'Valve' TYPE ISTYPE THAT ARE('Open')
http://demo.optrix.com.au/s/bf/aql/show?query=%27Valve%27%20TYPE%20ISTYPE%20THAT%20ARE(%27Open%27)
Get the currently active stove
'Stove' TYPE ISTYPE THAT ARE('Active')
Example: http://demo.optrix.com.au/s/bf/aql/show?query=%27Stove%27%20TYPE%20ISTYPE%20THAT%20ARE(%27Active%27)
Find out how many Staves are over 650 degrees
Find the hottest stave(s)
Get a heatmap of the stove temperatures over time
'TE101' ASSET 'Profile' RELATIONSHIP 'downi' RELATED 'Temperature - Stove' PROPERTY POINTS { “start”: “2020-01-01 00:00:00”, “end”: “2020-01-02 00:00:00” } GETHISTORY
Get a heatmap of the stave temperatures horizontally and vertically
'TE501' ASSET 'Vertical Profile' RELATIONSHIP 'downi' RELATED [ 'Profile' RELATIONSHIP 'downi' RELATED ] EACH [ 'Temperature' PROPERTY POINTS ] FOR