added schema validation tools
[aai/aai-common.git] / aai-schema-ingest / src / test / resources / edgeRules / labelValidationTest1.json
1 {
2         "rules": [
3                 {
4                         "from": "human",
5                         "to": "monster",
6                         "label": "fights",
7                         "direction": "OUT",
8                         "multiplicity": "ONE2ONE",
9                         "contains-other-v": "NONE",
10                         "delete-other-v": "NONE",
11                         "prevent-delete": "NONE",
12                         "default": "true",
13                         "description":"will be part of valid set"
14                 },
15                 {
16                         "from": "monster",
17                         "to": "human",
18                         "label": "ignores",
19                         "direction": "OUT",
20                         "multiplicity": "ONE2ONE",
21                         "contains-other-v": "NONE",
22                         "delete-other-v": "NONE",
23                         "prevent-delete": "NONE",
24                         "default": "true",
25                         "description":"will be part of valid set"
26                 },
27                 {
28                         "from": "human",
29                         "to": "monster",
30                         "label": "tames",
31                         "direction": "OUT",
32                         "multiplicity": "ONE2ONE",
33                         "contains-other-v": "OUT",
34                         "delete-other-v": "NONE",
35                         "prevent-delete": "NONE",
36                         "default": "true",
37                         "description":"will be part of valid set"
38                 },
39                 {
40                         "from": "sphinx",
41                         "to": "monster",
42                         "label": "isA",
43                         "direction": "OUT",
44                         "multiplicity": "ONE2ONE",
45                         "contains-other-v": "NONE",
46                         "delete-other-v": "NONE",
47                         "prevent-delete": "NONE",
48                         "default": "true",
49                         "description":"will be part of invalid set - dup label, cousin and containment, from/to flipped"
50                 },
51                 {
52                         "from": "sphinx",
53                         "to": "monster",
54                         "label": "isA",
55                         "direction": "OUT",
56                         "multiplicity": "ONE2ONE",
57                         "contains-other-v": "OUT",
58                         "delete-other-v": "NONE",
59                         "prevent-delete": "NONE",
60                         "default": "true",
61                         "description":"will be part of invalid set - dup label, cousin and containment, from/to flipped"
62                 },
63                 {
64                         "from": "griffin",
65                         "to": "hippogriff",
66                         "label": "fliesPast",
67                         "direction": "OUT",
68                         "multiplicity": "ONE2ONE",
69                         "contains-other-v": "NONE",
70                         "delete-other-v": "NONE",
71                         "prevent-delete": "NONE",
72                         "default": "false",
73                         "description":"will be part of invalid set - dup label, both cousins, from/to flipped"
74                 },
75                 {
76                         "from": "hippogriff",
77                         "to": "griffin",
78                         "label": "fliesPast",
79                         "direction": "OUT",
80                         "multiplicity": "ONE2ONE",
81                         "contains-other-v": "NONE",
82                         "delete-other-v": "${direction}",
83                         "prevent-delete": "NONE",
84                         "default": "true",
85                         "description":"will be part of invalid set - dup label, both cousins, from/to flipped"
86                 },
87                 {
88                         "from": "human",
89                         "to": "toaster",
90                         "label": "owns",
91                         "direction": "OUT",
92                         "multiplicity": "ONE2ONE",
93                         "contains-other-v": "OUT",
94                         "delete-other-v": "NONE",
95                         "prevent-delete": "NONE",
96                         "default": "true",
97                         "description":"will be part of valid set (dup label (human owns) but on different pair so ok)"
98                 },
99                 {
100                         "from": "badger",
101                         "to": "mushroom",
102                         "label": "onap.whatever.BindsTo",
103                         "direction": "OUT",
104                         "multiplicity": "ONE2ONE",
105                         "contains-other-v": "NONE",
106                         "delete-other-v": "NONE",
107                         "prevent-delete": "NONE",
108                         "default": "true",
109                         "description":"will be part of invalid set - full copy in file2"
110                 },
111                 {
112                         "from": "lava",
113                         "to": "floor",
114                         "label": "is",
115                         "direction": "IN",
116                         "multiplicity": "ONE2ONE",
117                         "contains-other-v": "NONE",
118                         "delete-other-v": "NONE",
119                         "prevent-delete": "NONE",
120                         "default": "true",
121                         "description":"will be part of invalid set - dup in file2, contains and cousin, from/to flipped"
122                 }
123         ]
124 }