Package org.openrdf.query.algebra

Examples of org.openrdf.query.algebra.ExtensionElem


          // only generate bnodes in case of an explicit constructor
          valueExpr = new BNodeGenerator();
        }

        if (valueExpr != null) {
          extElemMap.put(var, new ExtensionElem(valueExpr, var.getName()));
        }
      }
    }

    if (!extElemMap.isEmpty()) {
View Full Code Here


      ValueExpr valueExpr = (ValueExpr)projElemNode.getValueExpr().jjtAccept(this, null);

      String alias = projElemNode.getAlias();
      if (alias != null) {
        // aliased projection element
        extension.addElement(new ExtensionElem(valueExpr, alias));
        projElemList.addElement(new ProjectionElem(alias));
      }
      else if (valueExpr instanceof Var) {
        // unaliased variable
        Var projVar = (Var)valueExpr;
View Full Code Here

      // TODO: skip this step if old variable name is not used
      // Replace SameTerm-filter with an Extension, the old variable name
      // might still be relevant to nodes higher in the tree
      Extension extension = new Extension(filter.getArg());
      extension.addElement(new ExtensionElem(new Var(newVar.getName()), oldVar.getName()));
      filter.replaceWith(extension);
    }
View Full Code Here

        }
        else {
          valueExpr = new BNodeGenerator();
        }

        extElemMap.put(var, new ExtensionElem(valueExpr, var.getName()));
      }
    }

    if (!extElemMap.isEmpty()) {
      result = new Extension(result, extElemMap.values());
View Full Code Here

          // only generate bnodes in case of an explicit constructor
          valueExpr = new BNodeGenerator();
        }

        if (valueExpr != null) {
          extElemMap.put(var, new ExtensionElem(valueExpr, var.getName()));
        }
      }
    }

    if (!extElemMap.isEmpty()) {
View Full Code Here

      ValueExpr valueExpr = (ValueExpr)projElemNode.getValueExpr().jjtAccept(this, null);

      String alias = projElemNode.getAlias();
      if (alias != null) {
        // aliased projection element
        extension.addElement(new ExtensionElem(valueExpr, alias));
        projElemList.addElement(new ProjectionElem(alias));
      }
      else if (valueExpr instanceof Var) {
        // unaliased variable
        Var projVar = (Var)valueExpr;
View Full Code Here

      filter.getArg().visit(new VarRenamer(oldVar.getName(), newVar.getName()));

      // Replace SameTerm-filter with an Extension, the old variable name
      // might still be relevant to nodes higher in the tree
      Extension extension = new Extension(filter.getArg());
      extension.addElement(new ExtensionElem(new Var(newVar.getName()), oldVar.getName()));
      filter.replaceWith(extension);
    }
View Full Code Here

        }
        else {
          valueExpr = new BNodeGenerator();
        }

        extElemMap.put(var, new ExtensionElem(valueExpr, var.getName()));
      }
    }

    if (!extElemMap.isEmpty()) {
      result = new Extension(result, extElemMap.values());
View Full Code Here

TOP

Related Classes of org.openrdf.query.algebra.ExtensionElem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.