...
- https://onap.readthedocs.io/en/latest/submodules/aai/aai-common.git/docs/platform/Getting%20Started/Edge_Rules.html
- https://tinkerpop.apache.org/javadocs/3.3.2/core/org/apache/tinkerpop/gremlin/structure/Direction.html
- https://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html#valueOf(java.lang.String)
- Source code: aai/aai-common/aai-schema-ingest/src/main/java/org/onap/aai/edges/enums
- Source code: aai/aai-common/aai-core/src/main/java/org/onap/aai/serialization/db
- https://lists.onap.org/g/onap-discuss/message/11643
...
Example from documentation
Example | Equivalent Example | Explanation||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
How to read "from"/"to" and "direction": |
...
- the "in" node is "vserver" |
...
- the "out" node is "tenant" |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
How to read the "label": |
...
- ("out" node) "label" ("in" node) |
...
i.e. tenant "owns" vserver |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
How to read "multiplicity" |
...
of "One2Many": - ("in" node) cardinality is "one" |
...
i.e. Each "tenant" has one "vserver" |
...
- ("out" node) cardinality is "many" |
...
i.e. Each "vserver" has many "tenants" |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
How to read "contains-other-v": |
...
- traversal of ("out" node) includes data for ("in" node) |
...
i.e. traversal of "tenant" includes data for "vserver" |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
How to read "delete-other-v": |
...
- delete of ("out" node) includes does nothing to ("in" node) |
...
i.e. delete of "tenant" includes does nothing to "vserver" |
Code Block | ||||
---|---|---|---|---|
| ||||
How to read "SVC-INFRA": |
...
- ?
...
- ?
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
How to read "prevent-delete": |
...
- delete of ("out" node) is prevented when related to ("in" node) |
...
i.e. delete of "tenant" is prevented when related to "vserver" |
General Applicability
- EdgeRules only apply to "relationship-list" relations in the schema, since the referenced object could be anything
- EdgeRules do no apply to sub-component relations in the schema, since this is implicit and hard-coded behaviour
...