Class GraphDiffReport
Represents the Differences between 2 Graphs.
Inheritance
System.Object
GraphDiffReport
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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<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 |
---|---|
System.Collections.Generic.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 |
---|---|
System.Boolean |
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 |
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<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<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 |
---|---|
System.Collections.Generic.IEnumerable<Triple> |