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

x33g5p2x  于2022-01-19 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(176)

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

Extension.setArg介绍

暂无

代码示例

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

@Override
public TupleExpr visit(ASTDescribe node, Object data)
  throws VisitorException
{
  TupleExpr tupleExpr = (TupleExpr)data;
  if (tupleExpr == null) {
    tupleExpr = new SingletonSet();
  }
  Extension e = new Extension();
  ProjectionElemList projectionElements = new ProjectionElemList();
  for (int i = 0; i < node.jjtGetNumChildren(); i++) {
    ValueExpr resource = (ValueExpr)node.jjtGetChild(i).jjtAccept(this, null);
    if (resource instanceof Var) {
      projectionElements.addElement(new ProjectionElem(((Var)resource).getName()));
    }
    else {
      String alias = "_describe_" + UUID.randomUUID().toString().replaceAll("-", "_");
      ExtensionElem elem = new ExtensionElem(resource, alias);
      e.addElement(elem);
      projectionElements.addElement(new ProjectionElem(alias));
    }
  }
  if (!e.getElements().isEmpty()) {
    e.setArg(tupleExpr);
    tupleExpr = e;
  }
  Projection p = new Projection(tupleExpr, projectionElements);
  return new DescribeOperator(p);
}

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

@Override
public TupleExpr visit(ASTDescribe node, Object data)
  throws VisitorException
{
  TupleExpr tupleExpr = (TupleExpr)data;
  if (tupleExpr == null) {
    tupleExpr = new SingletonSet();
  }
  Extension e = new Extension();
  ProjectionElemList projectionElements = new ProjectionElemList();
  for (int i = 0; i < node.jjtGetNumChildren(); i++) {
    ValueExpr resource = (ValueExpr)node.jjtGetChild(i).jjtAccept(this, null);
    if (resource instanceof Var) {
      projectionElements.addElement(new ProjectionElem(((Var)resource).getName()));
    }
    else {
      String alias = "_describe_" + UUID.randomUUID().toString().replaceAll("-", "_");
      ExtensionElem elem = new ExtensionElem(resource, alias);
      e.addElement(elem);
      projectionElements.addElement(new ProjectionElem(alias));
    }
  }
  if (!e.getElements().isEmpty()) {
    e.setArg(tupleExpr);
    tupleExpr = e;
  }
  Projection p = new Projection(tupleExpr, projectionElements);
  return new DescribeOperator(p);
}

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

@Override
public TupleExpr visit(ASTDescribe node, Object data)
  throws VisitorException
{
  TupleExpr tupleExpr = (TupleExpr)data;
  if (tupleExpr == null) {
    tupleExpr = new SingletonSet();
  }
  Extension e = new Extension();
  ProjectionElemList projectionElements = new ProjectionElemList();
  for (int i = 0; i < node.jjtGetNumChildren(); i++) {
    ValueExpr resource = (ValueExpr)node.jjtGetChild(i).jjtAccept(this, null);
    if (resource instanceof Var) {
      projectionElements.addElement(new ProjectionElem(((Var)resource).getName()));
    }
    else {
      String alias = "_describe_" + UUID.randomUUID().toString().replaceAll("-", "_");
      ExtensionElem elem = new ExtensionElem(resource, alias);
      e.addElement(elem);
      projectionElements.addElement(new ProjectionElem(alias));
    }
  }
  if (!e.getElements().isEmpty()) {
    e.setArg(tupleExpr);
    tupleExpr = e;
  }
  Projection p = new Projection(tupleExpr, projectionElements);
  return new DescribeOperator(p);
}

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

extension.setArg(((Filter)arg).getArg());
((Filter)arg).setArg(extension);
extension.setArg(arg);
result = extension;

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

extension.setArg(((Filter)arg).getArg());
((Filter)arg).setArg(extension);
extension.setArg(arg);
result = extension;

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

extension.setArg(((Filter)arg).getArg());
((Filter)arg).setArg(extension);
extension.setArg(arg);
result = extension;

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

extension.setArg(result);
result = extension;

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

extension.setArg(tupleExpr);
tupleExpr = extension;

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

extension.setArg(tupleExpr);
tupleExpr = extension;

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

extension.setArg(arg);
group.setArg(extension);

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

extension.setArg(arg);
group.setArg(extension);

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

extension.setArg(result);
result = extension;

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

extension.setArg(result);
result = extension;

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

extension.setArg(tupleExpr);
tupleExpr = extension;

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

extension.setArg(arg);
group.setArg(extension);

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

extension.setArg(group);
      anonymousExtension.addElement(new ExtensionElem(operator, anonVar.getName()));
      anonymousExtension.setArg(result);
      result = anonymousExtension;
      group.addGroupElement(new GroupElem(anonVar.getName(), operator));
extension.setArg(arg);
orderClause.setArg(extension);
result = orderClause;
extension.setArg(result);
result = extension;

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

extension.setArg(group);
      anonymousExtension.addElement(new ExtensionElem(operator, anonVar.getName()));
      anonymousExtension.setArg(result);
      result = anonymousExtension;
      group.addGroupElement(new GroupElem(anonVar.getName(), operator));
extension.setArg(arg);
orderClause.setArg(extension);
result = orderClause;
extension.setArg(result);
result = extension;

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

extension.setArg(group);
tupleExpr = new Filter(extension, expr);

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

extension.setArg(group);
tupleExpr = new Filter(extension, expr);

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

extension.setArg(group);
tupleExpr = new Filter(extension, expr);

相关文章