public class RuleEngine extends AbstractEngine
dataset, monitor, shapesGraph, shapesGraphURI| Constructor and Description |
|---|
RuleEngine(org.apache.jena.query.Dataset dataset,
URI shapesGraphURI,
ShapesGraph shapesGraph,
org.apache.jena.rdf.model.Model inferences) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeAll() |
void |
executeShape(Shape shape,
String baseMessage,
org.apache.jena.rdf.model.RDFNode focusNode) |
void |
executeShapes(List<Shape> ruleShapes,
org.apache.jena.rdf.model.RDFNode focusNode)
Executes the rules attached to a given list of shapes, either for a dedicated
focus node or all target nodes of the shapes.
|
org.apache.jena.rdf.model.Model |
getInferencesModel() |
org.apache.jena.rdf.model.Model |
getShapesModel() |
void |
infer(org.apache.jena.graph.Triple triple,
Rule rule,
Shape shape) |
void |
setProgressMonitor(ProgressMonitor value) |
applyEntailments, checkCanceled, getDataset, getProgressMonitor, getShapesGraph, getShapesGraphURIpublic RuleEngine(org.apache.jena.query.Dataset dataset,
URI shapesGraphURI,
ShapesGraph shapesGraph,
org.apache.jena.rdf.model.Model inferences)
public void executeAll()
throws InterruptedException
InterruptedExceptionpublic void executeShapes(List<Shape> ruleShapes, org.apache.jena.rdf.model.RDFNode focusNode) throws InterruptedException
ruleShapes - the shapes to executefocusNode - the (optional) focus node or null for all target nodesInterruptedException - if the monitor has canceled thispublic void executeShape(Shape shape, String baseMessage, org.apache.jena.rdf.model.RDFNode focusNode) throws InterruptedException
InterruptedExceptionpublic org.apache.jena.rdf.model.Model getInferencesModel()
public org.apache.jena.rdf.model.Model getShapesModel()
getShapesModel in class AbstractEnginepublic void setProgressMonitor(ProgressMonitor value)
setProgressMonitor in class AbstractEngineCopyright © 2019 TopQuadrant, Inc.. All rights reserved.