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