/** * Helper - returns the (singleton) value for the given property on the given * root node in the data graph. */ public static Node getPropValue(Node root, Node prop, RuleContext context) { return doGetPropValue(context.find(root, prop, null)); }
/** * Helper - returns the (singleton) value for the given property on the given * root node in the data graph. */ public static Node getPropValue(Node root, Node prop, RuleContext context) { return doGetPropValue(context.find(root, prop, null)); }
Node a0 = getArg(0, args, context); Node a1 = getArg(1, args, context); for (Iterator<Triple> ni = context.find(a0, a1, null); ni.hasNext(); ) { Node v = ni.next().getObject(); if (v.isLiteral()) {
Node a0 = getArg(0, args, context); Node a1 = getArg(1, args, context); for (Iterator<Triple> ni = context.find(a0, a1, null); ni.hasNext(); ) { Node v = ni.next().getObject(); if (v.isLiteral()) {