BaseTransactionalQuadDataset Class |
Namespace: VDS.RDF.Query.Datasets
The BaseTransactionalQuadDataset type exposes the following members.
Name | Description | |
---|---|---|
BaseTransactionalQuadDataset |
Creates a Transactional Quad Dataset.
| |
BaseTransactionalQuadDataset(Boolean) |
Creates a Transactional Quad Dataset.
| |
BaseTransactionalQuadDataset(Uri) |
Creates a Transactional Quad Dataset.
|
Name | Description | |
---|---|---|
ActiveGraphUris |
Gets the Active Graph URIs.
(Inherited from BaseQuadDataset.) | |
DefaultGraphUris |
Gets the Default Graph URIs.
(Inherited from BaseQuadDataset.) | |
Graphs |
Gets the Graphs in the dataset.
(Inherited from BaseQuadDataset.) | |
GraphUris |
Gets the URIs of the graphs in the dataset.
(Inherited from BaseQuadDataset.) | |
HasTriples |
Gets whether the dataset has any triples.
(Inherited from BaseQuadDataset.) | |
Item |
Gets a Graph from the dataset.
(Overrides BaseQuadDatasetItemUri.) | |
Triples |
Gets all triples from the dataset.
(Inherited from BaseQuadDataset.) | |
UsesUnionDefaultGraph |
Gets whether this dataset uses a union default graph.
(Inherited from BaseQuadDataset.) |
Name | Description | |
---|---|---|
AddGraph |
Adds a Graph to the Dataset.
(Overrides BaseQuadDatasetAddGraph(IGraph).) | |
AddGraphInternal |
Adds a Graph to the Dataset.
| |
AddQuad |
Adds a Quad to the Dataset.
(Inherited from BaseQuadDataset.) | |
ContainsQuad |
Gets whether a Triple exists in a specific Graph of the dataset.
(Inherited from BaseQuadDataset.) | |
ContainsTriple |
Gets whether the dataset contains a triple.
(Inherited from BaseQuadDataset.) | |
Discard |
Ensures that any changes to the Dataset (if any) are discarded.
(Overrides BaseQuadDatasetDiscard.) | |
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 BaseQuadDatasetFlush.) | |
FlushInternal |
Allows the derived dataset to take any post-Flush() actions required.
| |
GetGraphInternal |
Gets a Graph from the dataset.
(Inherited from BaseQuadDataset.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetModifiableGraph |
Gets a Graph from the Dataset that can be modified.
(Overrides BaseQuadDatasetGetModifiableGraph(Uri).) | |
GetModifiableGraphInternal |
Gets a Graph from the Dataset that can be modified transactionally.
| |
GetQuads |
Gets all the Triples for a specific graph of the dataset.
(Inherited from BaseQuadDataset.) | |
GetQuadsWithObject |
Gets all the Triples with a given object from a specific graph of the dataset.
(Inherited from BaseQuadDataset.) | |
GetQuadsWithPredicate |
Gets all the Triples with a given predicate from a specific graph of the dataset.
(Inherited from BaseQuadDataset.) | |
GetQuadsWithPredicateObject |
Gets all the Triples with a given predicate and object from a specific graph of the dataset.
(Inherited from BaseQuadDataset.) | |
GetQuadsWithSubject |
Gets all the Triples with a given subject from a specific graph of the dataset.
(Inherited from BaseQuadDataset.) | |
GetQuadsWithSubjectObject |
Gets all the Triples with a given subject and object from a specific graph of the dataset.
(Inherited from BaseQuadDataset.) | |
GetQuadsWithSubjectPredicate |
Gets all the Triples with a given subject and predicate from a specific graph of the dataset.
(Inherited from BaseQuadDataset.) | |
GetTriplesWithObject |
Gets all the Triples with a given object.
(Inherited from BaseQuadDataset.) | |
GetTriplesWithPredicate |
Gets all the Triples with a given predicate.
(Inherited from BaseQuadDataset.) | |
GetTriplesWithPredicateObject |
Gets all the Triples with a given predicate and object.
(Inherited from BaseQuadDataset.) | |
GetTriplesWithSubject |
Gets all the Triples with a given subject.
(Inherited from BaseQuadDataset.) | |
GetTriplesWithSubjectObject |
Gets all the Triples with a given subject and object.
(Inherited from BaseQuadDataset.) | |
GetTriplesWithSubjectPredicate |
Gets all the Triples with a given subject and predicate.
(Inherited from BaseQuadDataset.) | |
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 BaseQuadDataset.) | |
HasGraphInternal |
Determines whether a given Graph exists in the Dataset.
(Inherited from BaseQuadDataset.) | |
IsDefaultGraph |
Gets whether the given URI represents the default graph of the dataset.
(Inherited from BaseQuadDataset.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveGraph |
Removes a Graph from the Dataset.
(Overrides BaseQuadDatasetRemoveGraph(Uri).) | |
RemoveGraphInternal |
Removes a Graph from the dataset.
| |
RemoveQuad |
Removes a Quad from the Dataset.
(Inherited from BaseQuadDataset.) | |
ResetActiveGraph |
Resets the Active Graph.
(Inherited from BaseQuadDataset.) | |
ResetDefaultGraph |
Resets the Default Graph.
(Inherited from BaseQuadDataset.) | |
SetActiveGraph(IEnumerableUri) |
Sets the Active Graph.
(Inherited from BaseQuadDataset.) | |
SetActiveGraph(Uri) |
Sets the Active Graph.
(Inherited from BaseQuadDataset.) | |
SetDefaultGraph(IEnumerableUri) |
Sets the Default Graph.
(Inherited from BaseQuadDataset.) | |
SetDefaultGraph(Uri) |
Sets the Default Graph.
(Inherited from BaseQuadDataset.) | |
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.