- All Known Implementing Classes:
ShaclPlainValidator
public interface ShaclValidator
Public API for the SHACL Validation.
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.boolean
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.boolean
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.static ShaclValidator
get()
Return the current system-wideShaclValidator
.default Shapes
Parse the shapes from a file or URL return a AST object that has all 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.default ValidationReport
validate
(org.apache.jena.graph.Graph shapesGraph, org.apache.jena.graph.Graph data) Produce a full validation report.default ValidationReport
validate
(org.apache.jena.graph.Graph shapesGraph, org.apache.jena.graph.Graph data, org.apache.jena.graph.Node target) Produce a node-specific validation report.Produce a full validation report.Produce a full validation report for this node in the data.
-
Method Details
-
get
Return the current system-wideShaclValidator
. -
parse
Parse the shapes from the graph and return a AST object that has all the shapes. -
parse
Parse the shapes from a file or URL return a AST object that has all the shapes. -
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.- See Also:
-
conforms
default 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.- See Also:
-
conforms
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.- See Also:
-
validate
Produce a full validation report. -
validate
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. -
validate
default ValidationReport validate(org.apache.jena.graph.Graph shapesGraph, org.apache.jena.graph.Graph data) Produce a full validation report. -
validate
default ValidationReport validate(org.apache.jena.graph.Graph shapesGraph, org.apache.jena.graph.Graph data, org.apache.jena.graph.Node target) Produce a node-specific validation report.
-