Build Relationship
Feature Description
Building relationships between created entities is a crucial step in knowledge graph construction.
SuperMap iDesktopX provides two approaches to build relationships:
- For entities with spatial attributes: Build through spatial relationships (containment, contained by, intersection, adjacency)
- Build through property field matching, which includes two methods:
- Match entities using connection fields with identical values between source and target entities
- Match through third-party association tables
Feature Entry
- Knowledge Graph Tab->Build->: Build Relationship.
- Toolbox->Knowledge Graph->Build Relationship: Double-click or drag the tool to the model builder window then double-click the function icon.
A simple model using GPA for knowledge graph construction is:
Parameter Description
- Connect Graph Database: Configure graph database connection information including type, address, username and password. Click "Join" when completed.
- Source Entity: Set parent entity type.
- Target Entity: Set child entity type. Example: If houses belong to parcels, houses are source entities and parcels are target entities. Relationship name: Belong_to, direction: from source to target.
- Building Way: Provides spatial topology methods (containment, contained by, intersection, adjacency) and field matching/association methods. Note: When using spatial relationships, the "contains spatial objects" parameter must be configured during Create Entity.
- Relation: Set relationship type name.
- Source Match Field: Required for field matching/association methods. The connection field in source entities for establishing relationships. Must be lowercase when connecting Yukon.
- Target Match Field: Required for field matching/association methods. The connection field in target entities for establishing relationships. Must be lowercase when connecting Yukon.
- Datasources: Required for association matching. Specifies the datasource containing association tables.
- Association Table: Set dataset containing association tables.
- Source Entity Association Field: Corresponds to source match field.
- Target Entity Association Field: Corresponds to target match field.
- Click Execute to run the analysis. The output window will display success/failure status after completion.