As you explore and analyze the content of a project, you can create, modify, and delete the entities and relationships in its knowledge graph. When you save graph data edits in the project, any projects or portal content items that reference the same knowledge graph service will be updated. To edit knowledge graph data, you can start from the knowledge graph view, maps, link charts, or data cards.
Note:
Editing data is not supported in a knowledge graph that uses a NoSQL data store containing user-managed data.
Create an entity
You can create a new entity of an existing type in your project, adding it to the knowledge graph. When you create an entity you can also enter properties associated with that entity type.
- Select the type of entity you want to create.
- In the Knowledge Graph Contents pane, select the entity type and click Create Entity
. - In the Link Chart Contents pane, click Options
next to the type sublayer, and click Create Entity 
- In the Map Contents pane, click Options
next to the type sublayer, and click Create Entity 
The Edit pane appears. The Type field is populated with the selected type. The Entity field is populated with Create Entity
- In the Knowledge Graph Contents pane, select the entity type and click Create Entity
- Optionally, click in a properties field and enter a property for the new entity.
Note:
If you do not enter properties, the entity will be created with null values.
- Optionally, click the Set Geometry button
in the properties list.The Create Geometry for this Entity pane appears.
- Use the map toolbar to draw the geometry for the new entity.
Note:
You can only draw geometry that matches the shape property of the entity type. The shape property cannot be updated.
- Click Ok.
The geometry is updated for the entity.
- In the Edit pane, click the Create button
.The entity is added to the knowledge graph with any properties you entered.
Create a relationship between entities
You can create a new relationship of an existing type in your project, adding it to the knowledge graph. When you create relationship you must specify the relationship endpoints. You can also specify individual entities the relationship will connect and enter properties associated with that entity type.
- Select the type of relationship you want to create.
- In the Knowledge Graph Contents pane, select the entity type and click Create Relationship

- In the Link Chart Contents pane, click Options
next to the type sublayer, and click Create Relationship 
- In the Map Contents pane, click Options
next to the type sublayer, and click Create Relationship 
The Edit pane appears. The Type field is populated with the selected type. The Relationship field is populated with Create Entity
- In the Knowledge Graph Contents pane, select the entity type and click Create Relationship
- Click in the Origin type field and select an origin entity type from the list.
- Optionally, click in the Origin Entity field and type an entity, or select from the list.
- Click in the Destination type field and select an destination entity type from the list.
- Optionally, click in the Destination Entity field and type an entity, or select from the list.
- Optionally, click in a properties field and enter a property for the new relationship.
- Click the Create button

The relationship is added to the knowledge graph with any properties you entered.
Tip:
You can swap relationship endpoints in the edit pane. On the context toolbar click Edit
and click the Swap
button to swap origin and destination entity types and entities.
Modify properties of entities and relationships
You can modify the properties of entities and relationships in your project, updating them in the knowledge graph service. If an entity has a shape property, you can also update the geometry for an entity. You cannot modify the type of an entity or relationship.
Note:
When you save edits in the project, any other projects or portal content items that reference the same knowledge graph service will be updated.
- Select the entity or relationship to modify.
- In the Knowledge Graph Contents pane—Select the type of entity or relationship. On the records list pane, click the specific entity or relationship, or use the Filter box at the top of the pane, and, on the context toolbar, click Edit
. - In the Link Chart Contents pane—Select and entity or relationship, and on the context toolbar, click Edit
. - In the Map Contents pane—Select and entity or relationship, and on the context toolbar, click Edit
. Optionally, open the map record table, select a record from the table, and on the context toolbar, click Edit
. - From a data card
—Select the entity or relationship data card from the Project Contents pane, and on the context toolbar, click Edit
.
The Edit pane opens.
- In the Knowledge Graph Contents pane—Select the type of entity or relationship. On the records list pane, click the specific entity or relationship, or use the Filter box at the top of the pane, and, on the context toolbar, click Edit
- Under Properties click an available field and enter a new value.
Note:
Only properties that can be edited will be visible on the edit pane.
- Optionally, click Reset
to undo all property field edits. - Continue editing properties as needed.
- Click the Apply button.
The entity or relationship properties are updated in the project and knowledge graph service.
Modify spatial properties of an entity
You can modify the geometry of an existing entity in your project. You cannot edit the shape property.
- Open the edit pane for the entity you want to modify
- Optionally, click the Set Geometry button
in the properties list.The Update Geometry for this Entity pane appears.
- Use the map toolbar to select and move or draw the geometry for the new entity.
Note:
You can only draw geometry that matches the shape property of the entity type. The shape property cannot be updated.
- Click Ok.
The geometry is updated for the entity.
- In the Edit pane, click the Apply button.
The entity geometry is updated in the project and knowledge graph service.
Delete entities or relationships
You can delete entities and relationships that are no longer needed from the knowledge graph. When an entity is deleted, any relationships in which the entity participated and linked provenance are also deleted automatically. Deleting an entity or relationship cannot be undone.
- Select the entity or relationship you want to delete.
- In the Knowledge Graph Contents pane—Select the type of entity or relationship. On the records list pane, click the specific entity or relationship, or use the Filter box at the top of the pane, and, on the context toolbar, click Edit
. - In the Link Chart Contents pane—Select and entity or relationship, and on the context toolbar, click Edit
. - In the Map Contents pane—Select and entity or relationship, and on the context toolbar, click Edit
. Optionally, open the map record table, select a record from the table, and on the context toolbar, click Edit
. - From a data card
—Select the entity or relationship data card from the Project Contents pane, and on the context toolbar, click Edit
.
The Edit pane appears.
- In the Knowledge Graph Contents pane—Select the type of entity or relationship. On the records list pane, click the specific entity or relationship, or use the Filter box at the top of the pane, and, on the context toolbar, click Edit
- Click the Delete button
.The delete confirmation box appears.
- Click Delete.
The entity or relationship is deleted from the knowledge graph service.