Class ShaclPlainValidator

java.lang.Object
org.apache.jena.shacl.validation.ShaclPlainValidator
All Implemented Interfaces:
ShaclValidator

public class ShaclPlainValidator extends Object implements ShaclValidator
A basic implementation of SHACL Validator.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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(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.

    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

      public Shapes parse(org.apache.jena.graph.Graph shapesGraph)
      Parse the shapes from the graph and return a AST object that has all the shapes.
      Specified by:
      parse in interface ShaclValidator
    • conforms

      public 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.
      Specified by:
      conforms in interface ShaclValidator
      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 interface ShaclValidator
      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 interface ShaclValidator
      See Also:
    • validate

      public ValidationReport validate(Shapes shapes, org.apache.jena.graph.Graph data)
      Produce a full validation report.
      Specified by:
      validate in interface ShaclValidator
    • 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 interface ShaclValidator
    • 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 interface ShaclValidator