public class VirtDataset extends VirtGraph implements com.hp.hpl.jena.query.Dataset
Modifier and Type | Class and Description |
---|---|
class |
VirtDataset.VirtDataSetGraph |
Constructor and Description |
---|
VirtDataset() |
VirtDataset(javax.sql.ConnectionPoolDataSource _ds) |
VirtDataset(javax.sql.DataSource _ds) |
VirtDataset(java.lang.String _graphName,
javax.sql.ConnectionPoolDataSource _ds) |
VirtDataset(java.lang.String _graphName,
javax.sql.DataSource _ds) |
VirtDataset(java.lang.String url_hostlist,
java.lang.String user,
java.lang.String password) |
VirtDataset(java.lang.String _graphName,
javax.sql.XADataSource _ds) |
VirtDataset(javax.sql.XADataSource _ds) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Abort a transaction - finish the transaction and undo any changes (if a "write" transaction)
|
void |
addNamedModel(java.lang.String name,
com.hp.hpl.jena.rdf.model.Model model)
Set a named graph.
|
void |
addNamedModel(java.lang.String name,
com.hp.hpl.jena.rdf.model.Model model,
boolean checkExists)
Set a named graph.
|
com.hp.hpl.jena.sparql.core.DatasetGraph |
asDatasetGraph()
Get the dataset in graph form
|
void |
begin(com.hp.hpl.jena.query.ReadWrite readWrite)
Start either a READ or WRITE transaction
|
void |
commit()
Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)
|
boolean |
containsNamedModel(java.lang.String name)
Does the dataset contain a model with the name supplied?
|
void |
end()
Finish the transaction - if a write transaction and commit() has not been called, then abort
|
com.hp.hpl.jena.sparql.util.Context |
getContext() |
com.hp.hpl.jena.rdf.model.Model |
getDefaultModel()
Get the default graph as a Jena Model
|
com.hp.hpl.jena.shared.Lock |
getLock()
Get the lock for this dataset
|
com.hp.hpl.jena.rdf.model.Model |
getNamedModel(java.lang.String name)
Get a graph by name as a Jena Model
|
boolean |
isInTransaction()
Say whether a transaction is active
|
java.util.Iterator<java.lang.String> |
listNames()
List the names
|
void |
removeNamedModel(java.lang.String name)
Remove a named graph.
|
void |
replaceNamedModel(java.lang.String name,
com.hp.hpl.jena.rdf.model.Model model)
Change a named graph for another uisng the same name
|
void |
setDefaultModel(com.hp.hpl.jena.rdf.model.Model model)
Set the background graph.
|
boolean |
supportsTransactions() |
boolean |
supportsXATransactions() |
clear, clear, close, createRuleSet, getBulkUpdateHandler, getConnection, getCount, getDataSource, getFetchSize, getGraphName, getGraphPassword, getGraphUrl, getGraphUser, getPrefixMapping, getQueryTimeout, getReadFromAllGraphs, getRuleSet, getSameAs, getTransactionHandler, getXAResource, graphBaseFind, Node2Str, Object2Node, performAdd, performDelete, read, reifierSize, reifierTriples, remove, remove, removeRuleSet, setFetchSize, setQueryTimeout, setReadFromAllGraphs, setRuleSet, setSameAs
add, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getCapabilities, getEventManager, getStatisticsHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toString
public VirtDataset()
public VirtDataset(java.lang.String _graphName, javax.sql.DataSource _ds)
public VirtDataset(javax.sql.DataSource _ds)
public VirtDataset(java.lang.String _graphName, javax.sql.ConnectionPoolDataSource _ds)
public VirtDataset(javax.sql.ConnectionPoolDataSource _ds)
public VirtDataset(java.lang.String _graphName, javax.sql.XADataSource _ds)
public VirtDataset(javax.sql.XADataSource _ds)
public VirtDataset(java.lang.String url_hostlist, java.lang.String user, java.lang.String password)
public com.hp.hpl.jena.rdf.model.Model getDefaultModel()
getDefaultModel
in interface com.hp.hpl.jena.query.Dataset
public void setDefaultModel(com.hp.hpl.jena.rdf.model.Model model)
setDefaultModel
in interface com.hp.hpl.jena.query.Dataset
public com.hp.hpl.jena.rdf.model.Model getNamedModel(java.lang.String name)
getNamedModel
in interface com.hp.hpl.jena.query.Dataset
public boolean containsNamedModel(java.lang.String name)
containsNamedModel
in interface com.hp.hpl.jena.query.Dataset
public void addNamedModel(java.lang.String name, com.hp.hpl.jena.rdf.model.Model model, boolean checkExists) throws com.hp.hpl.jena.query.LabelExistsException
com.hp.hpl.jena.query.LabelExistsException
public void addNamedModel(java.lang.String name, com.hp.hpl.jena.rdf.model.Model model) throws com.hp.hpl.jena.query.LabelExistsException
addNamedModel
in interface com.hp.hpl.jena.query.Dataset
com.hp.hpl.jena.query.LabelExistsException
public void removeNamedModel(java.lang.String name)
removeNamedModel
in interface com.hp.hpl.jena.query.Dataset
public void replaceNamedModel(java.lang.String name, com.hp.hpl.jena.rdf.model.Model model)
replaceNamedModel
in interface com.hp.hpl.jena.query.Dataset
public java.util.Iterator<java.lang.String> listNames()
listNames
in interface com.hp.hpl.jena.query.Dataset
public com.hp.hpl.jena.shared.Lock getLock()
getLock
in interface com.hp.hpl.jena.query.Dataset
public com.hp.hpl.jena.sparql.util.Context getContext()
getContext
in interface com.hp.hpl.jena.query.Dataset
public boolean supportsTransactions()
supportsTransactions
in interface com.hp.hpl.jena.query.Dataset
public boolean supportsXATransactions()
public void begin(com.hp.hpl.jena.query.ReadWrite readWrite)
begin
in interface com.hp.hpl.jena.query.Dataset
public void commit()
commit
in interface com.hp.hpl.jena.query.Dataset
public void abort()
abort
in interface com.hp.hpl.jena.query.Dataset
public boolean isInTransaction()
isInTransaction
in interface com.hp.hpl.jena.query.Dataset
public void end()
end
in interface com.hp.hpl.jena.query.Dataset
public com.hp.hpl.jena.sparql.core.DatasetGraph asDatasetGraph()
asDatasetGraph
in interface com.hp.hpl.jena.query.Dataset