01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query;
07:
08: import java.util.Map;
09:
10: import org.openrdf.model.Statement;
11:
12: /**
13: * A representation of a query result as a sequence of {@link Statement}
14: * objects. Each query result consists of zero or more Statements and
15: * additionaly carries information about relevant namespace declarations. Note:
16: * take care to always close a GraphQueryResult after use to free any resources
17: * it keeps hold of.
18: *
19: * @author jeen
20: */
21: public interface GraphQueryResult extends QueryResult<Statement> {
22:
23: /**
24: * Retrieves relevant namespaces from the query result.
25: *
26: * @return a Map<String, String> object containing (prefix, namespace)
27: * pairs.
28: */
29: public Map<String, String> getNamespaces();
30: }
|