Skip to main content
ALTWORX Dokumentace
Přepnout tmavý/světlý/automatický režim Přepnout tmavý/světlý/automatický režim Přepnout tmavý/světlý/automatický režim Zpět na domovskou stránku

Definiční diagramy

Query

FROM NOT originorigin where originwhere origin selectselect SKIP NOT originorigin where originwhere origin stepstep target timetarget time

origin

idid [ idid , ]

where origin

WHERE where expressionwhere expression

select

SELECT [ identifieridentifier , ]

step

DIRECT SKIP FORWARD BACKWARD ALL where stepwhere step selectselect RECURSIVE FORWARD BACKWARD where stepwhere step selectselect

where expression

NOT where expressionwhere expression ( where expressionwhere expression ) where expressionwhere expression AND where expressionwhere expression where expressionwhere expression OR where expressionwhere expression where expressionwhere expression XOR where expressionwhere expression edge count conditionedge count condition asset period conditionasset period condition attribute conditionattribute condition

where step

NOT where stepwhere step ( where stepwhere step ) where stepwhere step AND where stepwhere step where stepwhere step OR where stepwhere step where stepwhere step XOR where stepwhere step edge count conditionedge count condition attribute conditionattribute condition asset period conditionasset period condition edge conditionedge condition

edge count condition

EDGE COUNT edge count stepedge count step integer predicateinteger predicate

edge count step

VIA stringstring ANY TO FROM TO OR FROM FROM OR TO ANY stringstring

attribute condition

identifieridentifier float predicatefloat predicate integer predicateinteger predicate string predicatestring predicate boolean predicateboolean predicate datetime predicatedatetime predicate list predicatelist predicate

edge condition

EDGE TYPE string predicatestring predicate TO ID string predicatestring predicate

integer predicate

<= > < >= = != <> IS NOT integerinteger

float predicate

<= > < >= = != <> IS NOT floatfloat

string predicate

!= = <> IS NOT IS NOT LIKE stringstring

boolean predicate

= != <> IS NOT booleanboolean

datetime predicate

<= > < >= = != <> IS NOT datetimedatetime

list predicate

IS NOT IN ( stringstring , )

identifier

Znázorňuje (identifikuje) konkrétní entitu v systému, obvykle atribut. Měl by být vložen do dvojitých uvozovek. Někdy nejsou citace nutné, ale takové případy nejsou předvídatelné a podobné dotazy mohou přestat v nových vydáních fungovat bez dalšího upozornění.

"name"
"contact.address.city.zip_code"

id

ID je vzor odpovídající jednomu nebo více ID aktiv.

ID je řetězec, proto je zabalen v jednoduchých uvozovkách. Symbol *, použitý jak vzor, se dá nahradit žádným nebo vícero libovolnými znaky.

'/assets/servers/x05pc'
'/assets/sensors/*'

string

Hodnota představující text. Musí být zabalena do jednoduchých uvozovek. Je-li string použit jako vzor (po LIKE nebo podobně), nahrazuje symbol * žádný nebo vícero libovolných znaků.

'on'
'off'
'state_*'

integer

Celé číslo, musí být zapsáno jako čísla postupující za sebou, není povolena žádná mezera nebo jiné znaky.

47371
1
-47381

float

Číslo s pohyblivou řádovou čárkou. Podporuje klasické i vědecké zastoupení (scientific representation). Používá . jako oddělovač desetinné části.

3.14159
314.159e-2
2.3513E-10
8.769E+5

datetime

Hodnota představující datum a čas. Očekává se formátovaná hodnota ISO8601.

Hodnota by neměla být zabalena do žádných uvozovek. T oddělující datum a čas lze nahradit mezerou. Všimněte si, že čas by měl zahrnovat informace o časovém pásmu.

2018-05-03T13:00:00Z
2018-12-27 13:00:25+04:30
2018-03-14 09:50:00-06:00

boolean

Reprezenzuje binární hodnoty - true/false, on/off. Platné hodnoty jsou true a false.