net.fortytwo.sesametools
Class SingleContextSail
java.lang.Object
org.openrdf.sail.helpers.SailBase
net.fortytwo.sesametools.SingleContextSail
- All Implemented Interfaces:
- org.openrdf.sail.Sail, org.openrdf.sail.StackableSail
public class SingleContextSail
- extends org.openrdf.sail.helpers.SailBase
- implements org.openrdf.sail.StackableSail
A Sail which treats the wildcard context as a single, specific context,
and disallows read and write access to all other contexts, including the default context.
Namespaces may be set and retrieved without restriction.
- Author:
- Joshua Shinavier (http://fortytwo.net)
| Fields inherited from class org.openrdf.sail.helpers.SailBase |
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, initializationLock, logger |
|
Constructor Summary |
SingleContextSail(org.openrdf.sail.Sail baseSail,
org.openrdf.model.Resource context)
Construct a Sail which is restricted to a single graph context. |
| Methods inherited from class org.openrdf.sail.helpers.SailBase |
connectionClosed, debugEnabled, getConnection, initialize, isInitialized, shutDown, toString |
| Methods inherited from interface org.openrdf.sail.Sail |
getConnection, initialize, shutDown |
SingleContextSail
public SingleContextSail(org.openrdf.sail.Sail baseSail,
org.openrdf.model.Resource context)
- Construct a Sail which is restricted to a single graph context.
- Parameters:
baseSail - a base Sail for storagecontext - a single, non-null graph context
getBaseSail
public org.openrdf.sail.Sail getBaseSail()
- Specified by:
getBaseSail in interface org.openrdf.sail.StackableSail
setBaseSail
public void setBaseSail(org.openrdf.sail.Sail baseSail)
- Specified by:
setBaseSail in interface org.openrdf.sail.StackableSail
getConnectionInternal
protected org.openrdf.sail.SailConnection getConnectionInternal()
throws org.openrdf.sail.SailException
- Specified by:
getConnectionInternal in class org.openrdf.sail.helpers.SailBase
- Throws:
org.openrdf.sail.SailException
getDataDir
public File getDataDir()
- Specified by:
getDataDir in interface org.openrdf.sail.Sail- Overrides:
getDataDir in class org.openrdf.sail.helpers.SailBase
getValueFactory
public org.openrdf.model.ValueFactory getValueFactory()
- Specified by:
getValueFactory in interface org.openrdf.sail.Sail
initializeInternal
protected void initializeInternal()
throws org.openrdf.sail.SailException
- Overrides:
initializeInternal in class org.openrdf.sail.helpers.SailBase
- Throws:
org.openrdf.sail.SailException
isWritable
public boolean isWritable()
throws org.openrdf.sail.SailException
- Specified by:
isWritable in interface org.openrdf.sail.Sail
- Throws:
org.openrdf.sail.SailException
setDataDir
public void setDataDir(File dir)
- Specified by:
setDataDir in interface org.openrdf.sail.Sail- Overrides:
setDataDir in class org.openrdf.sail.helpers.SailBase
shutDownInternal
protected void shutDownInternal()
throws org.openrdf.sail.SailException
- Specified by:
shutDownInternal in class org.openrdf.sail.helpers.SailBase
- Throws:
org.openrdf.sail.SailException
Copyright © 2014. All Rights Reserved.