Show / Hide Table of Contents

Class GraphDiffReport

Represents the Differences between 2 Graphs.

Inheritance
object
GraphDiffReport
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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

| Edit this page View Source

AddedMSGs

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>
| Edit this page View Source

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>
| Edit this page View Source

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
| Edit this page View Source

AreEqual

Gets whether the Graphs were equal at the time the Diff was calculated.

Declaration
public bool AreEqual { get; }
Property Value
Type Description
bool
| Edit this page View Source

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.

| Edit this page View Source

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>
| Edit this page View Source

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>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
GraphDiffReportExtensions.AsUpdate(GraphDiffReport, Uri, INamespaceMapper)
  • Edit this page
  • View Source
In this article
  • Properties
    • AddedMSGs
    • AddedTriples
    • AreDifferentSizes
    • AreEqual
    • Mapping
    • RemovedMSGs
    • RemovedTriples
  • Extension Methods
Back to top Generated by DocFX