create an entity

Instructions for use

A knowledge graph uses entities and relationships to express knowledge. Extracting knowledge (entities and relationships) is a crucial step in graph construction. Typically, it is necessary to first collect structured, semi-structured, and unstructured data related to the business, and then extract structured knowledge through the knowledge extraction process.

SuperMap iDesktopX provides knowledge extraction tools, including creating an entity from structured data (tables/feature datasets) and matching Build Relationships based on spatial relationships and property fields.

When building entities and relationships simultaneously, two building ways are provided according to the actual situation:

1. Use the Create an Entity and Build Relationships tools separately. For tool concatenation, refer to Build Relationships.

2. Use the Building Entities and Relationships integrated tool. This tool is recommended for the following scenarios: when the data for building entities is spatial data and the data volume is large, you can store the spatial data and graph data uniformly in the Yukon database, and then use this tool for construction, which can improve the performance of building entities and relationships. When building entities, check the option to include source spatial objects.

Function Entry

  • Knowledge Graph tab -> Build -> Create an Entity.
  • Toolbox -> Knowledge Graph -> Create an Entity.

Parameter description

  • Connect the Graph Database: Set the graph database connection information, including graph database type, graph database address, username, password, etc. After filling in, click the "Join" button.
  • Entity Type Name: Set a new entity type name, or select an existing name.
  • Datasource: Set the datasource name for building the entity type.
  • Dataset: Set the dataset name for building the entity type, supporting attribute tables, 2D point/line/region, and 3D point/line/region types.
  • Label Field: Set the field for showing labels on graph nodes. As shown in the figure below.

  • Contains Spatial Objects: Whether to load the spatial attributes of spatial data into the entity and write it to the graph database. After checking, the entity attributes table will add a geom field (as shown in the figure below), with attribute values of point, line, region, 3D point, 3D line, and 3D region. It is recommended to check this option for spatial data to utilize spatial relationships for building graph relationships.

  • Entity Fields and Entity Merge Identifier: Set the attribute fields of the entity and the identification field for entity merging. When the selected attribute field is used as the identifier, entities with the same field value can be merged, avoiding duplicate construction of entities. You can set one or more identification fields to determine the uniqueness of the entity. For example, for two person entities with the same name, you need to select additional fields such as age for common identification.