@Override public Expr copy(Expr expr) { return new E_Str(expr) ; } }
@Override public Expr copy(Expr expr) { return new E_Str(expr) ; } }
protected static E_Equals toIRIEqualsFilter(Expr left, Expr right) { Node ln = toNode(left); com.hp.hpl.jena.sparql.expr.Expr le = ln.isVariable()? new ExprVar(ln.getName()) : new NodeValueNode(ln); Node rn = toNode(right); com.hp.hpl.jena.sparql.expr.Expr re = rn.isVariable()? new ExprVar(rn.getName()) : new NodeValueNode(rn); return new E_Equals(new E_Str(le), new E_Str(re)); }
protected static E_NotEquals toIRINotEqualsFilter(Expr left, Expr right) { Node ln = toNode(left); com.hp.hpl.jena.sparql.expr.Expr le = ln.isVariable()? new ExprVar(ln.getName()) : new NodeValueNode(ln); Node rn = toNode(right); com.hp.hpl.jena.sparql.expr.Expr re = rn.isVariable()? new ExprVar(rn.getName()) : new NodeValueNode(rn); return new E_NotEquals(new E_Str(le), new E_Str(re)); }
@Override public Expr make(ItemList list) { BuilderLib.checkLength(2, list, "str: wanted 1 arguments: got :"+numArgs(list)) ; Expr ex = buildExpr(list.get(1)) ; return new E_Str(ex) ; } };
public Expr make(ItemList list) { BuilderLib.checkLength(2, list, "str: wanted 1 arguments: got :"+list.size()) ; Expr ex = buildExpr(list.get(1)) ; return new E_Str(ex) ; } };
private E_LogicalOr createGraphConditions(NodeValue graphExpr) { return new E_LogicalOr( new E_StrStartsWith( new E_Str( PublishSubscribeConstants.SUBSUBSCRIPTION_GRAPH_EXPR_VAR), graphExpr), new E_LogicalOr( new E_Equals( PublishSubscribeConstants.SUBSUBSCRIPTION_GRAPH_EXPR_VAR, PublishSubscribeConstants.SUBSUBSCRIPTION_VARIABLE_EXPR), // the following condition is here for finding // subscriptions which have been rewritten by // using the graph value (but not the meta graph value) // associated to the quadruple which is matching the // subscription new E_Equals( PublishSubscribeConstants.SUBSUBSCRIPTION_GRAPH_EXPR_VAR, graphExpr))); }
private E_LogicalOr createGraphConditions(NodeValue graphExpr) { return new E_LogicalOr( new E_StrStartsWith( new E_Str( PublishSubscribeConstants.SUBSUBSCRIPTION_GRAPH_EXPR_VAR), graphExpr), new E_LogicalOr( new E_Equals( PublishSubscribeConstants.SUBSUBSCRIPTION_GRAPH_EXPR_VAR, PublishSubscribeConstants.SUBSUBSCRIPTION_VARIABLE_EXPR), // the following condition is here for finding // subscriptions which have been rewritten by // using the graph value (but not the meta graph value) // associated to the quadruple which is matching the // subscription new E_Equals( PublishSubscribeConstants.SUBSUBSCRIPTION_GRAPH_EXPR_VAR, graphExpr))); }
E_Str str = new E_Str(new ExprVar("RULEID_"+value)); NodeValue empty = NodeValueNode.makeNodeString(""); E_Conditional conditional = new E_Conditional(condition, str, empty);
elementGroup.addElementFilter(new ElementFilter(new E_Regex(new E_Str(new ExprVar(variable.asNode())), constraint , "")));
e = new E_Str( expression108 );
expr = Expression(); jj_consume_token(RPAREN); {if (true) return new E_Str(expr) ;} break; case LANG:
expr = Expression(); jj_consume_token(RPAREN); {if (true) return new E_Str(expr) ;} break; case LANG:
expr = Expression(); jj_consume_token(RPAREN); {if (true) return new E_Str(expr) ;} break; case LANG:
expr = Expression(); jj_consume_token(RPAREN); {if (true) return new E_Str(expr) ;} break; case LANG:
expr = Expression(); jj_consume_token(RPAREN); {if (true) return new E_Str(expr) ;} break; case LANG:
expr = Expression(); jj_consume_token(RPAREN); {if (true) return new E_Str(expr) ;} break; case LANG: