ISparqlDataset Interface |
Namespace: VDS.RDF.Query.Datasets
The ISparqlDataset type exposes the following members.
Name | Description | |
---|---|---|
ActiveGraphUris |
Gets the enumeration of the Graph URIs that currently make up the active graph.
| |
DefaultGraphUris |
Gets the enumeration of the Graph URIs that currently make up the default graph.
| |
Graphs |
Gets all the Graphs in the Dataset.
| |
GraphUris |
Gets all the URIs of Graphs in the Dataset.
| |
HasTriples |
Gets whether the Dataset has any Triples.
| |
Item |
Gets the Graph with the given URI from the Dataset.
| |
Triples |
Gets all the Triples in the Dataset.
| |
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.
|
Name | Description | |
---|---|---|
AddGraph |
Adds a Graph to the Dataset.
| |
ContainsTriple |
Gets whether the Dataset contains a specific Triple.
| |
Discard |
Ensures that any changes to the Dataset (if any) are discarded.
| |
Flush |
Ensures that any changes to the Dataset (if any) are flushed to the underlying Storage.
| |
GetModifiableGraph |
Gets the Graph with the given URI from the Dataset.
| |
GetTriplesWithObject |
Gets all the Triples in the Dataset with the given Object.
| |
GetTriplesWithPredicate |
Gets all the Triples in the Dataset with the given Predicate.
| |
GetTriplesWithPredicateObject |
Gets all the Triples in the Dataset with the given Predicate and Object.
| |
GetTriplesWithSubject |
Gets all the Triples in the Dataset with the given Subject.
| |
GetTriplesWithSubjectObject |
Gets all the Triples in the Dataset with the given Subject and Object.
| |
GetTriplesWithSubjectPredicate |
Gets all the Triples in the Dataset with the given Subject and Predicate.
| |
HasGraph |
Gets whether a Graph with the given URI is the Dataset.
| |
RemoveGraph |
Removes a Graph from the Dataset.
| |
ResetActiveGraph |
Resets the Active Graph to the previous Active Graph.
| |
ResetDefaultGraph |
Resets the Default Graph to the previous Default Graph.
| |
SetActiveGraph(IEnumerableUri) |
Sets the Active Graph to be the merge of the Graphs with the given URIs.
| |
SetActiveGraph(Uri) |
Sets the Active Graph to be the Graph with the given URI.
| |
SetDefaultGraph(IEnumerableUri) |
Sets the Default Graph to be the merge of the Graphs with the given URIs.
| |
SetDefaultGraph(Uri) |
Sets the Default Graph to be the Graph with the given URI.
|
Note: For all operations that take a Graph URI a null Uri should be considered to refer to the Default Graph of the dataset.
Leviathan expects that a Query operates over the Dataset in the following order:
You can limit your queries to use specific portions of your dataset by using the SetActiveGraph() and SetDefaultGraph() methods on your dataset instance before then passing it to the LeviathanQueryProcessor.
Note: By default the InMemoryDataset uses the Union of all Graphs in the Dataset if no Active/Default Graph is otherwise specified. Use the UsesUnionDefaultGraph property to see whether a Dataset implementation behaves in this way.