added schema validation tools
[aai/aai-common.git] / aai-schema-ingest / src / test / resources / edgeRules / containsValidationTest.json
1 {
2         "rules" : [
3                 {
4                         "from": "human",
5                         "to": "monster",
6                         "label": "fights",
7                         "direction": "OUT",
8                         "multiplicity": "ONE2ONE",
9                         "contains-other-v": "${direction}",
10                         "delete-other-v": "NONE",
11                         "prevent-delete": "NONE",
12                         "default": "true",
13                         "description":"valid set with one containment"
14                 },
15                 {
16                         "from": "human",
17                         "to": "monster",
18                         "label": "avoids",
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":"valid set with one containment"
26                 },
27                 {
28                         "from": "cheese",
29                         "to": "bread",
30                         "label": "eatenWith",
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 no containment"
38                 },
39                 {
40                         "from": "box",
41                         "to": "cat",
42                         "label": "contains",
43                         "direction": "OUT",
44                         "multiplicity": "ONE2ONE",
45                         "contains-other-v": "${direction}",
46                         "delete-other-v": "NONE",
47                         "prevent-delete": "NONE",
48                         "default": "true",
49                         "description":"invalid set with more than one containment"
50                 },
51                 {
52                         "from": "box",
53                         "to": "cat",
54                         "label": "encapsulates",
55                         "direction": "OUT",
56                         "multiplicity": "ONE2ONE",
57                         "contains-other-v": "IN",
58                         "delete-other-v": "NONE",
59                         "prevent-delete": "NONE",
60                         "default": "true",
61                         "description":"invalid set with more than one containment"
62                 }
63         ]
64 }