/** * Sets the argument of this unary tuple operator. * * @param arg * The (new) argument for this operator, must not be <tt>null</tt>. */ public void setArg(TupleExpr arg) { assert arg != null : "arg must not be null"; assert arg != this : "arg must not be itself"; arg.setParentNode(this); this.arg = arg; }
public void setPathExpression(TupleExpr pathExpression) { pathExpression.setParentNode(this); this.pathExpression = pathExpression; }
public void setSubQuery(TupleExpr subQuery) { assert subQuery != null : "subQuery must not be null"; subQuery.setParentNode(this); this.subQuery = subQuery; }
public void setSubQuery(TupleExpr subQuery) { assert subQuery != null : "subQuery must not be null"; subQuery.setParentNode(this); this.subQuery = subQuery; }
/** * Sets the left argument of this binary tuple operator. * * @param leftArg * The (new) left argument for this operator, must not be <tt>null</tt>. */ public void setLeftArg(TupleExpr leftArg) { assert leftArg != null : "leftArg must not be null"; assert leftArg != this : "leftArg must not be itself"; leftArg.setParentNode(this); this.leftArg = leftArg; }
/** * Sets the left argument of this binary tuple operator. * * @param leftArg * The (new) left argument for this operator, must not be <tt>null</tt>. */ public void setLeftArg(TupleExpr leftArg) { assert leftArg != null : "leftArg must not be null"; assert leftArg != this : "leftArg must not be itself"; leftArg.setParentNode(this); this.leftArg = leftArg; }
/** * Sets the right argument of this binary tuple operator. * * @param rightArg * The (new) right argument for this operator, must not be <tt>null</tt>. */ public void setRightArg(TupleExpr rightArg) { assert rightArg != null : "rightArg must not be null"; assert rightArg != this : "rightArg must not be itself"; rightArg.setParentNode(this); this.rightArg = rightArg; }
/** * Sets the argument of this unary tuple operator. * * @param arg * The (new) argument for this operator, must not be <tt>null</tt>. */ public void setArg(TupleExpr arg) { assert arg != null : "arg must not be null"; assert arg != this : "arg must not be itself"; arg.setParentNode(this); this.arg = arg; }
/** * Sets the right argument of this binary tuple operator. * * @param rightArg * The (new) right argument for this operator, must not be <tt>null</tt>. */ public void setRightArg(TupleExpr rightArg) { assert rightArg != null : "rightArg must not be null"; assert rightArg != this : "rightArg must not be itself"; rightArg.setParentNode(this); this.rightArg = rightArg; }
public void setPathExpression(TupleExpr pathExpression) { pathExpression.setParentNode(this); this.pathExpression = pathExpression; }
groupExpr.setParentNode(null); return groupExpr;
public void visitInsertData(Resource query) throws RDF4JException { SingletonSet stub = new SingletonSet(); tupleRoot = new QueryRoot(stub); tupleNode = stub; TupleExpr insertExpr; Value insert = TripleSources.singleValue(query, SP.DATA_PROPERTY, store); if (!(insert instanceof Resource)) { throw new MalformedSpinException( String.format("Value of %s is not a resource", SP.DATA_PROPERTY)); } visitInsert((Resource)insert); insertExpr = tupleNode; insertExpr.setParentNode(null); DataVisitor visitor = new DataVisitor(); insertExpr.visit(visitor); updateRoot = new InsertData(visitor.getData()); }
public void visitDeleteData(Resource query) throws RDF4JException { SingletonSet stub = new SingletonSet(); tupleRoot = new QueryRoot(stub); tupleNode = stub; TupleExpr deleteExpr; Value delete = TripleSources.singleValue(query, SP.DATA_PROPERTY, store); if (!(delete instanceof Resource)) { throw new MalformedSpinException( String.format("Value of %s is not a resource", SP.DATA_PROPERTY)); } visitDelete((Resource)delete); deleteExpr = tupleNode; deleteExpr.setParentNode(null); DataVisitor visitor = new DataVisitor(); deleteExpr.visit(visitor); updateRoot = new DeleteData(visitor.getData()); }
visitDelete((Resource)delete); deleteExpr = tupleNode; deleteExpr.setParentNode(null); visitInsert((Resource)insert); insertExpr = tupleNode; insertExpr.setParentNode(null);