Click or drag to resize

BaseDataset Class

Abstract Base Class for Datasets which provides implementation of Active and Default Graph management.
Inheritance Hierarchy

Namespace:  VDS.RDF.Query.Datasets
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public abstract class BaseDataset : ISparqlDataset

The BaseDataset type exposes the following members.

Constructors
  NameDescription
Public methodBaseDataset
Creates a new Dataset.
Public methodBaseDataset(Boolean)
Creates a new Dataset with the given Union Default Graph setting.
Public methodBaseDataset(Uri)
Creates a new Dataset with a fixed Default Graph and without a Union Default Graph.
Top
Properties
  NameDescription
Public propertyActiveGraphUris
Gets the Active Graph URIs.
Public propertyDefaultGraphUris
Gets the Default Graph URIs.
Public propertyGraphs
Gets all the Graphs in the Dataset.
Public propertyGraphUris
Gets all the URIs of Graphs in the Dataset.
Public propertyHasTriples
Gets whether the Dataset has any Triples.
Protected propertyInternalDefaultGraph
Gets a reference to the actual IGraph that is currently treated as the default graph.
Public propertyItem
Gets the Graph with the given URI from the Dataset.
Public propertyTriples
Gets all the Triples in the Dataset.
Public propertyUsesUnionDefaultGraph
Gets whether the Default Graph is treated as being the union of all Graphs in the dataset when no Default Graph is otherwise set.
Top
Methods
  NameDescription
Public methodAddGraph
Adds a Graph to the Dataset.
Public methodContainsTriple
Gets whether the Dataset contains a specific Triple.
Protected methodContainsTripleInternal
Determines whether the Dataset contains a specific Triple.
Public methodDiscard
Ensures that any changes to the Dataset (if any) are discarded.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlush
Ensures that any changes to the Dataset (if any) are flushed to the underlying Storage.
Protected methodGetAllTriples
Abstract method that concrete implementations must implement to return an enumerable of all the Triples in the Dataset.
Protected methodGetGraphInternal
Gets the given Graph from the Dataset.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetModifiableGraph
Gets the Graph with the given URI from the Dataset.
Public methodGetTriplesWithObject
Gets all the Triples in the Dataset with the given Object.
Protected methodGetTriplesWithObjectInternal
Gets all the Triples in the Dataset with the given Object.
Public methodGetTriplesWithPredicate
Gets all the Triples in the Dataset with the given Predicate.
Protected methodGetTriplesWithPredicateInternal
Gets all the Triples in the Dataset with the given Predicate.
Public methodGetTriplesWithPredicateObject
Gets all the Triples in the Dataset with the given Predicate and Object.
Protected methodGetTriplesWithPredicateObjectInternal
Gets all the Triples in the Dataset with the given Predicate and Object.
Public methodGetTriplesWithSubject
Gets all the Triples in the Dataset with the given Subject.
Protected methodGetTriplesWithSubjectInternal
Gets all the Triples in the Dataset with the given Subject.
Public methodGetTriplesWithSubjectObject
Gets all the Triples in the Dataset with the given Subject and Object.
Protected methodGetTriplesWithSubjectObjectInternal
Gets all the Triples in the Dataset with the given Subject and Object.
Public methodGetTriplesWithSubjectPredicate
Gets all the Triples in the Dataset with the given Subject and Predicate.
Protected methodGetTriplesWithSubjectPredicateInternal
Gets all the Triples in the Dataset with the given Subject and Predicate.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasGraph
Gets whether a Graph with the given URI is the Dataset.
Protected methodHasGraphInternal
Determines whether a given Graph exists in the Dataset.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveGraph
Removes a Graph from the Dataset.
Protected methodRemoveGraphInternal
Removes a Graph from the Dataset.
Public methodResetActiveGraph
Sets the Active Graph for the SPARQL query to be the previous Active Graph.
Public methodResetDefaultGraph
Sets the Default Graph for the SPARQL Query to be the previous Default Graph.
Public methodSetActiveGraph(IEnumerableUri)
Sets the Active Graph for the SPARQL query.
Public methodSetActiveGraph(Uri)
Sets the Active Graph for the SPARQL query.
Public methodSetDefaultGraph(IEnumerableUri)
Sets the Default Graph.
Public methodSetDefaultGraph(Uri)
Sets the Default Graph.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also