Class BaseDemandDataset
Abstract Dataset wrapper implementation for datasets that can load graphs on demand.
Inherited Members
Namespace: VDS.RDF.Query.Datasets
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseDemandDataset : WrapperDataset, IConfigurationSerializable, IThreadSafeDataset, ISparqlDataset, ITripleIndex
Constructors
| Edit this page View SourceBaseDemandDataset(ISparqlDataset)
Creates a new Demand Dataset.
Declaration
public BaseDemandDataset(ISparqlDataset dataset)
Parameters
Type | Name | Description |
---|---|---|
ISparqlDataset | dataset | Underlying Dataset. |
Methods
| Edit this page View SourceHasGraph(Uri)
Sees if the underlying dataset has a graph and if not tries to load it on demand.
Declaration
[Obsolete("Replaced by HasGraph(IRefNode)")]
public override bool HasGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceHasGraph(IRefNode)
Declaration
public override bool HasGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceTryLoadGraph(Uri, out IGraph)
Method to be implemented by derived classes which implements the loading of graphs on demand.
Declaration
protected abstract bool TryLoadGraph(Uri graphUri, out IGraph g)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
IGraph | g | Graph. |
Returns
Type | Description |
---|---|
bool |