|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.hp.hpl.jena.graph.impl.GraphBase
org.openrdf.jena.GraphSesame
org.openrdf.jena.DataSourceSesame
public class DataSourceSesame
This is a wrapper to make a Sesame repository appear as a jena Datasource
| Field Summary | |
|---|---|
(package private) Model |
defaultModel
Default model - may be null - according to Javadoc |
| Fields inherited from class org.openrdf.jena.GraphSesame |
|---|
logger, repository |
| Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
|---|
bulkHandler, capabilities, closed, gem, pm, queryHandler, reifier, style |
| Fields inherited from interface com.hp.hpl.jena.graph.Graph |
|---|
emptyGraph |
| Constructor Summary | |
|---|---|
DataSourceSesame(Repository rep)
|
|
| Method Summary | |
|---|---|
void |
addNamedModel(String name,
Model model)
|
boolean |
containsNamedModel(String arg0)
|
private Resource |
getContextID(String name)
|
Model |
getDefaultModel()
|
Lock |
getLock()
Jena has locks? |
Model |
getNamedModel(String name)
|
Iterator |
listNames()
|
void |
removeNamedModel(String name)
|
void |
replaceNamedModel(String name,
Model model)
|
void |
setDefaultModel(Model model)
|
| Methods inherited from class org.openrdf.jena.GraphSesame |
|---|
close, getBulkUpdateHandler, getRepository, getValueFactory, graphBaseFind, graphBaseSize, jena2sesame, performAdd, performDelete |
| Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
|---|
add, checkOpen, contains, contains, containsByFind, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, graphBaseContains, graphBaseFind, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, queryHandler, reifierContains, reifierSize, reifierTriples, size, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
Model defaultModel
| Constructor Detail |
|---|
public DataSourceSesame(Repository rep)
throws SailInitializationException
rep - -
the repository to wrap
SailInitializationException| Method Detail |
|---|
public void setDefaultModel(Model model)
setDefaultModel in interface com.hp.hpl.jena.query.DataSourcemodel - the default model to setDataSource.setDefaultModel(com.hp.hpl.jena.rdf.model.Model)
public void addNamedModel(String name,
Model model)
throws com.hp.hpl.jena.query.LabelExistsException
addNamedModel in interface com.hp.hpl.jena.query.DataSourcename - model -
com.hp.hpl.jena.query.LabelExistsExceptionDataSource.addNamedModel(java.lang.String,
com.hp.hpl.jena.rdf.model.Model)public void removeNamedModel(String name)
removeNamedModel in interface com.hp.hpl.jena.query.DataSourcename - the name of the model to removeDataSource.removeNamedModel(java.lang.String)private Resource getContextID(String name)
public void replaceNamedModel(String name,
Model model)
replaceNamedModel in interface com.hp.hpl.jena.query.DataSourcename - -
the name to replacemodel - -
the model to replace withDataSource.replaceNamedModel(java.lang.String,
com.hp.hpl.jena.rdf.model.Model)public Model getDefaultModel()
getDefaultModel in interface com.hp.hpl.jena.query.DatasetDataset.getDefaultModel()public Model getNamedModel(String name)
getNamedModel in interface com.hp.hpl.jena.query.DatasetDataset.getNamedModel(java.lang.String)public boolean containsNamedModel(String arg0)
containsNamedModel in interface com.hp.hpl.jena.query.Datasetpublic Iterator listNames()
listNames in interface com.hp.hpl.jena.query.DatasetDataset.listNames()public Lock getLock()
getLock in interface com.hp.hpl.jena.query.DatasetDataset.getLock()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||