1 10 package com.hp.hpl.jena.reasoner.rulesys.builtins; 11 12 import com.hp.hpl.jena.reasoner.*; 13 import com.hp.hpl.jena.reasoner.rulesys.*; 14 import com.hp.hpl.jena.graph.*; 15 16 23 public class TableAll extends BaseBuiltin { 24 25 29 public String getName() { 30 return "tableAll"; 31 } 32 33 41 public void headAction(Node[] args, int length, RuleContext context) { 42 InfGraph infgraph = context.getGraph(); 43 if (infgraph instanceof FBRuleInfGraph) { 44 ((FBRuleInfGraph)infgraph).setTabled(Node.ANY); 45 } else if (infgraph instanceof LPBackwardRuleInfGraph) { 46 ((LPBackwardRuleInfGraph)infgraph).setTabled(Node.ANY); 47 } else { 48 } 53 } 54 } 55 56 | Popular Tags |