Class IteratingGraphQueryResult

  • All Implemented Interfaces:
    AutoCloseable, Iterable<org.eclipse.rdf4j.model.Statement>, Iterator<org.eclipse.rdf4j.model.Statement>, org.eclipse.rdf4j.common.iteration.CloseableIteration<org.eclipse.rdf4j.model.Statement>, GraphQueryResult, QueryResult<org.eclipse.rdf4j.model.Statement>

    public class IteratingGraphQueryResult
    extends org.eclipse.rdf4j.common.iteration.IterationWrapper<org.eclipse.rdf4j.model.Statement>
    implements GraphQueryResult
    An iterating implementation of the GraphQueryResult interface.
    Author:
    Arjohn Kampman, Jeen Broekstra
    • Constructor Detail

      • IteratingGraphQueryResult

        public IteratingGraphQueryResult​(Map<String,​String> namespaces,
                                         Iterable<? extends org.eclipse.rdf4j.model.Statement> statements)
      • IteratingGraphQueryResult

        public IteratingGraphQueryResult​(Map<String,​String> namespaces,
                                         Iterator<? extends org.eclipse.rdf4j.model.Statement> statementIter)
      • IteratingGraphQueryResult

        public IteratingGraphQueryResult​(Map<String,​String> namespaces,
                                         org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.model.Statement> statementIter)
    • Method Detail

      • getNamespaces

        public Map<String,​String> getNamespaces()
        Description copied from interface: GraphQueryResult
        Retrieves relevant namespaces from the query result.
        The contents of the Map may be modified after it is returned, as the initial return may be performed when the first RDF Statement is encountered.
        Specified by:
        getNamespaces in interface GraphQueryResult
        Returns:
        a Map<String, String> object containing (prefix, namespace) pairs.