Package cz.cvut.kbss.jopa.query.sparql
Class SparqlQueryFactory
java.lang.Object
cz.cvut.kbss.jopa.query.sparql.SparqlQueryFactory
Factory for creating SPARQL queries.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateNamedQuery(String name) Creates a query object representing a native SPARQL query.<T> TypedQueryImpl<T>createNamedQuery(String name, Class<T> resultClass) Creates a typed query object representing a native SPARQL query.createNativeQuery(String sparql) Creates query object representing a native SPARQL query.<T> TypedQueryImpl<T>createNativeQuery(String sparql, Class<T> resultClass) Creates aTypedQueryobject representing a native SPARQL query.createNativeQuery(String sparql, String resultSetMapping) Creates a query object representing a native SPARQL query.createQuery(String query) Creates query object representing a native SPARQL query.<T> TypedQueryImpl<T>createQuery(String query, Class<T> resultClass) Creates a typed query object representing a native SPARQL query.
- 
Constructor Details- 
SparqlQueryFactory
 
- 
- 
Method Details- 
createNativeQueryCreates query object representing a native SPARQL query.- Parameters:
- sparql- The query
- Returns:
- Query object
- Throws:
- NullPointerException- If- sparqlis- null
 
- 
createNativeQueryCreates aTypedQueryobject representing a native SPARQL query.- Parameters:
- sparql- The query
- resultClass- Type of the results
- Returns:
- Query object
- Throws:
- NullPointerException- If- sparqlor- resultClassis- null
 
- 
createNativeQueryCreates a query object representing a native SPARQL query.- Parameters:
- sparql- The query
- resultSetMapping- Name of the result set mapping to apply
- Returns:
- Query object
- Throws:
- NullPointerException- If- sparqlor- resultSetMappingis- null
 
- 
createQueryCreates query object representing a native SPARQL query.- Parameters:
- query- The query
- Returns:
- Query object
- Throws:
- NullPointerException- If- sparqlis- null
 
- 
createQueryCreates a typed query object representing a native SPARQL query.- Parameters:
- query- The query
- resultClass- Type of the results param URI of the ontology context against which the query will be evaluated
- Returns:
- Query object
- Throws:
- NullPointerException- If- sparqlor- resultClassis- null
 
- 
createNamedQueryCreates a query object representing a native SPARQL query.- Parameters:
- name- The name of the query defined in metadata
- Returns:
- Query object
- Throws:
- IllegalArgumentException- If a query has not been defined with the given name
 
- 
createNamedQueryCreates a typed query object representing a native SPARQL query.- Parameters:
- name- The name of the query defined in metadata
- resultClass- Type of the results param URI of the ontology context against which the query will be evaluated
- Returns:
- Query object
- Throws:
- IllegalArgumentException- If a query has not been defined with the given name
 
 
-