Enhancements for the aai-common library
[aai/aai-common.git] / aai-schema-ingest / src / test / resources / edgeRules / test_v16.json
1 {
2         "rules": [
3                 {
4                         "from": "foo",
5                         "to": "bar",
6                         "label": "eats",
7                         "direction": "OUT",
8                         "multiplicity": "One2Many",
9                         "contains-other-v": "NONE",
10                         "delete-other-v": "${direction}",
11                         "prevent-delete": "NONE",
12                         "description": "Hard to describe"
13                 },
14                 {
15                         "from": "foo",
16                         "to": "bar",
17                         "label": "eatz",
18                         "direction": "IN",
19                         "multiplicity": "One2Many",
20                         "contains-other-v": "NONE",
21                         "delete-other-v": "${direction}",
22                         "prevent-delete": "NONE",
23                         "description": "Hard to describe"
24                 },
25                 {
26                         "from": "foo",
27                         "to": "baz",
28                         "label": "isVeryHappyAbout",
29                         "direction": "OUT",
30                         "multiplicity": "One2Many",
31                         "contains-other-v": "${direction}",
32                         "delete-other-v": "${direction}",
33                         "prevent-delete": "NONE",
34                         "description": "Hard to describe"
35                 },
36                 {
37                         "from": "quux",
38                         "to": "foo",
39                         "label": "dancesWith",
40                         "direction": "IN",
41                         "multiplicity": "One2Many",
42                         "contains-other-v": "!${direction}",
43                         "delete-other-v": "${direction}",
44                         "prevent-delete": "NONE",
45                         "description": "Hard to describe"
46                 },
47         {
48             "from": "foo",
49             "to": "dog",
50             "label": "pets",
51             "direction": "OUT",
52             "multiplicity": "One2Many",
53             "contains-other-v": "NONE",
54             "delete-other-v": "${direction}",
55             "prevent-delete": "NONE",
56             "description": "Hard to describe"
57         },
58         {
59             "from": "dog",
60             "to": "puppy",
61             "label": "caresFor",
62             "direction": "OUT",
63             "multiplicity": "One2Many",
64             "contains-other-v": "NONE",
65             "delete-other-v": "${direction}",
66             "prevent-delete": "NONE",
67             "description": "Hard to describe",
68             "default": "true"
69         },
70         {
71             "from": "l-interface",
72             "to": "logical-link",
73             "label": "tosca.relationships.network.LinksTo",
74             "direction": "OUT",
75             "multiplicity": "MANY2MANY",
76             "contains-other-v": "NONE",
77             "delete-other-v": "${direction}",
78             "prevent-delete": "NONE",
79             "default": "true",
80             "description":""
81         },
82         {
83             "from": "logical-link",
84             "to": "l-interface",
85             "label": "org.onap.relationships.inventory.Source",
86             "direction": "OUT",
87             "multiplicity": "ONE2MANY",
88             "contains-other-v": "NONE",
89             "delete-other-v": "!${direction}",
90             "prevent-delete": "NONE",
91             "default": "false",
92             "description":""
93         },
94         {
95             "from": "logical-link",
96             "to": "l-interface",
97             "label": "org.onap.relationships.inventory.Destination",
98             "direction": "OUT",
99             "multiplicity": "ONE2MANY",
100             "contains-other-v": "NONE",
101             "delete-other-v": "!${direction}",
102             "prevent-delete": "NONE",
103             "default": "false",
104             "description":""
105         },
106         {
107             "from": "l-interface",
108             "to": "lag-interface",
109             "label": "org.onap.relationships.inventory.BelongsTo",
110             "direction": "OUT",
111             "multiplicity": "MANY2ONE",
112             "contains-other-v": "!${direction}",
113             "delete-other-v": "!${direction}",
114             "prevent-delete": "NONE",
115             "default": "true",
116             "description":""
117         },
118         {
119             "from": "lag-interface",
120             "to": "logical-link",
121             "label": "org.onap.relationships.inventory.Uses",
122             "direction": "OUT",
123             "multiplicity": "MANY2MANY",
124             "contains-other-v": "NONE",
125             "delete-other-v": "${direction}",
126             "prevent-delete": "NONE",
127             "default": "true",
128             "description":""
129         },
130         {
131             "from": "bloop",
132             "to": "bloop",
133             "label": "links",
134             "direction": "OUT",
135             "multiplicity": "ONE2ONE",
136             "contains-other-v": "IN",
137             "delete-other-v": "NONE",
138             "prevent-delete": "NONE",
139             "default": "true",
140             "description": "for testing same type direction flip requirement"
141         },
142         {
143             "from": "parent",
144             "to": "notation",
145             "label": "has",
146             "direction": "OUT",
147             "multiplicity": "Many2Many",
148             "contains-other-v": "${direction}",
149             "delete-other-v": "NONE",
150             "prevent-delete": "NONE",
151             "description": "parent contains notation"
152         },
153         {
154             "from": "not-notation",
155             "to": "parent",
156             "label": "contains",
157             "direction": "OUT",
158             "multiplicity": "Many2Many",
159             "contains-other-v": "!${direction}",
160             "delete-other-v": "NONE",
161             "prevent-delete": "NONE",
162             "description": "parent contains not-notation"
163         },
164         {
165             "from": "parent",
166             "to": "out-out",
167             "label": "eats",
168             "direction": "OUT",
169             "multiplicity": "Many2Many",
170             "contains-other-v": "OUT",
171             "delete-other-v": "NONE",
172             "prevent-delete": "NONE",
173             "description": "parent contains out-out"
174         },
175         {
176             "from": "parent",
177             "to": "in-in",
178             "label": "verbs",
179             "direction": "IN",
180             "multiplicity": "Many2Many",
181             "contains-other-v": "IN",
182             "delete-other-v": "NONE",
183             "prevent-delete": "NONE",
184             "description": "parent contains in-in"
185         },
186         {
187             "from": "out-in",
188             "to": "parent",
189             "label": "alarms",
190             "direction": "OUT",
191             "multiplicity": "Many2Many",
192             "contains-other-v": "IN",
193             "delete-other-v": "NONE",
194             "prevent-delete": "NONE",
195             "description": "parent contains out-in"
196         },
197         {
198             "from": "in-out",
199             "to": "parent",
200             "label": "befriends",
201             "direction": "IN",
202             "multiplicity": "Many2Many",
203             "contains-other-v": "OUT",
204             "delete-other-v": "NONE",
205             "prevent-delete": "NONE",
206             "description": "parent contains in-out"
207         },
208         {
209             "from": "parent",
210             "to": "grandparent1",
211             "label": "has",
212             "direction": "OUT",
213             "multiplicity": "Many2Many",
214             "contains-other-v": "!${direction}",
215             "delete-other-v": "NONE",
216             "prevent-delete": "NONE",
217             "description": "parent contained by grandparent1"
218         },
219         {
220             "from": "grandparent2",
221             "to": "parent",
222             "label": "contains",
223             "direction": "OUT",
224             "multiplicity": "Many2Many",
225             "contains-other-v": "${direction}",
226             "delete-other-v": "NONE",
227             "prevent-delete": "NONE",
228             "description": "parent contained by grandparent2"
229         },
230         {
231             "from": "parent",
232             "to": "grandparent3",
233             "label": "eats",
234             "direction": "OUT",
235             "multiplicity": "Many2Many",
236             "contains-other-v": "IN",
237             "delete-other-v": "NONE",
238             "prevent-delete": "NONE",
239             "description": "parent contained by grandparent3"
240         },
241         {
242             "from": "parent",
243             "to": "grandparent4",
244             "label": "verbs",
245             "direction": "IN",
246             "multiplicity": "Many2Many",
247             "contains-other-v": "OUT",
248             "delete-other-v": "NONE",
249             "prevent-delete": "NONE",
250             "description": "parent contained by grandparent4"
251         },
252         {
253             "from": "grandparent5",
254             "to": "parent",
255             "label": "alarms",
256             "direction": "OUT",
257             "multiplicity": "Many2Many",
258             "contains-other-v": "OUT",
259             "delete-other-v": "NONE",
260             "prevent-delete": "NONE",
261             "description": "parent contained by grandparent5"
262         },
263         {
264             "from": "grandparent6",
265             "to": "parent",
266             "label": "befriends",
267             "direction": "IN",
268             "multiplicity": "Many2Many",
269             "contains-other-v": "IN",
270             "delete-other-v": "NONE",
271             "prevent-delete": "NONE",
272             "description": "parent contained by grandparent6"
273         }
274         ]
275 }