1 10 package com.hp.hpl.jena.reasoner.rulesys.builtins; 11 12 import com.hp.hpl.jena.reasoner.rulesys.*; 13 import com.hp.hpl.jena.graph.*; 14 15 21 public class Bound extends BaseBuiltin { 22 23 27 public String getName() { 28 return "bound"; 29 } 30 31 41 public boolean bodyCall(Node[] args, int length, RuleContext context) { 42 BindingEnvironment env = context.getEnv(); 43 for (int i = 0; i < length; i++) { 44 if (getArg(i, args, context) instanceof Node_RuleVariable) return false; 45 } 46 return true; 47 } 48 49 } 50 51 52 53 | Popular Tags |