Class ValidationContext


public class ValidationContext extends Object
Context for a validation and collector of the results.
  • Constructor Details

    • ValidationContext

      public ValidationContext(org.apache.jena.graph.Graph data, ShexSchema shapes)
    • ValidationContext

      public ValidationContext(org.apache.jena.graph.Graph data, ShexSchema shapes, Map<String,SemanticActionPlugin> semActPluginIndex)
  • Method Details

    • create

      @Deprecated public static ValidationContext create(ValidationContext vCxt)
      Use method create()
    • getParent

      public ValidationContext getParent()
    • getRoot

      public ValidationContext getRoot()
    • getTripleExpression

      public TripleExpression getTripleExpression(org.apache.jena.graph.Node label)
    • getShapes

      public ShexSchema getShapes()
    • getShape

      public ShexShape getShape(org.apache.jena.graph.Node label)
    • getData

      public org.apache.jena.graph.Graph getData()
    • create

      public ValidationContext create()
      Creates a new validation context with the current one as its parent context. Initializes the new context with the state of the parent context.
      new ValidationContext with this as parent.
    • startValidate

      public void startValidate(ShexShape shape, org.apache.jena.graph.Node data)
    • cycle

      public boolean cycle(ShexShape shape, org.apache.jena.graph.Node data)
    • dispatchStartSemanticAction

      public boolean dispatchStartSemanticAction(ShexSchema schema, ValidationContext vCxt)
    • dispatchShapeExprSemanticAction

      public boolean dispatchShapeExprSemanticAction(ShapeExpression se, org.apache.jena.graph.Node focus)
    • dispatchTripleExprSemanticAction

      public boolean dispatchTripleExprSemanticAction(TripleExpression te, Set<org.apache.jena.graph.Triple> matchables)
    • finishValidate

      public void finishValidate(ShexShape shape, org.apache.jena.graph.Node data)
    • hasEntries

      public boolean hasEntries()
    • copyInto

      public void copyInto(ValidationContext other)
      Update other with "this" state
    • getReportItems

      public List<ReportItem> getReportItems()
      Current state.
    • getShexReportItems

      public List<ShexRecord> getShexReportItems()
      Current state.
    • reportEntry

      public void reportEntry(ReportItem item)
    • shexReport

      public void shexReport(ShexRecord entry, org.apache.jena.graph.Node focusNode, ShexStatus result, String reason)
    • generateReport

      public ShexReport generateReport()