BaseTransactionalDataset Class |
Namespace: VDS.RDF.Query.Datasets
The BaseTransactionalDataset type exposes the following members.
Name | Description | |
---|---|---|
BaseTransactionalDataset |
Creates a new Transactional Dataset.
| |
BaseTransactionalDataset(Boolean) |
Creates a new Transactional Dataset with the given Union Default Graph setting.
| |
BaseTransactionalDataset(Uri) |
Creates a new Transactional Dataset with a fixed Default Graph and no Union Default Graph.
|
Name | Description | |
---|---|---|
ActiveGraphUris |
Gets the Active Graph URIs.
(Inherited from BaseDataset.) | |
DefaultGraphUris |
Gets the Default Graph URIs.
(Inherited from BaseDataset.) | |
Graphs |
Gets all the Graphs in the Dataset.
(Inherited from BaseDataset.) | |
GraphUris |
Gets all the URIs of Graphs in the Dataset.
(Inherited from BaseDataset.) | |
HasTriples |
Gets whether the Dataset has any Triples.
(Inherited from BaseDataset.) | |
InternalDefaultGraph |
Gets a reference to the actual IGraph that is currently treated as the default graph.
(Inherited from BaseDataset.) | |
Item |
Gets a Graph from the Dataset.
(Overrides BaseDatasetItemUri.) | |
Triples |
Gets all the Triples in the Dataset.
(Inherited from BaseDataset.) | |
UsesUnionDefaultGraph |
Gets whether the Default Graph is treated as being the union of all Graphs in the dataset when no Default Graph is otherwise set.
(Inherited from BaseDataset.) |
Name | Description | |
---|---|---|
AddGraph |
Adds a Graph to the Dataset.
(Overrides BaseDatasetAddGraph(IGraph).) | |
AddGraphInternal |
Adds a Graph to the Dataset.
| |
ContainsTriple |
Gets whether the Dataset contains a specific Triple.
(Inherited from BaseDataset.) | |
ContainsTripleInternal |
Determines whether the Dataset contains a specific Triple.
(Inherited from BaseDataset.) | |
Discard |
Ensures that any changes to the Dataset (if any) are discarded.
(Overrides BaseDatasetDiscard.) | |
DiscardInternal |
Allows the derived dataset to take any post-Discard() actions required.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Flush |
Ensures that any changes to the Dataset (if any) are flushed to the underlying Storage.
(Overrides BaseDatasetFlush.) | |
FlushInternal |
Allows the derived dataset to take any post-Flush() actions required.
| |
GetAllTriples |
Abstract method that concrete implementations must implement to return an enumerable of all the Triples in the Dataset.
(Inherited from BaseDataset.) | |
GetGraphInternal |
Gets the given Graph from the Dataset.
(Inherited from BaseDataset.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetModifiableGraph |
Gets a Graph from the Dataset that can be modified.
(Overrides BaseDatasetGetModifiableGraph(Uri).) | |
GetModifiableGraphInternal |
Gets a Graph from the Dataset that can be modified transactionally.
| |
GetTriplesWithObject |
Gets all the Triples in the Dataset with the given Object.
(Inherited from BaseDataset.) | |
GetTriplesWithObjectInternal |
Gets all the Triples in the Dataset with the given Object.
(Inherited from BaseDataset.) | |
GetTriplesWithPredicate |
Gets all the Triples in the Dataset with the given Predicate.
(Inherited from BaseDataset.) | |
GetTriplesWithPredicateInternal |
Gets all the Triples in the Dataset with the given Predicate.
(Inherited from BaseDataset.) | |
GetTriplesWithPredicateObject |
Gets all the Triples in the Dataset with the given Predicate and Object.
(Inherited from BaseDataset.) | |
GetTriplesWithPredicateObjectInternal |
Gets all the Triples in the Dataset with the given Predicate and Object.
(Inherited from BaseDataset.) | |
GetTriplesWithSubject |
Gets all the Triples in the Dataset with the given Subject.
(Inherited from BaseDataset.) | |
GetTriplesWithSubjectInternal |
Gets all the Triples in the Dataset with the given Subject.
(Inherited from BaseDataset.) | |
GetTriplesWithSubjectObject |
Gets all the Triples in the Dataset with the given Subject and Object.
(Inherited from BaseDataset.) | |
GetTriplesWithSubjectObjectInternal |
Gets all the Triples in the Dataset with the given Subject and Object.
(Inherited from BaseDataset.) | |
GetTriplesWithSubjectPredicate |
Gets all the Triples in the Dataset with the given Subject and Predicate.
(Inherited from BaseDataset.) | |
GetTriplesWithSubjectPredicateInternal |
Gets all the Triples in the Dataset with the given Subject and Predicate.
(Inherited from BaseDataset.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasGraph |
Gets whether a Graph with the given URI is the Dataset.
(Inherited from BaseDataset.) | |
HasGraphInternal |
Determines whether a given Graph exists in the Dataset.
(Inherited from BaseDataset.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveGraph |
Removes a Graph from the Dataset.
(Overrides BaseDatasetRemoveGraph(Uri).) | |
RemoveGraphInternal |
Removes a Graph from the Dataset.
(Inherited from BaseDataset.) | |
ResetActiveGraph |
Sets the Active Graph for the SPARQL query to be the previous Active Graph.
(Inherited from BaseDataset.) | |
ResetDefaultGraph |
Sets the Default Graph for the SPARQL Query to be the previous Default Graph.
(Inherited from BaseDataset.) | |
SetActiveGraph(IEnumerableUri) |
Sets the Active Graph for the SPARQL query.
(Inherited from BaseDataset.) | |
SetActiveGraph(Uri) |
Sets the Active Graph for the SPARQL query.
(Inherited from BaseDataset.) | |
SetDefaultGraph(IEnumerableUri) |
Sets the Default Graph.
(Inherited from BaseDataset.) | |
SetDefaultGraph(Uri) |
Sets the Default Graph.
(Inherited from BaseDataset.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
The Transaction implementation of dotNetRDF is based upon a MRSW concurrency model, since only one writer may be active changes are immediately pushed to the dataset and visible within the transaction and they are committed or rolled back when Flush() or Discard() are called.
So in practical terms it is perfectly OK for the storage to be updated during a transaction because if the transaction fails the changes will be rolled back because all changes are stored in-memory until the end of the transaction. This may not be an ideal transaction model for all scenarios so you may wish to implement your own version of transactions or code your implementations of the abstract methods accordingly to limit actual persistence to the end of a transaction.