Class GraphDiffReport
Represents the Differences between 2 Graphs.
Inheritance
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
| Improve this Doc 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 |
---|---|
System.Collections.Generic.IEnumerable<T><IGraph> |
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.
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 |
---|---|
System.Collections.Generic.IEnumerable<T><Triple> |
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.
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 |
---|---|
System.Boolean |
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.
AreEqual
Gets whether the Graphs were equal at the time the Diff was calculated.
Declaration
public bool AreEqual { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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.
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 |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><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 |
---|---|
System.Collections.Generic.IEnumerable<T><IGraph> |
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.
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 |
---|---|
System.Collections.Generic.IEnumerable<T><Triple> |
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.