Opens a new IDataObjectStore with the specified name.

Namespace: BrightstarDB.Client
Assembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)

Syntax

C#
public IDataObjectStore OpenStore(
	string storeName,
	Dictionary<string, string> namespaceMappings = null,
	Nullable<bool> optimisticLockingEnabled = null,
	string updateGraph = null,
	IEnumerable<string> defaultDataSet = null,
	string versionTrackingGraph = null
)
Visual Basic
Public Function OpenStore ( 
	storeName As String,
	Optional namespaceMappings As Dictionary(Of String, String) = Nothing,
	Optional optimisticLockingEnabled As Nullable(Of Boolean) = Nothing,
	Optional updateGraph As String = Nothing,
	Optional defaultDataSet As IEnumerable(Of String) = Nothing,
	Optional versionTrackingGraph As String = Nothing
) As IDataObjectStore
Visual C++
public:
virtual IDataObjectStore^ OpenStore(
	String^ storeName, 
	Dictionary<String^, String^>^ namespaceMappings = nullptr, 
	Nullable<bool> optimisticLockingEnabled = nullptr, 
	String^ updateGraph = nullptr, 
	IEnumerable<String^>^ defaultDataSet = nullptr, 
	String^ versionTrackingGraph = nullptr
) sealed
F#
abstract OpenStore : 
        storeName : string * 
        ?namespaceMappings : Dictionary<string, string> * 
        ?optimisticLockingEnabled : Nullable<bool> * 
        ?updateGraph : string * 
        ?defaultDataSet : IEnumerable<string> * 
        ?versionTrackingGraph : string 
(* Defaults:
        let _namespaceMappings = defaultArg namespaceMappings null
        let _optimisticLockingEnabled = defaultArg optimisticLockingEnabled null
        let _updateGraph = defaultArg updateGraph null
        let _defaultDataSet = defaultArg defaultDataSet null
        let _versionTrackingGraph = defaultArg versionTrackingGraph null
*)
-> IDataObjectStore 
override OpenStore : 
        storeName : string * 
        ?namespaceMappings : Dictionary<string, string> * 
        ?optimisticLockingEnabled : Nullable<bool> * 
        ?updateGraph : string * 
        ?defaultDataSet : IEnumerable<string> * 
        ?versionTrackingGraph : string 
(* Defaults:
        let _namespaceMappings = defaultArg namespaceMappings null
        let _optimisticLockingEnabled = defaultArg optimisticLockingEnabled null
        let _updateGraph = defaultArg updateGraph null
        let _defaultDataSet = defaultArg defaultDataSet null
        let _versionTrackingGraph = defaultArg versionTrackingGraph null
*)
-> IDataObjectStore 

Parameters

storeName
Type: System..::..String
The name of the store
namespaceMappings (Optional)
Type: System.Collections.Generic..::..Dictionary<(Of <(<'String, String>)>)>
A map of simple string prefixes to URIs prefixes e.g. rdfs : http://www.w3c.org/rdfs
optimisticLockingEnabled (Optional)
Type: System..::..Nullable<(Of <(<'Boolean>)>)>
If set to true will ensure that updates to objects modified since being read will fail.
updateGraph (Optional)
Type: System..::..String
OPTIONAL: The URI identifier of the graph to be updated with any new triples created by operations on the store. If not defined, the default graph in the store will be updated.
defaultDataSet (Optional)
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'String>)>)>
OPTIONAL: The URI identifiers of the graphs that will be queried to retrieve data objects and their properties. See remarks below.
versionTrackingGraph (Optional)
Type: System..::..String
OPTIONAL: The URI identifier of the graph that contains version number statements for data objects. If not defined, the updateGraph will be used.

Return Value

Type: IDataObjectStore
IDataObjectStore

Implements

IDataObjectContext..::..OpenStore(String, Dictionary<(Of <<'(String, String>)>>), Nullable<(Of <<'(Boolean>)>>), String, IEnumerable<(Of <<'(String>)>>), String)

Remarks

The default data set queried by context can be explicitly set by providing a value for the defaultDataSet parameter. If an explicit data set is provided then that set of graphs, plus the update and version tracking graph will be queried by the context. If an explicit data set is not provided, but update and/or version tracking graphs are specified, then the context will query only the update and version tracking graphs. If an explicit data set is not provided and update and version tracking graphs are not specified either, then the context will query across all of the graphs in the store (and updates and version tracking information will be written to the default graph).

Exceptions

ExceptionCondition
BrightstarDB.Client..::..BrightstarClientExceptionThrown if the store does not exist or cannot be accessed.

See Also