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
| Edit this page 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
| Edit this page 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 |
---|---|
bool | 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 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. |