Interface ShaclValidator


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

    Modifier and Type
    Method
    Description
    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.
    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.
    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.
    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(Graph shapesGraph)
    Parse the shapes from the graph and return a AST object that has all the shapes.
    validate(Graph shapesGraph, Graph data)
    Produce a full validation report.
    validate(Graph shapesGraph, Graph data, Node target)
    Produce a node-specific validation report.
    validate(Shapes shapes, Graph data)
    Produce a full validation report.
    validate(Shapes shapes, Graph data, 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(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, 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(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:
    • 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

      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.