Class AbstractEngine

java.lang.Object
org.topbraid.shacl.engine.AbstractEngine
All Implemented Interfaces:
NodeExpressionContext
Direct Known Subclasses:
RuleEngine, ValidationEngine

public abstract class AbstractEngine extends Object implements NodeExpressionContext
Base class for validation and rule engines.
Author:
Holger Knublauch
  • Field Details

    • dataset

      protected org.apache.jena.query.Dataset dataset
    • monitor

      protected ProgressMonitor monitor
    • shapesGraph

      protected ShapesGraph shapesGraph
    • shapesGraphURI

      protected URI shapesGraphURI
  • Constructor Details

    • AbstractEngine

      protected AbstractEngine(org.apache.jena.query.Dataset dataset, ShapesGraph shapesGraph, URI shapesGraphURI)
  • Method Details

    • applyEntailments

      public void applyEntailments() throws InterruptedException
      Ensures that the data graph includes any entailed triples inferred by the regime specified using sh:entailment in the shapes graph. Should be called prior to validation. Throws an Exception if unsupported entailments are found. If multiple sh:entailments are present then their order is undefined but they all get applied.
      Throws:
      InterruptedException - if the monitor has canceled it
    • checkCanceled

      public void checkCanceled()
    • getDataset

      public org.apache.jena.query.Dataset getDataset()
      Specified by:
      getDataset in interface NodeExpressionContext
    • getProgressMonitor

      public ProgressMonitor getProgressMonitor()
    • getShapesGraph

      public ShapesGraph getShapesGraph()
      Specified by:
      getShapesGraph in interface NodeExpressionContext
    • getShapesGraphURI

      public URI getShapesGraphURI()
      Specified by:
      getShapesGraphURI in interface NodeExpressionContext
    • getShapesModel

      public org.apache.jena.rdf.model.Model getShapesModel()
    • setProgressMonitor

      public void setProgressMonitor(ProgressMonitor value)