org.eclipse.rdf4j.query.algebra.Union.setLeftArg()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中org.eclipse.rdf4j.query.algebra.Union.setLeftArg()方法的一些代码示例,展示了Union.setLeftArg()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Union.setLeftArg()方法的具体详情如下:
包路径:org.eclipse.rdf4j.query.algebra.Union
类名称:Union
方法名:setLeftArg

Union.setLeftArg介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-sail-spin

objList = Collections.<ValueExpr> singletonList(sp.getObjectVar());
union.setLeftArg(stmts);

代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-sail-spin

objList = Collections.<ValueExpr> singletonList(sp.getObjectVar());
union.setLeftArg(stmts);

代码示例来源:origin: apache/incubator-rya

Var subjVar = sp.getSubjectVar();
Union union = new InferUnion();
union.setLeftArg(sp);
union.setRightArg(new StatementPattern(objVar, predVar, subjVar, cntxtVar));
node.replaceWith(union);

代码示例来源:origin: apache/incubator-rya

Var subjVar = sp.getSubjectVar();
Union union = new InferUnion();
union.setLeftArg(sp);
union.setRightArg(new StatementPattern(objVar, new Var(predVar.getName(), invPropIri), subjVar, cntxtVar));
node.replaceWith(union);

代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-queryalgebra-evaluation

@Override
  public void meet(Union union) {
    super.meet(union);
    TupleExpr leftArg = union.getLeftArg();
    TupleExpr rightArg = union.getRightArg();
    if (leftArg instanceof Join && rightArg instanceof Join) {
      Join leftJoinArg = (Join)leftArg;
      Join rightJoin = (Join)rightArg;
      if (leftJoinArg.getLeftArg().equals(rightJoin.getLeftArg())) {
        // factor out the left-most join argument
        Join newJoin = new Join();
        union.replaceWith(newJoin);
        newJoin.setLeftArg(leftJoinArg.getLeftArg());
        newJoin.setRightArg(union);
        union.setLeftArg(leftJoinArg.getRightArg());
        union.setRightArg(rightJoin.getRightArg());
        union.visit(this);
      }
    }
  }
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation

@Override
  public void meet(Union union) {
    super.meet(union);
    TupleExpr leftArg = union.getLeftArg();
    TupleExpr rightArg = union.getRightArg();
    if (leftArg instanceof Join && rightArg instanceof Join) {
      Join leftJoinArg = (Join)leftArg;
      Join rightJoin = (Join)rightArg;
      if (leftJoinArg.getLeftArg().equals(rightJoin.getLeftArg())) {
        // factor out the left-most join argument
        Join newJoin = new Join();
        union.replaceWith(newJoin);
        newJoin.setLeftArg(leftJoinArg.getLeftArg());
        newJoin.setRightArg(union);
        union.setLeftArg(leftJoinArg.getRightArg());
        union.setRightArg(rightJoin.getRightArg());
        union.visit(this);
      }
    }
  }
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryparser-sparql

pathAltNode.jjtGetChild(i).jjtAccept(this, data);
TupleExpr arg = graphPattern.buildTupleExpr();
currentUnion.setLeftArg(arg);
if (i == altCount - 2) { // second-to-last item
  graphPattern = new GraphPattern(parentGP);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

pathAltNode.jjtGetChild(i).jjtAccept(this, data);
TupleExpr arg = graphPattern.buildTupleExpr();
currentUnion.setLeftArg(arg);
if (i == altCount - 2) { // second-to-last item
  graphPattern = new GraphPattern(parentGP);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

currentUnion.setLeftArg(path);
if (length == upperBound - 1) {
  path = createPath(scope, subjVar, te, endVar, contextVar, length + 1);

代码示例来源:origin: eclipse/rdf4j

currentUnion.setLeftArg(path);
if (length == upperBound - 1) {
  path = createPath(scope, subjVar, te, endVar, contextVar, length + 1);

代码示例来源:origin: eclipse/rdf4j

pathAltNode.jjtGetChild(i).jjtAccept(this, data);
TupleExpr arg = graphPattern.buildTupleExpr();
currentUnion.setLeftArg(arg);
if (i == altCount - 2) { // second-to-last item
  graphPattern = new GraphPattern(parentGP);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryparser-sparql

currentUnion.setLeftArg(path);
if (length == upperBound - 1) {
  path = createPath(scope, subjVar, te, endVar, contextVar, length + 1);

相关文章

微信公众号

最新文章

更多