Class ShapesGraph
Represents a SHACL shapes graph that acts as a fully compliant SHACL Core and SHACL-SPARQL processor.
Inherited Members
Namespace: VDS.RDF.Shacl
Assembly: dotNetRdf.Shacl.dll
Syntax
public class ShapesGraph : WrapperGraph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>
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. |
Remarks
The Datatype constraint component is not supported under .NET Standard 1.4.
Methods
| Improve this Doc View SourceConforms(IGraph)
Checks the given data graph against this shapes graph for SHACL conformance.
Declaration
public bool Conforms(IGraph dataGraph)
Parameters
Type | Name | Description |
---|---|---|
IGraph | dataGraph | The data graph to check for SHACL conformance. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the data graph SHACL conforms to this shapes graph. |
Remarks
The Datatype constraint component is not supported under .NET Standard 1.4.
Validate(IGraph)
Checks the given data graph against this shapes graph for SHACL conformance and reports validation results.
Declaration
public Report Validate(IGraph dataGraph)
Parameters
Type | Name | Description |
---|---|---|
IGraph | dataGraph | The data graph to check for SHACL conformance. |
Returns
Type | Description |
---|---|
Report | A SHACL validation report containing possible validation results. |
Remarks
The Datatype constraint component is not supported under .NET Standard 1.4.