public class LocalSource extends SourceBase implements Source
Source.ResultSetConsumer, Source.Util
Modifier and Type | Field and Description |
---|---|
protected String |
endpoint |
static String |
PREFIX |
protected com.hp.hpl.jena.rdf.model.Model |
source |
protected com.hp.hpl.jena.query.Dataset |
sourceDataset |
Constructor and Description |
---|
LocalSource(com.hp.hpl.jena.util.FileManager fm,
com.hp.hpl.jena.rdf.model.Resource endpoint) |
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(com.hp.hpl.jena.rdf.model.Resource meta)
Add metadata describing this source to a metdata model
|
com.hp.hpl.jena.query.QueryExecution |
execute(com.hp.hpl.jena.query.Query query)
Each SourceBase subclass must provide
execute . |
com.hp.hpl.jena.shared.Lock |
getLock()
Each SourceBase subclass must provide a Lock on demand.
|
boolean |
supportsNestedSelect()
Local sources are held in in-memory models and support nested selects
via ARQ.
|
String |
toString()
Return a name for this source, used for error reporting
|
executeConstruct, executeDescribe, executeSelect, getTextSearchConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
executeConstruct, executeDescribe, executeSelect, getTextSearchConfig
public static final String PREFIX
protected final com.hp.hpl.jena.rdf.model.Model source
protected final String endpoint
protected final com.hp.hpl.jena.query.Dataset sourceDataset
public LocalSource(com.hp.hpl.jena.util.FileManager fm, com.hp.hpl.jena.rdf.model.Resource endpoint)
public com.hp.hpl.jena.query.QueryExecution execute(com.hp.hpl.jena.query.Query query)
SourceBase
execute
.execute
in class SourceBase
public com.hp.hpl.jena.shared.Lock getLock()
SourceBase
getLock
in class SourceBase
public String toString()
Source
public void addMetadata(com.hp.hpl.jena.rdf.model.Resource meta)
addMetadata
in interface Source
public boolean supportsNestedSelect()
supportsNestedSelect
in interface Source
Copyright © 2014. All Rights Reserved.