Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this tutorial step, you enrich your ontology by adding metadata to the entity type and its properties. You also create some ontology business rules. This information adds more domain context and operational information.
Important
This feature is in preview.
Add metadata
You can add metadata to entity types and to specific properties on the entity types. You can also add metadata to relationships.
Add entity type metadata
Metadata for entity types supports descriptions, synonyms, and additional metadata key-value pairs. Follow these steps to add that metadata to your entity types.
Start with the Store entity type. Select it on the semantic canvas and select View Entity Type details.
On the Configure page that opens, scroll down to the Entity metadata section.
Enter the following Description: Filtered locations binding where LocationType = STORE; priorityDefinition=Tier 1 stores require same-day response.
Select Update.
Use the same steps that you used for the Store entity type to add the entity type metadata described in the following table.
Entity type name Metadata Notes Distribution Center Description: Filtered locations binding where LocationType = DC. Frozen Product Description: Filtered items binding where StorageClass = FROZEN. Perishable Product Description: Filtered items binding where StorageClass = PERISHABLE. Inventory Additional metadata:
On-Shelf Availability % : On-shelf availability percentage is calculated by dividing the total ShelfAvailableUnits by the total ShelfCapacityUnits. If total ShelfCapacityUnits is zero, the result is blank to avoid division by zero.
Low On-Shelf Availability : On-Shelf Availability % less than 95Additional metadata is entered as key-value pairs. Sale Description and Synonyms are already added to the entity type from the semantic model import. Review the metadata that's already there (no need to add metadata manually).
Add entity type property metadata
Metadata for properties supports descriptions and additional metadata key-value pairs, but not synonyms. Follow these steps to add metadata to properties on your entity types.
Start with Product >
ProductId. Select the Product entity type, select ..., and then select Bind data.Select Entity type properties from the left pane to open the Properties list.
Next to the
ProductIdproperty, select Metadata.For Description, enter Enterprise product identifier; not a supplier SKU or UPC.
Select Update.
Select Save.
Use the same steps that you used for the Product >
ProductIdproperty to add the property metadata described in the following table.Entity Type Property Metadata Refrigeration Telemetry TemperatureC Description: Temperature in Celsius. Inventory InventoryStatus Description: 0 is AT_RISK and 1 is HEALTHY.
Add relationship metadata
Metadata for relationship types supports descriptions and additional metadata key-value pairs, but not synonyms. Follow these steps to add metadata to your relationship types.
Start with Store operates Refrigeration Unit. Select the Store entity in the Explorer to show it on the configuration canvas, and select the operates relationship connected to it to open the relationship configuration options.
Scroll down to the Metadata section. Select Edit.
For Description, enter Identifies the refrigeration equipment operating in a store.
Select Update.
Use the same steps that you used for the Store operates Refrigeration Unit relationship type to add the relationship type metadata described in the following table.
Relationship type name Source > target entity type Metadata deliversTo Shipment > Store Description: Identifies the store receiving the shipment. occursAt Sale > Store Description: Identifies where the sale occurred. stockedAt Inventory > Store Description: Represents an active store assortment and its current inventory position, not merely a historical sale. originatesAt Shipment > Distribution Center Description: Identifies the distribution center sending the shipment. forProduct Sale > Product Description: Identifies the item sold. stockedAt Product > Inventory Description: The item is part of the store's active assortment and has a current inventory position there. suppliedBy Product > Supplier Description: Identifies the supplier responsible for the items. contains Shipment > Product Description: Identifies the item being replenished. hasTelemetryReading Refrigeration Unit > Refrigeration Telemetry Description: Identified sensor telemetry readings for refrigeration units.
Add rules
Next, add some business rules that give more detail about day-to-day operations. Write rules in natural language and link them to entity types, properties, and relationship types so consumers (like AI agents) can discover these rules and use them to ground their responses.
In the Explorer, expand Overview and select Rules.
Select + Create rule.
Enter the following rule details:
- Name: Cold-chain exception
- Definition: A frozen product has a cold-chain exception when the temperature of the refrigeration unit storing it remains above the product’s maximum storage temperature for more than 20 minutes.
- Linked ontology concepts: Frozen Product, Refrigeration Unit
Select Save. After the rule finishes saving, select Cancel to close the configuration details.
You see the rule in the Business rules page.
Select New rule to add more rules. Add two rules with the following details:
Name Definition Linked concepts Inventory at risk A store inventory position is at risk when projected on-hand inventory falls below safety stock before the next scheduled delivery - Store
- InventoryLate replenishment A replenishment shipment is late when its estimated arrival is more than four hours after its scheduled arrival. Shipment
Next steps
Your ontology is now enriched with additional metadata and business rules that give more context about day-to-day operations.
Next, continue to Explore the ontology.