added schema validation tools
[aai/aai-common.git] / aai-schema-ingest / src / test / resources / edgeRules / cousinDefaultValidationTest.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":"valid set as cousin/contains have separate defaulting"
14                 },
15                 {
16                         "from": "human",
17                         "to": "monster",
18                         "label": "builds",
19                         "direction": "OUT",
20                         "multiplicity": "ONE2ONE",
21                         "contains-other-v": "OUT",
22                         "delete-other-v": "NONE",
23                         "prevent-delete": "NONE",
24                         "default": "true",
25                         "description":"valid set as cousin/contains have separate defaulting"
26                 },
27                 {
28                         "from": "boop",
29                         "to": "beep",
30                         "label": "isTransformedByRobotsInto",
31                         "direction": "OUT",
32                         "multiplicity": "ONE2ONE",
33                         "contains-other-v": "NONE",
34                         "delete-other-v": "NONE",
35                         "prevent-delete": "NONE",
36                         "default": "true",
37                         "description":"valid set with exactly 1 default"
38                 },
39                 {
40                         "from": "boop",
41                         "to": "beep",
42                         "label": "yields",
43                         "direction": "OUT",
44                         "multiplicity": "ONE2ONE",
45                         "contains-other-v": "NONE",
46                         "delete-other-v": "NONE",
47                         "prevent-delete": "NONE",
48                         "default": "false",
49                         "description":"valid set with exactly 1 default"
50                 },
51                 {
52                         "from": "sheep",
53                         "to": "wool",
54                         "label": "produces",
55                         "direction": "OUT",
56                         "multiplicity": "ONE2ONE",
57                         "contains-other-v": "NONE",
58                         "delete-other-v": "NONE",
59                         "prevent-delete": "NONE",
60                         "default": "true",
61                         "description":"invalid set with multiple defaults"
62                 },
63                 {
64                         "from": "wool",
65                         "to": "sheep",
66                         "label": "isShearedFrom",
67                         "direction": "OUT",
68                         "multiplicity": "ONE2ONE",
69                         "contains-other-v": "NONE",
70                         "delete-other-v": "NONE",
71                         "prevent-delete": "NONE",
72                         "default": "true",
73                         "description":"invalid set with multiple defaults"
74                 },
75                 {
76                         "from": "cloth",
77                         "to": "thread",
78                         "label": "isWovenFrom",
79                         "direction": "OUT",
80                         "multiplicity": "ONE2ONE",
81                         "contains-other-v": "NONE",
82                         "delete-other-v": "NONE",
83                         "prevent-delete": "NONE",
84                         "default": "false",
85                         "description":"invalid set with no defaults"
86                 },
87                 {
88                         "from": "cloth",
89                         "to": "thread",
90                         "label": "unravelsTo",
91                         "direction": "OUT",
92                         "multiplicity": "ONE2ONE",
93                         "contains-other-v": "NONE",
94                         "delete-other-v": "NONE",
95                         "prevent-delete": "NONE",
96                         "default": "false",
97                         "description":"invalid set with no defaults"
98                 },
99                 {
100                         "from": "family",
101                         "to": "baby",
102                         "label": "raises",
103                         "direction": "OUT",
104                         "multiplicity": "ONE2ONE",
105                         "contains-other-v": "OUT",
106                         "delete-other-v": "NONE",
107                         "prevent-delete": "NONE",
108                         "default": "true",
109                         "description":"vacuously valid set (ie no cousin so doesn't even matter)"
110                 }
111         ]
112 }