Graph Merging
Graph merging is the process of integrating newly extracted graph data with existing data in your knowledge graph. This is a critical capability of Graphora that allows you to build and maintain a comprehensive knowledge graph over time.The Merging Process
When you merge transformed data into your knowledge graph, the following steps occur:Entity Matching
Entities in the new data are matched against existing entities in the knowledge graph.
Conflict Detection
Conflicts between new and existing data are identified (e.g., different values for the same property).
Automatic Resolution
Some conflicts are automatically resolved based on predefined rules and confidence scores.
Merging in the Client Library
The Graphora client library provides methods for merging transformed data and handling conflicts:Starting a Merge
Checking Merge Status
Handling Conflicts
Retrieving the Merged Graph
Conflict Resolution Strategies
When resolving conflicts, you can use one of the following strategies:| Strategy | Description |
|---|---|
ACCEPT | Accept the new data, replacing the existing data |
REJECT | Reject the new data, keeping the existing data |
MODIFY | Modify the data before accepting it |
MERGE | Merge the new and existing data |
Merge Statistics
You can get detailed statistics about a merge operation:- Number of entities processed
- Number of relationships processed
- Number of conflicts detected
- Number of conflicts resolved automatically
- Number of conflicts resolved manually
- Time taken for each stage of the merge process
Best Practices for Graph Merging
To get the best results from graph merging:- Define clear entity matching rules: Ensure entities are correctly matched across datasets
- Handle conflicts appropriately: Choose the right resolution strategy for each conflict
- Provide meaningful learning comments: Help improve automatic resolution over time
- Monitor merge progress: Large merges may take time to complete
- Review merge statistics: Understand how your data is being integrated
Example: Complete Merge Workflow
Here’s a complete example of merging transformed data and handling conflicts:Next Steps
- Explore the Graph data model
- Learn about Ontologies in more detail
- Check out the API Reference for detailed information
