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:1
Entity Matching
Entities in the new data are matched against existing entities in the knowledge graph.
2
Conflict Detection
Conflicts between new and existing data are identified (e.g., different values for the same property).
3
Automatic Resolution
Some conflicts are automatically resolved based on predefined rules and confidence scores.
4
Human Review
Conflicts that cannot be automatically resolved are flagged for human review.
5
Graph Integration
Resolved entities and relationships are integrated into the knowledge graph.
6
Index Update
Search indexes are updated to include the new data.
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: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
