Package lupos.optimizations.sparql2core_sparql

Examples of lupos.optimizations.sparql2core_sparql.SPARQLParserVisitorImplementationDumper


      }

      n = node.jjtGetChild(i); // get next child (which is sort condition)

      // parse node with the filter...
      final SPARQLParserVisitorImplementationDumper filterDumper = new SPARQLParserVisitorImplementationDumper();
      final String sortString = n.accept(filterDumper);

      try {
        final SortContainer sc = new SortContainer(this.prefix, desc,
            sortString); // create SortContainer
View Full Code Here


    return unionOp;
  }

  public Object visit(final ASTFilterConstraint node, final Object data) {
    final SPARQLParserVisitorImplementationDumper filterDumper = new SPARQLParserVisitorImplementationDumper();

    final String filterExpr = node.jjtGetChild(0).accept(filterDumper);

    final Filter filterOp = new Filter(this.prefix, filterExpr);
View Full Code Here

        newName = "?" + newName;
      }

      renameVariable(root, toBeRenamed.getName(), newName.substring(1));

      final SPARQLParserVisitorImplementationDumper spvid = new SPARQLParserVisitorImplementationDumper();
      return spvid.visit(root);

    } catch (final ParseException e) {
      System.out.println(e);
      e.printStackTrace();
      return "";
View Full Code Here

    return (this.np.equals(f.np));
  }

  @Override
  public String toString() {
    final SPARQLParserVisitorImplementationDumper filterDumper = new SPARQLParserVisitorImplementationDumper();

    return this.np.accept(filterDumper);
  }
View Full Code Here

    return this.np.accept(filterDumper);
  }

  @Override
  public String toString(final lupos.rdf.Prefix prefixInstance) {
    final SPARQLParserVisitorImplementationDumper filterDumper = new SPARQLParserVisitorImplementationDumperShort(
        prefixInstance);
    String result = this.np.accept(filterDumper);

    if (this.cardinality >= 0) {
      result += "\nCardinality: " + this.cardinality;
View Full Code Here

  /**
   * @return returns a String-representation of this comperator
   */
  @Override
  public String toString() {
    final SPARQLParserVisitorImplementationDumper filterDumper = new SPARQLParserVisitorImplementationDumper();

    return (String) filterDumper.visit((SimpleNode) node);
  }
View Full Code Here

    return "Approach "+this.getClass().getSimpleName();
  }

  @Override
  public String toString() {
    final SPARQLParserVisitorImplementationDumper dumper = new SPARQLParserVisitorImplementationDumper();
    return this.getApproachName()+"\n"+this.federatedQuery.accept(dumper);
  }
View Full Code Here

    return this.getApproachName()+"\n"+this.federatedQuery.accept(dumper);
  }

  @Override
  public String toString(final lupos.rdf.Prefix prefixInstance) {
    final SPARQLParserVisitorImplementationDumper dumper = new SPARQLParserVisitorImplementationDumperShort(prefixInstance);
    return this.getApproachName()+"\n"+this.federatedQuery.accept(dumper);
  }
View Full Code Here

  public String toStringQuery(final QueryResult queryResult) {
    return FederatedQuerySemiJoin.toStringQuery(this.surelyBoundVariablesInServiceCall, this.variablesInServiceCall, this.federatedQuery, queryResult);
  }

  public static String toStringQuery(final Set<Variable> surelyBoundVariablesInServiceCall, final Set<Variable> variablesInServiceCall, final Node federatedQuery, final QueryResult queryResult) {
    final SPARQLParserVisitorImplementationDumper dumper = new SPARQLParserVisitorImplementationDumper() ;
    String result = "SELECT * {" + federatedQuery.jjtGetChild(1).accept(dumper);
    Iterator<Bindings> bindingsIterator = queryResult.oneTimeIterator();
    if(bindingsIterator.hasNext()){
      result = result.substring(0, result.length()-2);
      result += "}Filter(";
View Full Code Here

    super(federatedQuery);
  }

  @Override
  public String toStringQuery(QueryResult bindings) {
    final SPARQLParserVisitorImplementationDumper dumper = new SPARQLParserVisitorImplementationDumper();
    return "SELECT * " + this.federatedQuery.jjtGetChild(1).accept(dumper);
  }
View Full Code Here

TOP

Related Classes of lupos.optimizations.sparql2core_sparql.SPARQLParserVisitorImplementationDumper

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.