public abstract class StoreBase extends ServiceBase implements Store, Service
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_ACTION |
protected com.hp.hpl.jena.query.Dataset |
dataset |
static String |
DELETE_ACTION |
static String |
INDEXER_PARAM |
protected List<Indexer> |
indexers |
protected boolean |
inWrite |
static String |
JENA_TEXT_PARAM |
static String |
LOG_PARAM |
protected String |
logDirectory |
static String |
MUTATOR_PARAM |
protected List<Mutator> |
mutators |
static String |
QUERY_ENDPOINT_PARAM |
static String |
UPDATE_ACTION |
config| Constructor and Description |
|---|
StoreBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Unlock the dataset, aborting the transaction.
|
void |
addGraph(String graphname,
InputStream input,
String mimeType) |
void |
addGraph(String graphname,
com.hp.hpl.jena.rdf.model.Model graph) |
void |
addIndexer(Indexer indexer) |
void |
addMutator(Mutator mutator) |
abstract com.hp.hpl.jena.query.Dataset |
asDataset() |
void |
deleteGraph(String graphname) |
protected abstract void |
doAddGraph(String graphname,
InputStream input,
String mimeType) |
protected abstract void |
doAddGraph(String graphname,
com.hp.hpl.jena.rdf.model.Model graph) |
protected abstract void |
doDeleteGraph(String graphname) |
protected void |
index(String graphname,
com.hp.hpl.jena.rdf.model.Model graph,
boolean update) |
protected void |
indexNamed(String graphname,
boolean update) |
void |
init(Map<String,String> config,
javax.servlet.ServletContext context) |
protected void |
installJenaText()
Install a jena-text dataset wrapper round this store.
|
protected void |
installQueryEndpoint(javax.servlet.ServletContext context)
Configure a Fuseki query servlet for this store.
|
void |
lock()
Lock the dataset for reading
|
void |
lockWrite()
Lock the dataset for write
|
protected void |
logAction(String action,
String graph,
com.hp.hpl.jena.rdf.model.Model data) |
protected void |
logNamed(String action,
String graphname) |
protected void |
mutate(com.hp.hpl.jena.rdf.model.Model graph) |
protected void |
mutateNamed(String graphname) |
void |
postInit() |
void |
unlock()
Unlock the dataset
|
void |
updateGraph(String graphname,
InputStream input,
String mimeType) |
void |
updateGraph(String graphname,
com.hp.hpl.jena.rdf.model.Model graph) |
getFileParam, getNamedService, getRequiredFileParam, getRequiredIntParam, getRequiredParam, postPostInitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUnionModelpostPostInitpublic static final String INDEXER_PARAM
public static final String MUTATOR_PARAM
public static final String JENA_TEXT_PARAM
public static final String LOG_PARAM
public static final String ADD_ACTION
public static final String UPDATE_ACTION
public static final String DELETE_ACTION
public static final String QUERY_ENDPOINT_PARAM
protected com.hp.hpl.jena.query.Dataset dataset
protected String logDirectory
protected boolean inWrite
public void init(Map<String,String> config, javax.servlet.ServletContext context)
init in interface Serviceinit in class ServiceBaseprotected void installJenaText()
protected void installQueryEndpoint(javax.servlet.ServletContext context)
public void postInit()
postInit in interface ServicepostInit in class ServiceBaseprotected abstract void doAddGraph(String graphname, com.hp.hpl.jena.rdf.model.Model graph)
protected abstract void doAddGraph(String graphname, InputStream input, String mimeType)
protected abstract void doDeleteGraph(String graphname)
public abstract com.hp.hpl.jena.query.Dataset asDataset()
public void addGraph(String graphname, com.hp.hpl.jena.rdf.model.Model graph)
public void updateGraph(String graphname, com.hp.hpl.jena.rdf.model.Model graph)
updateGraph in interface Storepublic void deleteGraph(String graphname)
deleteGraph in interface Storepublic void addGraph(String graphname, InputStream input, String mimeType)
public void updateGraph(String graphname, InputStream input, String mimeType)
updateGraph in interface Storepublic void addIndexer(Indexer indexer)
addIndexer in interface Storepublic void addMutator(Mutator mutator)
addMutator in interface Storepublic void lockWrite()
public void abort()
protected void mutate(com.hp.hpl.jena.rdf.model.Model graph)
protected void mutateNamed(String graphname)
protected void index(String graphname, com.hp.hpl.jena.rdf.model.Model graph, boolean update)
protected void indexNamed(String graphname, boolean update)
protected void logAction(String action, String graph, com.hp.hpl.jena.rdf.model.Model data)
Copyright © 2014. All rights reserved.