public abstract class SourceBase extends Object
Constructor and Description |
---|
SourceBase() |
SourceBase(com.hp.hpl.jena.rdf.model.Resource endpoint) |
Modifier and Type | Method and Description |
---|---|
abstract com.hp.hpl.jena.query.QueryExecution |
execute(com.hp.hpl.jena.query.Query query)
Each SourceBase subclass must provide
execute . |
com.hp.hpl.jena.rdf.model.Model |
executeConstruct(com.hp.hpl.jena.query.Query query)
query must be a CONSTRUCT query. |
com.hp.hpl.jena.rdf.model.Model |
executeDescribe(com.hp.hpl.jena.query.Query query)
query must be a DESCRIBE query. |
void |
executeSelect(com.hp.hpl.jena.query.Query q,
Source.ResultSetConsumer c)
q must be a SELECT query. |
abstract com.hp.hpl.jena.shared.Lock |
getLock()
Each SourceBase subclass must provide a Lock on demand.
|
TextSearchConfig |
getTextSearchConfig() |
public SourceBase()
public SourceBase(com.hp.hpl.jena.rdf.model.Resource endpoint)
public TextSearchConfig getTextSearchConfig()
public abstract com.hp.hpl.jena.query.QueryExecution execute(com.hp.hpl.jena.query.Query query)
execute
.public abstract com.hp.hpl.jena.shared.Lock getLock()
public com.hp.hpl.jena.rdf.model.Model executeDescribe(com.hp.hpl.jena.query.Query query)
query
must be a DESCRIBE query. Answer the model
which is the description.public com.hp.hpl.jena.rdf.model.Model executeConstruct(com.hp.hpl.jena.query.Query query)
query
must be a CONSTRUCT query. Answer the model
which is constructed.public void executeSelect(com.hp.hpl.jena.query.Query q, Source.ResultSetConsumer c)
q
must be a SELECT query. c.setup()
is called on the QueryExecution object to do any setup (ie,
LARQ index enabling). Then c.consume
is supplied with
the resultset from the select. When that returns, the execution
object is closed.Copyright © 2014. All Rights Reserved.