Package com.stardog.stark.query
Interface QueryFactory
public interface QueryFactory
Interface for creating queries
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
- Implementation Notes:
- The factory is _not required_ to parse the query when creating it. That can be deferred until execution.
All of the methods can potentially throw a
parse errorbut the exception is only thrown when queries are parse at creation time. Parsing could be done lazily prior to execution in which case the creation error would be reported as part of the execution process
-
Method Summary
Modifier and TypeMethodDescriptiondefault BooleanQueryCreate the boolean query with the default base ("http://api.stardog.com/") for parsing.Create a new boolean query.default GraphQueryCreate the graph query with the default base ("http://api.stardog.com/") for parsing.Create a new graph query.default SelectQueryCreate the select query with the default base ("http://api.stardog.com/") for parsing.Create a new select query.default UpdateQueryCreate the update query with the default base ("http://api.stardog.com/") for parsing.Create a new update query.
-
Method Details
-
select
Create the select query with the default base ("http://api.stardog.com/") for parsing.- Parameters:
theQuery- the query- Returns:
- the query
- Throws:
MalformedQuery- if this query is not syntactically valid
-
select
Create a new select query.- Parameters:
theQuery- the querytheBase- the base IRI for parsing- Returns:
- the query
- Throws:
MalformedQuery- if this query is not syntactically valid
-
graph
Create the graph query with the default base ("http://api.stardog.com/") for parsing.- Parameters:
theQuery- the query- Returns:
- the query
- Throws:
MalformedQuery- if this query is not syntactically valid
-
graph
Create a new graph query.- Parameters:
theQuery- the querytheBase- the base IRI for parsing- Returns:
- the query
- Throws:
MalformedQuery- if this query is not syntactically valid
-
ask
Create the boolean query with the default base ("http://api.stardog.com/") for parsing.- Parameters:
theQuery- the query- Returns:
- the query
- Throws:
MalformedQuery- if this query is not syntactically valid
-
ask
Create a new boolean query.- Parameters:
theQuery- the querytheBase- the base IRI for parsing- Returns:
- the query
- Throws:
MalformedQuery- if this query is not syntactically valid
-
update
Create the update query with the default base ("http://api.stardog.com/") for parsing.- Parameters:
theQuery- the query- Returns:
- the query
- Throws:
MalformedQuery- if this query is not syntactically valid
-
update
Create a new update query.- Parameters:
theQuery- the querytheBase- the base IRI for parsing- Returns:
- the query
- Throws:
MalformedQuery- if this query is not syntactically valid
-