Tier0 uses UNS (Unified Namespace) to organize data into a clear tree structure. Each path and topic in the model automatically generates an MQTT topic, making it easy to get real-time data.
Things to Notice before Start
Page Overview
Select Unified Namespace > UNS after logging in to Tier0, you will see the main page of this module.
| No. | Item | Description |
|---|---|---|
| 1 | Namespace | Displays data models in different ways, including directly by namespace structure, by template and by label. |
| 2 | Use a draft to test and change the namespace models before building on the platform. | |
![]() | Import/export namespace models in JSON text or file. | |
![]() | Add path/topic. | |
| 3 | Search | Enter keywords to search for paths and topics. |
| Model List | Displays data models by the selected category. | |
| 4 | Recycle Bin | Lists the deleted data models. |
| 5 | Canvas | Displays selected UNS information or cards generated through chats on the right. |
| 6 | Chat | Use natural language to interact with UNS topics, and cards generated from the chat can be dragged to and displayed on the canvas. |
Additional Parameter Definition
- Topic-Topic Type
| Type | Description |
|---|---|
| State | Works as an API to receive system state data. |
| Action | Works as an API to execute CRUD commands. |
| Metric | Real-time data. For example, equipment temperature. |
- Topic-Attribute Generation Method
| Attribute Generation Method | Description |
|---|---|
| Pre-Defined | Customize attributes. |
| Template | Inherit attributes from the selected template. |
| Auto Parsing | Use JSON text to generate attributes with the same structure. |
- Topic-Linked Operation
| Item | Description |
|---|---|
| Mock Data | Generates a data flow with mock data in Unified Namespace > Flows > Source Flow. |
| Enable History | Enable historical data storage for the topic. |
How to Build a Data Model
Based on simple folder-file structure, you can define the data hierarchy to a tree map.
Building Models Manually
note
factory/equipment/CNC will be used as an example, in which factory and equipment are paths and CNC is a topic.
- Log in to Tier0, and then select UNS.
- Select
> New Path to add a path (e.g. factory).
note
Add Custom Attributes as needed, e.g. Unit.
- Select equipment, and then click
> New Topic to add a topic (e.g.CNC) under it.
- Enter the information of the topic:
- Select Type among State, Action, or Metric.
- Select whether to enable Mock Data and Enable History.
- Click
and then add attributes to the topic.
- Click Create.
Importing Models
- Log in to Tier0, and then select UNS.
- Click
at the upper-left corner. - Import JSON to create models.
- Directly enter JSON.
-
Upload a JSON file that contains model information.
- Click Download Template and enter the model content according to template rules.
tipYou can manually add a path and topic, click
to export it and use it as an example for import.
- Save the template file, switch to File tab on the import window, and upload the file.
- Click Submit.
Optional Features
Building Template
- On the UNS page, switch Namespace to Template tab.
- Click
, and then enter the information of the template. - Click
, select a topic under Source. - Click Generate, edit the attributes generated from the selected topic.
- Click Create.
Creating Label
Labels are used for categorizing data models.
- On the UNS page, switch Namespace to Label tab.
- Click
, and then enter the label name. - Click Create, and then click
to add topics under the label.
- Click Create.
