java.lang.Object
org.apache.jena.shacl.validation.ShaclPlainValidator
- All Implemented Interfaces:
ShaclValidator
A basic implementation of SHACL Validator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
conforms
(org.apache.jena.graph.Graph shapesGraph, org.apache.jena.graph.Graph data) Does the data conform to the shapes?boolean
Does the data conform to the shapes?boolean
Does the node within the data conform to the shapes?parse
(org.apache.jena.graph.Graph shapesGraph) Parse the shapes from the graph and return a AST object that has all the shapes.validate
(org.apache.jena.graph.Graph shapesGraph, org.apache.jena.graph.Graph data) Produce a full validation report.Produce a full validation report.Produce a full validation report for this node in the data.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.shacl.ShaclValidator
parse, validate
-
Constructor Details
-
ShaclPlainValidator
public ShaclPlainValidator()
-
-
Method Details
-
parse
Parse the shapes from the graph and return a AST object that has all the shapes.- Specified by:
parse
in interfaceShaclValidator
-
conforms
Does the data conform to the shapes? This operation only checks whether the data is conformant or not - it does not generate a complete report.- Specified by:
conforms
in interfaceShaclValidator
- See Also:
-
conforms
public boolean conforms(org.apache.jena.graph.Graph shapesGraph, org.apache.jena.graph.Graph data) Does the data conform to the shapes? This operation only checks whether the data is conformant or not - it does not generate a complete report.- Specified by:
conforms
in interfaceShaclValidator
- See Also:
-
conforms
public boolean conforms(Shapes shapes, org.apache.jena.graph.Graph data, org.apache.jena.graph.Node node) Does the node within the data conform to the shapes? This operation only checks the data is conformant or not - it does not generate a complete report.- Specified by:
conforms
in interfaceShaclValidator
- See Also:
-
validate
Produce a full validation report.- Specified by:
validate
in interfaceShaclValidator
-
validate
public ValidationReport validate(Shapes shapes, org.apache.jena.graph.Graph data, org.apache.jena.graph.Node node) Produce a full validation report for this node in the data.- Specified by:
validate
in interfaceShaclValidator
-
validate
public ValidationReport validate(org.apache.jena.graph.Graph shapesGraph, org.apache.jena.graph.Graph data) Produce a full validation report.- Specified by:
validate
in interfaceShaclValidator
-