Examples of evaluate()


Examples of org.openiaml.emf.properties.library.ReferencesCycles.evaluate()

   * This model should have exactly 6 cycles.
   */
  public void testBigInfiniteLoop2() {
    ReferencesCycles rc = new ReferencesCycles("references cycles", this);
    EObject model = loadModelDirectly("tests/BigInfiniteLoop-2.iaml");
    Object result = rc.evaluate(model);
    assertTrue("Result should be Number, is: " + result.getClass(), Number.class.isInstance(result));
   
    assertEquals(6, (Number) result);
  }

Examples of org.openquark.cal.internal.runtime.lecc.RTValue.evaluate()

    // Arguments
    RTValue pair = $rootNode.getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return f1S(RTValue.lastRef(pair.evaluate($ec), pair = null), $ec);
  }

  /**
   * f1L
   * This method implements the function logic of the CAL function Cal.Core.Prelude.fst

Examples of org.openrdf.query.BooleanQuery.evaluate()

  public boolean sparqlAsk(String queryString) throws ModelRuntimeException {
    this.assertModel();
    BooleanQuery booleanQuery;
    try {
      booleanQuery = this.connection.prepareBooleanQuery(QueryLanguage.SPARQL, queryString);
      boolean result = booleanQuery.evaluate();
      return result;
    } catch(OpenRDFException e) {
      throw new ModelRuntimeException(e);
    }
  }

Examples of org.openrdf.query.GraphQuery.evaluate()

    queryBuilder.append(" USING NAMESPACE foaf = <" + FOAF_NS + ">");

    GraphQuery query = testCon.prepareGraphQuery(QueryLanguage.SERQL, queryBuilder.toString());
    query.setBinding("name", nameBob);

    GraphResult result = query.evaluate();

    try {
      assertNotNull(result);
      assertTrue(result.hasNext());

Examples of org.openrdf.query.TupleQuery.evaluate()

    List<String> labels = new ArrayList<String>();
    RepositoryConnection con = repository.getConnection();
    try {
      assertTrue(con.size() > 0);
      TupleQuery qry = con.prepareTupleQuery(SPARQL, query);
      TupleResult result = qry.evaluate();
      try {
        while (result.hasNext()) {
          Value value = result.next().getValue(name);
          if (value == null) {
            labels.add(null);

Examples of org.openrdf.query.algebra.evaluation.EvaluationStrategy.evaluate()

    triples.flush();
    TupleExpr tupleExpr;
    EvaluationStrategy strategy;
    strategy = factory.createRdbmsEvaluation(query);
    tupleExpr = optimizer.optimize(query, bindings, strategy);
    return strategy.evaluate(tupleExpr, EmptyBindingSet.getInstance());
  }

  public void clearNamespaces()
    throws StoreException
  {

Examples of org.openrdf.query.algebra.evaluation.function.Function.evaluate()

    for (int i = 0, n = args.size(); i < n; i++) {
      argValues[i] = evaluate(args.get(i), bindings);
    }

    return function.evaluate(tripleSource.getValueFactory(), argValues);
  }

  public Value evaluate(And node, BindingSet bindings)
    throws ValueExprEvaluationException, StoreException
  {

Examples of org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate()

      optimizerList.optimize(query, bindings);

      logger.trace("Optimized query model:\n{}", query);

      Cursor<BindingSet> iter;
      iter = strategy.evaluate(query, EmptyBindingSet.getInstance());
      iter = new LockingCursor<BindingSet>(stLock, iter);
      return iter;
    }
    catch (StoreException e) {
      stLock.release();

Examples of org.openrdf.repository.http.HTTPBooleanQuery.evaluate()

      HTTPBooleanQuery query = (HTTPBooleanQuery)conn.prepareBooleanQuery(qInfo.getQueryLanguage(),
          qInfo.getQueryString());
      query.setIncludeInferred(qInfo.isIncludeInferred());
      try {
        queryResult = query.evaluate();
      }
      catch (HTTPQueryEvaluationException e) {
        if (e.isCausedByMalformedQueryException()) {
          throw e.getCauseAsMalformedQueryException();
        }

Examples of org.openrdf.repository.http.HTTPGraphQuery.evaluate()

      HTTPGraphQuery query = (HTTPGraphQuery)conn.prepareGraphQuery(qInfo.getQueryLanguage(),
          qInfo.getQueryString());
      query.setIncludeInferred(qInfo.isIncludeInferred());
      GraphQueryResult queryResult = null;
      try {
        queryResult = query.evaluate();
      }
      catch (HTTPQueryEvaluationException e) {
        if (e.isCausedByMalformedQueryException()) {
          throw e.getCauseAsMalformedQueryException();
        }
TOP
Copyright © 2018 www.massapi.com. 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.