public class QueryExecution extends Object
Modifier and Type | Field and Description |
---|---|
protected LabelPropertiesListCache |
labelPropertiesListCache
Properties designating a human-readable label formatted to a string for use in a SPARQL query, with caching.
|
Constructor and Description |
---|
QueryExecution(JDBCConnectionCredentials connectionCredentials,
Config globalConfig)
Creates a new instance of QueryExecution.
|
Modifier and Type | Method and Description |
---|---|
BasicQueryResult |
findKeyword(String keywords,
QueryConstraintSpec constraints,
AggregationSpec aggregationSpec)
Keyword search query.
|
BasicQueryResult |
findNamedGraph(String namedGraphURI,
QueryConstraintSpec constraints,
AggregationSpec aggregationSpec)
Named graph search query.
|
MetadataQueryResult |
findNamedGraphMetadata(String namedGraphURI)
Named graph provenance metadata query.
|
BasicQueryResult |
findURI(String uri,
QueryConstraintSpec constraints,
AggregationSpec aggregationSpec)
URI search query.
|
protected LabelPropertiesListCache labelPropertiesListCache
public QueryExecution(JDBCConnectionCredentials connectionCredentials, Config globalConfig)
connectionCredentials
- JDBC connection settings for the SPARQL endpoint that will be queriedglobalConfig
- container for QE & CR configuration loaded from the global configuration filepublic BasicQueryResult findKeyword(String keywords, QueryConstraintSpec constraints, AggregationSpec aggregationSpec) throws QueryExecutionException
keywords
- searched keywords (separated by whitespace)constraints
- constraints on triples returned in the resultaggregationSpec
- aggregation settings for conflict resolution; may contain properties as prefixed namesQueryExecutionException
- exceptionpublic BasicQueryResult findURI(String uri, QueryConstraintSpec constraints, AggregationSpec aggregationSpec) throws QueryExecutionException
uri
- searched URI; may be a prefixed nameconstraints
- constraints on triples returned in the resultaggregationSpec
- aggregation settings for conflict resolution; may contain properties as prefixed namesQueryExecutionException
- exceptionpublic BasicQueryResult findNamedGraph(String namedGraphURI, QueryConstraintSpec constraints, AggregationSpec aggregationSpec) throws QueryExecutionException
namedGraphURI
- URI of the requested named graph; may be a prefixed nameconstraints
- constraints on triples returned in the resultaggregationSpec
- aggregation settings for conflict resolution; may contain properties as prefixed namesQueryExecutionException
- exceptionpublic MetadataQueryResult findNamedGraphMetadata(String namedGraphURI) throws QueryExecutionException
namedGraphURI
- URI of a named graph; may be a prefixed nameQueryExecutionException
- exceptionCopyright © 2013. All Rights Reserved.