AWS IoT TwinMaker knowledge graph - AWS IoT TwinMaker

AWS IoT TwinMaker knowledge graph

The AWS IoT TwinMaker knowledge graph organizes all the information contained within your AWS IoT TwinMaker workspaces and presents it in a visual graph format. You can run queries against your entities, components, and component types to generate visual graphs that show you the relationships between your AWS IoT TwinMaker resources.

The following topics show you how to use and integrate the knowledge graph.

AWS IoT TwinMaker knowledge graph core concepts

This topic covers the key concepts and vocabulary of the knowledge graph feature.

How knowledge graph works:

Knowledge graph creates relationships between entities and their components by using the existing CreateEntity or UpdateEntity APIs. A relationship is just a property, of a special data type RELATIONSHIP, that is defined on a component of an entity. Then AWS IoT TwinMaker knowledge graph calls the ExecuteQuery API to make a query based on any data on entities or the relationships between them. Knowledge graph use the flexible PartiQL query language (used by many AWS services) with newly added graph match syntax support to easily write your queries. After the calls are made, you view the results as a table or visualize them as a graph of connected nodes and edges.

Knowledge graph key terms:
  • Entity graph: A collection of nodes and edges within a workspace.

  • Node: Every entity in your workspace becomes a node in the entity graph.

  • Edge: Every relationship property defined on a component of an entity becomes an edge in the entity graph. In addition, a hierarchical parent-child relationship defined via the parentEntityId field of an entity also becomes an edge in the entity graph with isChildOf relationship name. All edges are directional edges.

  • Relationship: An AWS IoT TwinMaker Relationship is defined as a special type of property in an Entity‚Äôs component. You can use the AWS IoT TwinMaker CreateEntity API or through UpdateEntity to define and mutate a relationship. In AWS IoT TwinMaker, a relationship must be defined in a component of an entity. A relationship cannot be defined as an isolated resource. A relationship must be directional from one entity to another.