Package org.topbraid.shacl.engine
Class AbstractEngine
java.lang.Object
org.topbraid.shacl.engine.AbstractEngine
- All Implemented Interfaces:
NodeExpressionContext
- Direct Known Subclasses:
RuleEngine,ValidationEngine
Base class for validation and rule engines.
- Author:
- Holger Knublauch
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.jena.query.Datasetprotected ProgressMonitorprotected ShapesGraphprotected URI -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEngine(org.apache.jena.query.Dataset dataset, ShapesGraph shapesGraph, URI shapesGraphURI) -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsures that the data graph includes any entailed triples inferred by the regime specified using sh:entailment in the shapes graph.voidorg.apache.jena.query.Datasetorg.apache.jena.rdf.model.Modelvoid
-
Field Details
-
dataset
protected org.apache.jena.query.Dataset dataset -
monitor
-
shapesGraph
-
shapesGraphURI
-
-
Constructor Details
-
AbstractEngine
protected AbstractEngine(org.apache.jena.query.Dataset dataset, ShapesGraph shapesGraph, URI shapesGraphURI)
-
-
Method Details
-
applyEntailments
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:
getDatasetin interfaceNodeExpressionContext
-
getProgressMonitor
-
getShapesGraph
- Specified by:
getShapesGraphin interfaceNodeExpressionContext
-
getShapesGraphURI
- Specified by:
getShapesGraphURIin interfaceNodeExpressionContext
-
getShapesModel
public org.apache.jena.rdf.model.Model getShapesModel() -
setProgressMonitor
-