Class ParsedGraphQuery
java.lang.Object
org.eclipse.rdf4j.query.parser.ParsedOperation
org.eclipse.rdf4j.query.parser.ParsedQuery
org.eclipse.rdf4j.query.parser.ParsedGraphQuery
- Direct Known Subclasses:
ParsedDescribeQuery, ParsedGraphTemplate
A query forumalated in the OpenRDF query algebra that produces an RDF graph (a set of statements) as its result.
- Author:
- Arjohn Kampman
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new graph query.ParsedGraphQuery(String sourceString, TupleExpr tupleExpr) Creates a new graph query for the supplied tuple expression.Creates a new graph query.ParsedGraphQuery(Map<String, String> namespaces) Creates a new graph query.ParsedGraphQuery(TupleExpr tupleExpr) Creates a new graph query for the supplied tuple expression.ParsedGraphQuery(TupleExpr tupleExpr, Map<String, String> namespaces) Creates a new graph query. -
Method Summary
Methods inherited from class ParsedQuery
equals, getDataset, getTupleExpr, hashCode, setDataset, setTupleExpr, toStringModifier and TypeMethodDescriptionbooleanGets the tuple expression underlying this operation.inthashCode()voidsetDataset(Dataset dataset) voidsetTupleExpr(TupleExpr tupleExpr) Gets the tuple expression underlying this operation.toString()Methods inherited from class ParsedOperation
getSourceString
-
Constructor Details
-
ParsedGraphQuery
public ParsedGraphQuery()Creates a new graph query. To complete this query, a tuple expression needs to be supplied to it usingParsedQuery.setTupleExpr(TupleExpr). -
ParsedGraphQuery
Creates a new graph query. To complete this query, a tuple expression needs to be supplied to it usingParsedQuery.setTupleExpr(TupleExpr).- Parameters:
namespaces- A mapping of namespace prefixes to namespace names representing the namespaces that are used in the query.
-
ParsedGraphQuery
Creates a new graph query for the supplied tuple expression.- Parameters:
tupleExpr- A tuple expression representing the query, formulated in Sail Query Model objects.
-
ParsedGraphQuery
-
ParsedGraphQuery
Creates a new graph query.- Parameters:
tupleExpr- A tuple expression representing the query, formulated in Sail Query Model objects.namespaces- A mapping of namespace prefixes to namespace names representing the namespaces that are used in the query.
-
ParsedGraphQuery
Creates a new graph query.- Parameters:
tupleExpr- A tuple expression representing the query, formulated in Sail Query Model objects.namespaces- A mapping of namespace prefixes to namespace names representing the namespaces that are used in the query.
-
-
Method Details
-
getQueryNamespaces
-