org.jrdf.sparql.builder
Class SparqlQueryBuilder
java.lang.Object
org.jrdf.sparql.builder.SparqlQueryBuilder
- All Implemented Interfaces:
- QueryBuilder
public final class SparqlQueryBuilder
- extends Object
- implements QueryBuilder
Builds SPARQL queries in String
form into Query
objects.
- Version:
- $Id: SparqlQueryBuilder.java 598 2006-06-20 01:47:56Z newmana $
- Author:
- Tom Adams
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SparqlQueryBuilder
public SparqlQueryBuilder(SparqlParser parser)
buildQuery
public Query buildQuery(Graph graph,
String queryText)
throws InvalidQuerySyntaxException
- Builds a query in
String
form into a Query
.
- Specified by:
buildQuery
in interface QueryBuilder
queryText
- The query in String
form of the query.
- Returns:
- The
queryText
in Query
form.
- Throws:
InvalidQuerySyntaxException
- If the syntax of the query
is incorrect.