Package org.openrdf.result.impl

Examples of org.openrdf.result.impl.TupleResultImpl


    solution2.addBinding("a", new LiteralImpl("1", XMLSchema.INTEGER));
    solution2.addBinding("c", new LiteralImpl("Hello World!", "en"));

    List<? extends BindingSet> bindingSetList = Arrays.asList(solution1, solution2);

    TupleResultImpl result = new TupleResultImpl(bindingNames, bindingSetList);

    return result;
  }
View Full Code Here


  {
    bindingSetList.add(bindingSet);
  }

  public TupleResult getQueryResult() {
    return new TupleResultImpl(bindingNames, bindingSetList);
  }
View Full Code Here

      query.setArg(new Slice(query.getArg(), getOffset(), getLimit()));
    }

    Cursor<? extends BindingSet> bindingsIter = evaluate(query);

    return new TupleResultImpl(new ArrayList<String>(query.getBindingNames()), bindingsIter);
  }
View Full Code Here

    solution2.addBinding("a", new LiteralImpl("1", XMLSchema.INTEGER));
    solution2.addBinding("c", new LiteralImpl("Hello World!", "en"));

    List<? extends BindingSet> bindingSetList = Arrays.asList(solution1, solution2);

    return new TupleResultImpl(bindingNames, bindingSetList);
  }
View Full Code Here

    List<String> bindingNames = Collections.emptyList();

    BindingSet solution = EmptyBindingSet.getInstance();
    List<? extends BindingSet> bindingSets = Arrays.asList(solution);

    return new TupleResultImpl(bindingNames, bindingSets);
  }
View Full Code Here

      {
        return getSigner().sign(super.next());
      }
    };

    return new TupleResultImpl(result.getBindingNames(), signedBindings);
  }
View Full Code Here

      for (String id : getRepositoryManager().getRepositoryIDs()) {
        ids.add(new ListBindingSet(columnNames, new LiteralImpl(id)));
      }

      return new TupleResultImpl(columnNames, ids);
    }
    catch (StoreConfigException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

      }
      finally {
        iter.close();
      }

      return new TupleResultImpl(columnNames, namespaces);
    }
    catch (StoreException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

      for (String id : getRepositoryManager().getConfigTemplateManager().getIDs()) {
        ids.add(new ListBindingSet(columnNames, new LiteralImpl(id)));
      }

      return new TupleResultImpl(columnNames, ids);
    }
    catch (StoreConfigException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

    for (int i = 0; i < amount; i++) {
      BNode bnode = createBNode(vf, nodeID, i);
      bnodes.add(new ListBindingSet(columns, bnode));
    }

    return new TupleResultImpl(columns, bnodes);
  }
View Full Code Here

TOP

Related Classes of org.openrdf.result.impl.TupleResultImpl

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.