Interface ShaclValidator

All Known Implementing Classes:
ShaclPlainValidator

public interface ShaclValidator
Public API for the SHACL Validation.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    boolean
    conforms(Shapes shapes, 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
    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.
    get()
    Return the current system-wide ShaclValidator.
    default Shapes
    parse(String filenameOrURL)
    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.
    validate(org.apache.jena.graph.Graph shapesGraph, org.apache.jena.graph.Graph data)
    Produce a full validation report.
    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.
    validate(Shapes shapes, org.apache.jena.graph.Graph data)
    Produce a full validation report.
    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.
  • Method Details

    • get

      static ShaclValidator get()
      Return the current system-wide ShaclValidator.
    • parse

      Shapes parse(org.apache.jena.graph.Graph shapesGraph)
      Parse the shapes from the graph and return a AST object that has all the shapes.
    • parse

      default Shapes parse(String filenameOrURL)
      Parse the shapes from a file or URL return a AST object that has all the shapes.
    • conforms

      boolean conforms(Shapes shapes, 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

      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

      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.
      See Also:
    • validate

      ValidationReport validate(Shapes shapes, org.apache.jena.graph.Graph data)
      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.