Class GraphDiffReport
Represents the Differences between 2 Graphs.
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class GraphDiffReport
Remarks
The Diff represents the Difference between the 2 Graphs at the time the Difference was calculated - if the Graphs subsequently change then the Diff must be recalculated.
Properties
| Edit this page View SourceAddedMSGs
Gets the MSGs (Minimal Spanning Graphs i.e. sets of Triples sharing common Blank Nodes) that must be added to the 1st Graph to get the 2nd Graph.
Declaration
public IEnumerable<IGraph> AddedMSGs { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IGraph> |
AddedTriples
Gets the Ground Triples (i.e. no Blank Nodes) that must be added to the 1st Graph to get the 2nd Graph.
Declaration
public IEnumerable<Triple> AddedTriples { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Triple> |
AreDifferentSizes
Gets whether the Graphs are different sizes, different sized graphs are by definition non-equal.
Declaration
public bool AreDifferentSizes { get; }
Property Value
Type | Description |
---|---|
bool |
AreEqual
Gets whether the Graphs were equal at the time the Diff was calculated.
Declaration
public bool AreEqual { get; }
Property Value
Type | Description |
---|---|
bool |
Mapping
Provides the mapping from Blank Nodes in 1 Graph to Blank Nodes in another.
Declaration
public Dictionary<INode, INode> Mapping { get; }
Property Value
Type | Description |
---|---|
Dictionary<INode, INode> |
Remarks
In the case of Equal Graphs this will be a complete mapping, if the Graphs are different then it will be an empty/partial mapping depending on whether Blank Nodes can be mapped from one Graph to another or not.
RemovedMSGs
Gets the MSGs (Minimal Spanning Graphs i.e. sets of Triples sharing common Blank Nodes) that must be added to the 1st Graph to get the 2nd Graph.
Declaration
public IEnumerable<IGraph> RemovedMSGs { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IGraph> |
RemovedTriples
Gets the Ground Triples (i.e. no Blank Nodes) that must be removed from the 1st Graph to get the 2nd Graph.
Declaration
public IEnumerable<Triple> RemovedTriples { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Triple> |