added new aai-schema-ingest library
[aai/aai-common.git] / aai-schema-ingest / src / test / resources / edgeRules / otherTestRules.json
1 {
2         "rules": [
3                 {
4                         "from": "parent",
5                         "to": "notation",
6                         "label": "has",
7                         "direction": "OUT",
8                         "multiplicity": "Many2Many",
9                         "contains-other-v": "${direction}",
10                         "delete-other-v": "NONE",
11                         "prevent-delete": "NONE",
12                         "description": "parent contains notation"
13                 },
14                 {
15                         "from": "not-notation",
16                         "to": "parent",
17                         "label": "contains",
18                         "direction": "OUT",
19                         "multiplicity": "Many2Many",
20                         "contains-other-v": "!${direction}",
21                         "delete-other-v": "NONE",
22                         "prevent-delete": "NONE",
23                         "description": "parent contains not-notation"
24                 },
25                 {
26                         "from": "parent",
27                         "to": "out-out",
28                         "label": "eats",
29                         "direction": "OUT",
30                         "multiplicity": "Many2Many",
31                         "contains-other-v": "OUT",
32                         "delete-other-v": "NONE",
33                         "prevent-delete": "NONE",
34                         "description": "parent contains out-out"
35                 },
36                 {
37                         "from": "parent",
38                         "to": "in-in",
39                         "label": "verbs",
40                         "direction": "IN",
41                         "multiplicity": "Many2Many",
42                         "contains-other-v": "IN",
43                         "delete-other-v": "NONE",
44                         "prevent-delete": "NONE",
45                         "description": "parent contains in-in"
46                 },
47                 {
48                         "from": "out-in",
49                         "to": "parent",
50                         "label": "alarms",
51                         "direction": "OUT",
52                         "multiplicity": "Many2Many",
53                         "contains-other-v": "IN",
54                         "delete-other-v": "NONE",
55                         "prevent-delete": "NONE",
56                         "description": "parent contains out-in"
57                 },
58                 {
59                         "from": "in-out",
60                         "to": "parent",
61                         "label": "befriends",
62                         "direction": "IN",
63                         "multiplicity": "Many2Many",
64                         "contains-other-v": "OUT",
65                         "delete-other-v": "NONE",
66                         "prevent-delete": "NONE",
67                         "description": "parent contains in-out"
68                 },
69                 {
70                         "from": "parent",
71                         "to": "grandparent1",
72                         "label": "has",
73                         "direction": "OUT",
74                         "multiplicity": "Many2Many",
75                         "contains-other-v": "!${direction}",
76                         "delete-other-v": "NONE",
77                         "prevent-delete": "NONE",
78                         "description": "parent contained by grandparent1"
79                 },
80                 {
81                         "from": "grandparent2",
82                         "to": "parent",
83                         "label": "contains",
84                         "direction": "OUT",
85                         "multiplicity": "Many2Many",
86                         "contains-other-v": "${direction}",
87                         "delete-other-v": "NONE",
88                         "prevent-delete": "NONE",
89                         "description": "parent contained by grandparent2"
90                 },
91                 {
92                         "from": "parent",
93                         "to": "grandparent3",
94                         "label": "eats",
95                         "direction": "OUT",
96                         "multiplicity": "Many2Many",
97                         "contains-other-v": "IN",
98                         "delete-other-v": "NONE",
99                         "prevent-delete": "NONE",
100                         "description": "parent contained by grandparent3"
101                 },
102                 {
103                         "from": "parent",
104                         "to": "grandparent4",
105                         "label": "verbs",
106                         "direction": "IN",
107                         "multiplicity": "Many2Many",
108                         "contains-other-v": "OUT",
109                         "delete-other-v": "NONE",
110                         "prevent-delete": "NONE",
111                         "description": "parent contained by grandparent4"
112                 },
113                 {
114                         "from": "grandparent5",
115                         "to": "parent",
116                         "label": "alarms",
117                         "direction": "OUT",
118                         "multiplicity": "Many2Many",
119                         "contains-other-v": "OUT",
120                         "delete-other-v": "NONE",
121                         "prevent-delete": "NONE",
122                         "description": "parent contained by grandparent5"
123                 },
124                 {
125                         "from": "grandparent6",
126                         "to": "parent",
127                         "label": "befriends",
128                         "direction": "IN",
129                         "multiplicity": "Many2Many",
130                         "contains-other-v": "IN",
131                         "delete-other-v": "NONE",
132                         "prevent-delete": "NONE",
133                         "description": "parent contained by grandparent6"
134                 }
135         ]
136 }