|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Sail
An interface for an RDF Storage And Inference Layer. RDF Sails can store RDF statements and evaluate queries over them. Statements can be stored in named contexts or in the null context. Contexts can be used to group sets of statements that logically belong together, for example because they come from the same source. Both URIs and bnodes can be used as context identifiers.
| Method Summary | |
|---|---|
void |
addSailChangedListener(SailChangedListener listener)
Adds the specified SailChangedListener to receive events when the data in this Sail object changes. |
SailConnection |
getConnection()
Opens a connection on the Sail which can be used to query and update data. |
File |
getDataDir()
|
ValueFactory |
getValueFactory()
Gets a ValueFactory object that can be used to create URI-, blank node-, literal- and statement objects. |
void |
initialize()
Initializes the Sail. |
boolean |
isWritable()
Checks whether this Sail object is writable, i.e. |
void |
removeSailChangedListener(SailChangedListener listener)
Removes the specified SailChangedListener so that it no longer receives events from this Sail object. |
void |
setDataDir(File dataDir)
|
void |
shutDown()
Shuts down the Sail, giving it the opportunity to synchronize any stale data. |
| Method Detail |
|---|
void setDataDir(File dataDir)
File getDataDir()
void initialize()
throws SailException
#setParameter.
SailException - If the Sail could not be initialized.
void shutDown()
throws SailException
SailException - If the Sail object encountered an error or unexpected situation
internally.
boolean isWritable()
throws SailException
SailException
SailConnection getConnection()
throws SailException
SailException - If no transaction could be started, for example because the Sail
is not writable.ValueFactory getValueFactory()
void addSailChangedListener(SailChangedListener listener)
void removeSailChangedListener(SailChangedListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||