Ruslan Kashapov | 55dc654 | 2021-03-02 16:48:41 +0200 | [diff] [blame^] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License. |
| 2 | .. http://creativecommons.org/licenses/by/4.0 |
| 3 | .. Copyright (C) 2021 Pantheon.tech |
| 4 | .. _modeling: |
| 5 | |
| 6 | CPS Modeling |
| 7 | ############ |
| 8 | |
| 9 | .. toctree:: |
| 10 | :maxdepth: 1 |
| 11 | |
| 12 | Basic Concepts |
| 13 | ============== |
| 14 | |
| 15 | .. image:: _static/cps-modeling-concepts.png |
| 16 | :alt: Basic entities relationship |
| 17 | |
| 18 | Administrative entities |
| 19 | |
| 20 | - **Dataspace** is a primary logical separation of data. |
| 21 | |
| 22 | Any application can define its own dataspace to store the model(s) and data it owns. |
| 23 | Dataspace is uniquely identified by it's name. |
| 24 | |
| 25 | - **Schema Set** describes a data model(s). |
| 26 | |
| 27 | Schema Set holds reference(s) to single or multiple YANG modules. Schema Set belongs to dataspace |
| 28 | and uniquely identified by its name (within its own dataspace). Same YANG resources (source files) can be |
| 29 | referenced by multiple schema sets from different dataspaces. |
| 30 | |
| 31 | - **Anchor** identifies the unique data set (data record) within a dataspace |
| 32 | |
| 33 | Anchor always references a schema set within same dataspace which describes a data model of associated data. |
| 34 | Multiple anchors may reference same schema set. Anchor is uniquely identified by its name (within own dataspace). |
| 35 | |
| 36 | Data |
| 37 | |
| 38 | - **Data Node** represents a data fragment. |
| 39 | |
| 40 | Each data node can have zero or more descendants and together they form a data instance tree. |
| 41 | The data node tree belongs to an anchor. |
| 42 | |
| 43 | Data node is representing a data fragment described in a YANG model as a *container* and/or a *list*. |
| 44 | The data described as a *leaf* and/or a *leaf-list* are stored within a parent data node. |
| 45 | |
| 46 | The data node position within a tree is uniquely identified by the node's unique **xpath** which can be used |
| 47 | for partial data query. |