|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dataset
Query is over a Dataset, a collection of named graphs and a background graph (also called the default graph or unnamed graph).
Method Summary | |
---|---|
void |
abort()
Abort a transaction - finish the transaction and undo any changes (if a "write" transaction) |
void |
addNamedModel(String uri,
com.hp.hpl.jena.rdf.model.Model model)
Set a named graph. |
DatasetGraph |
asDatasetGraph()
Get the dataset in graph form |
void |
begin(ReadWrite readWrite)
Start either a READ or WRITE transaction |
void |
close()
Close the dataset, potentially releasing any associated resources. |
void |
commit()
Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction) |
boolean |
containsNamedModel(String uri)
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.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(String uri)
Get a graph by name as a Jena Model |
boolean |
isInTransaction()
Say whether a transaction is active |
Iterator<String> |
listNames()
List the names |
void |
removeNamedModel(String uri)
Remove a named graph. |
void |
replaceNamedModel(String uri,
com.hp.hpl.jena.rdf.model.Model model)
Change a named graph for another using the same name |
void |
setDefaultModel(com.hp.hpl.jena.rdf.model.Model model)
Set the background graph. |
boolean |
supportsTransactions()
Does this dataset support transactions? Supporting transactions mean that the dataset implementation provides begin(com.hp.hpl.jena.query.ReadWrite) , commit() , abort() , end()
which otherwise may throw UnsupportedOperationException |
Method Detail |
---|
com.hp.hpl.jena.rdf.model.Model getDefaultModel()
void setDefaultModel(com.hp.hpl.jena.rdf.model.Model model)
com.hp.hpl.jena.rdf.model.Model getNamedModel(String uri)
boolean containsNamedModel(String uri)
void addNamedModel(String uri, com.hp.hpl.jena.rdf.model.Model model) throws LabelExistsException
LabelExistsException
void removeNamedModel(String uri)
void replaceNamedModel(String uri, com.hp.hpl.jena.rdf.model.Model model)
Iterator<String> listNames()
com.hp.hpl.jena.shared.Lock getLock()
boolean supportsTransactions()
begin(com.hp.hpl.jena.query.ReadWrite)
, commit()
, abort()
, end()
which otherwise may throw UnsupportedOperationException
void begin(ReadWrite readWrite)
void commit()
void abort()
boolean isInTransaction()
void end()
DatasetGraph asDatasetGraph()
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |