Interface GraphQueryResult
- All Superinterfaces:
AutoCloseable, CloseableIteration<Statement>, Iterable<Statement>, Iterator<Statement>, QueryResult<Statement>
- All Known Implementing Classes:
BackgroundGraphResult, CachedGraphQueryResult, CleanerGraphQueryResult, IteratingGraphQueryResult, ReusableGraphQueryResult
A representation of a query result as a sequence of
Statement objects. Each query result consists of zero or
more Statements and additionaly carries information about relevant namespace declarations. Note: take care to always
close a GraphQueryResult after use to free any resources it keeps hold of.- Author:
- Jeen Broekstra
-
Field Summary
Fields inherited from interface CloseableIteration
EMPTY_STATEMENT_ITERATION -
Method Summary
Modifier and TypeMethodDescriptionRetrieves relevant namespaces from the query result.Methods inherited from interface CloseableIteration
closeMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Iterator
forEachRemaining, removeMethods inherited from interface QueryResult
hasNext, iterator, next, stream
-
Method Details
-
getNamespaces
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.- Returns:
- a Map<String, String> object containing (prefix, namespace) pairs.
- Throws:
QueryEvaluationException
-