Package org.apache.jena.shacl
Interface ShaclValidator
-
public interface ShaclValidatorPublic API for the SHACL Validation.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanconforms(Graph shapesGraph, 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.booleanconforms(Shapes shapes, 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.booleanconforms(Shapes shapes, Graph data, 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.static ShaclValidatorget()Return the current system-wideShaclValidator.default Shapesparse(java.lang.String filenameOrURL)Parse the shapes from a file or URL return a AST object that has all the shapes.Shapesparse(Graph shapesGraph)Parse the shapes from the graph and return a AST object that has all the shapes.default ValidationReportvalidate(Graph shapesGraph, Graph data)Produce a full validation report.default ValidationReportvalidate(Graph shapesGraph, Graph data, Node target)Produce a node-specific validation report.ValidationReportvalidate(Shapes shapes, Graph data)Produce a full validation report.ValidationReportvalidate(Shapes shapes, Graph data, Node node)Produce a full validation report for this node in the data.
-
-
-
Method Detail
-
get
static ShaclValidator get()
Return the current system-wideShaclValidator.
-
parse
Shapes parse(Graph shapesGraph)
Parse the shapes from the graph and return a AST object that has all the shapes.
-
parse
default Shapes parse(java.lang.String filenameOrURL)
Parse the shapes from a file or URL return a AST object that has all the shapes.
-
conforms
boolean conforms(Shapes shapes, 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:
validate(Shapes, Graph)
-
conforms
default boolean conforms(Graph shapesGraph, 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:
validate(Graph, Graph)
-
conforms
boolean conforms(Shapes shapes, Graph data, 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.- See Also:
validate(Shapes, Graph, Node)
-
validate
ValidationReport validate(Shapes shapes, Graph data)
Produce a full validation report.
-
validate
ValidationReport validate(Shapes shapes, Graph data, Node node)
Produce a full validation report for this node in the data.
-
validate
default ValidationReport validate(Graph shapesGraph, Graph data)
Produce a full validation report.
-
validate
default ValidationReport validate(Graph shapesGraph, Graph data, Node target)
Produce a node-specific validation report.
-
-