Class ShapesGraph
Represents a SHACL shapes graph that acts as a fully compliant SHACL Core and SHACL-SPARQL processor.
Implements
System.IDisposable
System.Xml.Serialization.IXmlSerializable
System.Runtime.Serialization.ISerializable
Inherited Members
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.Shacl
Assembly: dotNetRDF.dll
Syntax
public class ShapesGraph : WrapperGraph, IGraph, INodeFactory, IDisposable, IXmlSerializable, ISerializable
Remarks
The Datatype constraint component is not supported under .NET Standard 1.4.
Constructors
| Improve this Doc View SourceShapesGraph(IGraph)
Initializes a new instance of the ShapesGraph class.
Declaration
public ShapesGraph(IGraph shapesGraph)
Parameters
Type | Name | Description |
---|---|---|
IGraph | shapesGraph | The original graph containing SHACL shapes. |
Methods
| Improve this Doc View SourceConforms(IGraph)
Checks the given data graph against this shapes graph for SHACL conformance.
Declaration
public bool Conforms(IGraph dataGragh)
Parameters
Type | Name | Description |
---|---|---|
IGraph | dataGragh | The data graph to check for SHACL conformance. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the data graph SHACL conforms to this shapes graph. |
Validate(IGraph)
Checks the given data graph against this shapes graph for SHACL conformance and reports validation results.
Declaration
public Report Validate(IGraph dataGragh)
Parameters
Type | Name | Description |
---|---|---|
IGraph | dataGragh | The data graph to check for SHACL conformance. |
Returns
Type | Description |
---|---|
Report | A SHACL validation report containing possible validation results. |
Implements
System.IDisposable
System.Xml.Serialization.IXmlSerializable
System.Runtime.Serialization.ISerializable