de.fuberlin.wiwiss.d2rq.server
Class AutoReloadableDataset
java.lang.Object
de.fuberlin.wiwiss.d2rq.server.AutoReloadableDataset
- All Implemented Interfaces:
- Dataset
public class AutoReloadableDataset
- extends Object
- implements Dataset
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoReloadableDataset
public AutoReloadableDataset(SystemLoader loader,
String watchedFile,
boolean autoReload)
checkMappingFileChanged
public void checkMappingFileChanged()
- re-init dsg if mapping file has changed
getPrefixMapping
public PrefixMapping getPrefixMapping()
hasTruncatedResults
public boolean hasTruncatedResults()
asDatasetGraph
public DatasetGraph asDatasetGraph()
- Specified by:
asDatasetGraph
in interface Dataset
getDefaultModel
public Model getDefaultModel()
- Specified by:
getDefaultModel
in interface Dataset
containsNamedModel
public boolean containsNamedModel(String uri)
- Specified by:
containsNamedModel
in interface Dataset
getLock
public Lock getLock()
- Specified by:
getLock
in interface Dataset
getNamedModel
public Model getNamedModel(String uri)
- Specified by:
getNamedModel
in interface Dataset
listNames
public Iterator<String> listNames()
- Specified by:
listNames
in interface Dataset
close
public void close()
- Specified by:
close
in interface Dataset
setDefaultModel
public void setDefaultModel(Model model)
- Specified by:
setDefaultModel
in interface Dataset
addNamedModel
public void addNamedModel(String uri,
Model model)
throws LabelExistsException
- Specified by:
addNamedModel
in interface Dataset
- Throws:
LabelExistsException
removeNamedModel
public void removeNamedModel(String uri)
- Specified by:
removeNamedModel
in interface Dataset
replaceNamedModel
public void replaceNamedModel(String uri,
Model model)
- Specified by:
replaceNamedModel
in interface Dataset
supportsTransactions
public boolean supportsTransactions()
- Specified by:
supportsTransactions
in interface Dataset
begin
public void begin(ReadWrite readWrite)
- Specified by:
begin
in interface Dataset
commit
public void commit()
- Specified by:
commit
in interface Dataset
abort
public void abort()
- Specified by:
abort
in interface Dataset
isInTransaction
public boolean isInTransaction()
- Specified by:
isInTransaction
in interface Dataset
end
public void end()
- Specified by:
end
in interface Dataset