Package org.topbraid.shacl.rules
Class SPARQLRule
- java.lang.Object
-
- org.topbraid.shacl.rules.AbstractRule
-
- org.topbraid.shacl.rules.SPARQLRule
-
- All Implemented Interfaces:
Rule
public class SPARQLRule extends AbstractRule
-
-
Constructor Summary
Constructors Constructor Description SPARQLRule(org.apache.jena.rdf.model.Resource rule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(RuleEngine ruleEngine, List<org.apache.jena.rdf.model.RDFNode> focusNodes, Shape shape)Executes this rule, callingruleEngine.infer()to add triples.org.apache.jena.query.QuerygetQuery()StringtoString()-
Methods inherited from class org.topbraid.shacl.rules.AbstractRule
getContextNode, getLabelStart, getOrder, getResource
-
-
-
-
Method Detail
-
execute
public void execute(RuleEngine ruleEngine, List<org.apache.jena.rdf.model.RDFNode> focusNodes, Shape shape)
Description copied from interface:RuleExecutes this rule, callingruleEngine.infer()to add triples.- Parameters:
ruleEngine- the RuleEngine to operate onfocusNodes- the list of focus nodes for this executionshape- the context shape
-
getQuery
public org.apache.jena.query.Query getQuery()
-
-