1 |
fb15f295
|
Pavel Fidranský
|
{
|
2 |
|
|
//defaultn? filter
|
3 |
|
|
"defaultFilter": {
|
4 |
|
|
|
5 |
|
|
//filter podle archetyp? vrchol?
|
6 |
|
|
"vertexArchetypeFilter": {
|
7 |
|
|
"archetypes": [ "archetypeName1", "archetypeName2", ... ], //seznam n?zv? archetyp?
|
8 |
|
|
"matchType": "match_type" //match type: "matching" / "non_matching"
|
9 |
|
|
},
|
10 |
|
|
|
11 |
|
|
//filter podle archetyp? hran
|
12 |
|
|
"edgeArchetypeFilter": {
|
13 |
|
|
//seznam trojic archetyp? (archetyp v?choz?ho vrcholu, archetyp hrany, archetype c?lov?ho vrcholu)
|
14 |
|
|
"archetypes": [
|
15 |
|
|
{
|
16 |
|
|
"fromArchetypes": [ "vertexArchetypeName1", "vertexArchetypeName2", ... ], //seznam n?zv? archetyp? v?choz?ho vrcholu
|
17 |
|
|
"edgeArchetypes": [ "edgeArchetypeName1", "edgeArchetypeName2", ... ], //seznam n?zv? archetyp? hrany
|
18 |
|
|
"toArchetypes": [ "vertexArchetypeName1", "vertexArchetypeName2", ... ] //seznam n?zv? archetyp? c?lov?ho vrcholu
|
19 |
|
|
//filtr je v?dy pro ka?dou trojici fromArchetype-edgeArchetpye-toArchetype, kter? spl?uje libovolnou z uveden?ch kombinac?
|
20 |
|
|
},
|
21 |
|
|
{
|
22 |
|
|
"fromArchetypes": [ "vertexArchetypeName1", "vertexArchetypeName2", ... ], //seznam n?zv? archetyp? v?choz?ho vrcholu
|
23 |
|
|
"edgeArchetypes": [ "edgeArchetypeName1", "edgeArchetypeName2", ... ], //seznam n?zv? archetyp? hrany
|
24 |
|
|
"toArchetypes": [ "vertexArchetypeName1", "vertexArchetypeName2", ... ] //seznam n?zv? archetyp? c?lov?ho vrcholu
|
25 |
|
|
},
|
26 |
|
|
{
|
27 |
|
|
"fromArchetypes": [ "vertexArchetypeName1", "vertexArchetypeName2", ... ], //seznam n?zv? archetyp? v?choz?ho vrcholu
|
28 |
|
|
"edgeArchetypes": [ "edgeArchetypeName1", "edgeArchetypeName2", ... ], //seznam n?zv? archetyp? hrany
|
29 |
|
|
"toArchetypes": [ "vertexArchetypeName1", "vertexArchetypeName2", ... ] //seznam n?zv? archetyp? c?lov?ho vrcholu
|
30 |
|
|
},
|
31 |
|
|
...
|
32 |
|
|
],
|
33 |
|
|
"matchType": "matchType" //match type: "matching" / "non_matching"
|
34 |
|
|
},
|
35 |
|
|
|
36 |
|
|
//filter podle atribut? vrchol?
|
37 |
|
|
"vertexAttributeFilters": [
|
38 |
|
|
//filter pro typ ENUM
|
39 |
|
|
{
|
40 |
|
|
"archetype": "archetypeName", //n?zev archetypu, pro kter? filtr plat?
|
41 |
|
|
"attributeName": "attributeName", //n?zev atributu
|
42 |
|
|
//"filter" obsahuje info o samotn?m filtru, jeho struktura z?vis? na datov?m typu dan?ho atributu, ten lze zjistit v aplikaci z na?ten?ho grafu v GraphManageru
|
43 |
|
|
"filter": {
|
44 |
|
|
"values": [ "value1", "value2", ... ], //hodnoty jako string
|
45 |
|
|
"matchType": "matchType" //match type: "any" / "none" / "exact_match"
|
46 |
|
|
}
|
47 |
|
|
},
|
48 |
|
|
//filter pro typ STRING
|
49 |
|
|
{
|
50 |
|
|
"archetype": "archetypeName", //n?zev archetypu, pro kter? filtr plat?
|
51 |
|
|
"attributeName": "attributeName", //n?zev atributu
|
52 |
|
|
//"filter" obsahuje info o samotn?m filtru, jeho struktura z?vis? na datov?m typu dan?ho atributu, ten lze zjistit v aplikaci z na?ten?ho grafu v GraphManageru
|
53 |
|
|
"filter": {
|
54 |
|
|
"value": "value", //hodnota typu string
|
55 |
|
|
"matchType": "matchType" //match type: "exact_match" / "exact_mismatch" / "containing" / "non_containing" / "regular_expression"
|
56 |
|
|
}
|
57 |
|
|
},
|
58 |
|
|
//filter pro typ NUMBER
|
59 |
|
|
{
|
60 |
|
|
"archetype": "archetypeName", //n?zev archetypu, pro kter? filtr plat?
|
61 |
|
|
"attributeName": "attributeName", //n?zev atributu
|
62 |
|
|
//"filter" obsahuje info o samotn?m filtru, jeho struktura z?vis? na datov?m typu dan?ho atributu, ten lze zjistit v aplikaci z na?ten?ho grafu v GraphManageru
|
63 |
|
|
"filter": {
|
64 |
|
|
"min": cislo, //minim?ln? hodnota jako ??slo
|
65 |
|
|
"max": cislo, //maxim?n? hodnota jako ??slo
|
66 |
|
|
"minInclusive": inclusive, //info, zda min je sou??st intervalu ?i nikoliv, jako hodnota typu bool (true/false)
|
67 |
|
|
"maxInclusive": inclusive, //info, zda max je sou??st intervalu ?i nikoliv, jako hodnota typu bool (true/false)
|
68 |
|
|
"matchType": "matchType" //match type: "matching" / "non_matching"
|
69 |
|
|
}
|
70 |
|
|
},
|
71 |
|
|
//filter pro typ DATE
|
72 |
|
|
{
|
73 |
|
|
"archetype": "archetypeName", //n?zev archetypu, pro kter? filtr plat?
|
74 |
|
|
"attributeName": "attributeName", //n?zev atributu
|
75 |
|
|
//"filter" obsahuje info o samotn?m filtru, jeho struktura z?vis? na datov?m typu dan?ho atributu, ten lze zjistit v aplikaci z na?ten?ho grafu v GraphManageru
|
76 |
|
|
"filter": {
|
77 |
|
|
"min": "datum", //minim?ln? hodnota jako datum reprezentovan? ?et?zcem ve form?tu ve form?tu yyyy-MM-dd HH:mm:ss
|
78 |
|
|
"max": "datum", //maxim?n? hodnota jako datum reprezentovan? ?et?zcem ve form?tu ve form?tu yyyy-MM-dd HH:mm:ss
|
79 |
|
|
"minInclusive": inclusive, //info, zda min je sou??st intervalu ?i nikoliv, jako hodnota typu bool (true/false)
|
80 |
|
|
"maxInclusive": inclusive, //info, zda max je sou??st intervalu ?i nikoliv, jako hodnota typu bool (true/false)
|
81 |
|
|
"matchType": "matchType" //match type: "matching" / "non_matching"
|
82 |
|
|
}
|
83 |
|
|
},
|
84 |
|
|
...
|
85 |
|
|
],
|
86 |
|
|
|
87 |
|
|
//filter podle atribut? hran
|
88 |
|
|
"edgeAttributeFilters": [
|
89 |
|
|
//stejn? jako u "vertexAttributeFilters"
|
90 |
|
|
]
|
91 |
|
|
},
|
92 |
|
|
|
93 |
|
|
"defaultGroupArchetypes": [ "archetypeName1", "archetypeName2", ... ], //Pole n?zv? archetyp?, kter? budou p?esunuty do skupin v postrann? li?t?
|
94 |
|
|
|
95 |
|
|
//Definice archetypov?ch ikon
|
96 |
|
|
"archetypeIcons": {
|
97 |
|
|
//ikony identifikov?ny pomoc? jm?n
|
98 |
|
|
"archetypeName1": 'archetype 1 svg', //hodnotou v t?to struktu?e je pot? svg k?d
|
99 |
|
|
"archetypeName2": 'archetype 2 svg'
|
100 |
|
|
}
|
101 |
|
|
}
|