Package org.openrdf.query.algebra.evaluation.cursors

Examples of org.openrdf.query.algebra.evaluation.cursors.NamedContextCursor


    }
    else {
      stIter = new NativeStatementCursor(btreeIter, valueStore);
    }
    // Filter statements without context resource
    stIter = new NamedContextCursor(stIter);
    // Return the contexts of the statements
    ctxIter = new ConvertingCursor<Statement, Resource>(stIter) {

      @Override
      protected Resource convert(Statement st) {
View Full Code Here


      }

      stIter = tripleSource.getStatements((Resource)subjValue, (URI)predValue, objValue, contexts);

      if (contexts.length == 0 && sp.getScope() == Scope.NAMED_CONTEXTS) {
        stIter = new NamedContextCursor(stIter);
      }
    }
    catch (ClassCastException e) {
      // Invalid value type for subject, predicate and/or context
      return EmptyCursor.getInstance();
View Full Code Here

TOP

Related Classes of org.openrdf.query.algebra.evaluation.cursors.NamedContextCursor

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.