Show / Hide Table of Contents

Class DatasetFileManager

Allows you to treat an RDF Dataset File - NQuads, TriG or TriX - as a read-only generic store.
Inheritance
System.Object
BaseAsyncSafeConnector
DatasetFileManager
Implements
IAsyncStorageProvider
IQueryableStorage
IStorageProvider
IStorageCapabilities
System.IDisposable
IConfigurationSerializable
Inherited Members
BaseAsyncSafeConnector.ParentServer
BaseAsyncSafeConnector.AsyncParentServer
BaseAsyncSafeConnector.LoadGraph(IGraph, Uri, AsyncStorageCallback, Object)
BaseAsyncSafeConnector.LoadGraph(IGraph, String, AsyncStorageCallback, Object)
BaseAsyncSafeConnector.LoadGraph(IRdfHandler, Uri, AsyncStorageCallback, Object)
BaseAsyncSafeConnector.LoadGraph(IRdfHandler, String, AsyncStorageCallback, Object)
BaseAsyncSafeConnector.SaveGraph(IGraph, AsyncStorageCallback, Object)
BaseAsyncSafeConnector.UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object)
BaseAsyncSafeConnector.UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object)
BaseAsyncSafeConnector.DeleteGraph(Uri, AsyncStorageCallback, Object)
BaseAsyncSafeConnector.DeleteGraph(String, AsyncStorageCallback, Object)
BaseAsyncSafeConnector.ListGraphs(AsyncStorageCallback, Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Storage
Assembly: dotNetRDF.dll
Syntax
public class DatasetFileManager : BaseAsyncSafeConnector, IAsyncStorageProvider, IQueryableStorage, IStorageProvider, IStorageCapabilities, IDisposable, IConfigurationSerializable

Constructors

| Improve this Doc View Source

DatasetFileManager(String, Boolean)

Creates a new Dataset File Manager.
Declaration
public DatasetFileManager(string filename, bool isAsync)
Parameters
Type Name Description
System.String filename File to load from.
System.Boolean isAsync Whether to load asynchronously.

Properties

| Improve this Doc View Source

DeleteSupported

Returns that deleting graphs is not supported.
Declaration
public override bool DeleteSupported { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseAsyncSafeConnector.DeleteSupported
| Improve this Doc View Source

IOBehaviour

Gets the Save Behaviour of the Store.
Declaration
public override IOBehaviour IOBehaviour { get; }
Property Value
Type Description
IOBehaviour
Overrides
BaseAsyncSafeConnector.IOBehaviour
| Improve this Doc View Source

IsReadOnly

Returns that the Manager is read-only.
Declaration
public override bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseAsyncSafeConnector.IsReadOnly
| Improve this Doc View Source

IsReady

Returns that the Manager is ready if the underlying file has been loaded.
Declaration
public override bool IsReady { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseAsyncSafeConnector.IsReady
| Improve this Doc View Source

ListGraphsSupported

Returns that listing graphs is supported.
Declaration
public override bool ListGraphsSupported { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseAsyncSafeConnector.ListGraphsSupported
| Improve this Doc View Source

SourceFile

Gets the Source File this manager represents a read-only view of.
Declaration
public string SourceFile { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

UpdateSupported

Returns that Updates are not supported since this is a read-only connection.
Declaration
public override bool UpdateSupported { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseAsyncSafeConnector.UpdateSupported

Methods

| Improve this Doc View Source

DeleteGraph(String)

Throws an error since this connection is read-only.
Declaration
public override void DeleteGraph(string graphUri)
Parameters
Type Name Description
System.String graphUri URI of the Graph to delete.
Overrides
BaseAsyncSafeConnector.DeleteGraph(String)
Exceptions
Type Condition
RdfStorageException Thrown since you cannot delete a Graph from a read-only connection.
| Improve this Doc View Source

DeleteGraph(Uri)

Throws an error since this connection is read-only.
Declaration
public override void DeleteGraph(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri URI of the Graph to delete.
Overrides
BaseAsyncSafeConnector.DeleteGraph(Uri)
Exceptions
Type Condition
RdfStorageException Thrown since you cannot delete a Graph from a read-only connection.
| Improve this Doc View Source

Dispose()

Disposes of the Manager.
Declaration
public override void Dispose()
Overrides
BaseAsyncSafeConnector.Dispose()
| Improve this Doc View Source

ListGraphs()

Gets the list of URIs of Graphs in the Store.
Declaration
public override IEnumerable<Uri> ListGraphs()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Uri>
Overrides
BaseAsyncSafeConnector.ListGraphs()
| Improve this Doc View Source

LoadGraph(IGraph, String)

Loads a Graph from the Dataset.
Declaration
public override void LoadGraph(IGraph g, string graphUri)
Parameters
Type Name Description
IGraph g Graph to load into.
System.String graphUri URI of the Graph to load.
Overrides
BaseAsyncSafeConnector.LoadGraph(IGraph, String)
| Improve this Doc View Source

LoadGraph(IGraph, Uri)

Loads a Graph from the Dataset.
Declaration
public override void LoadGraph(IGraph g, Uri graphUri)
Parameters
Type Name Description
IGraph g Graph to load into.
System.Uri graphUri URI of the Graph to load.
Overrides
BaseAsyncSafeConnector.LoadGraph(IGraph, Uri)
| Improve this Doc View Source

LoadGraph(IRdfHandler, String)

Loads a Graph from the Dataset with the given Handler.
Declaration
public override void LoadGraph(IRdfHandler handler, string graphUri)
Parameters
Type Name Description
IRdfHandler handler RDF Handler.
System.String graphUri URI of the Graph to load.
Overrides
BaseAsyncSafeConnector.LoadGraph(IRdfHandler, String)
| Improve this Doc View Source

LoadGraph(IRdfHandler, Uri)

Loads a Graph from the Dataset with the given Handler.
Declaration
public override void LoadGraph(IRdfHandler handler, Uri graphUri)
Parameters
Type Name Description
IRdfHandler handler RDF Handler.
System.Uri graphUri URI of the Graph to load.
Overrides
BaseAsyncSafeConnector.LoadGraph(IRdfHandler, Uri)
| Improve this Doc View Source

Query(String)

Makes a query against the in-memory copy of the Stores data.
Declaration
public object Query(string sparqlQuery)
Parameters
Type Name Description
System.String sparqlQuery SPARQL Query.
Returns
Type Description
System.Object
| Improve this Doc View Source

Query(IRdfHandler, ISparqlResultsHandler, String)

Makes a query against the in-memory copy of the Stores data processing the results with one of the given handlers.
Declaration
public void Query(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery)
Parameters
Type Name Description
IRdfHandler rdfHandler RDF Handler.
ISparqlResultsHandler resultsHandler Results Handler.
System.String sparqlQuery SPARQL Query.
| Improve this Doc View Source

SaveGraph(IGraph)

Throws an error since this Manager is read-only.
Declaration
public override void SaveGraph(IGraph g)
Parameters
Type Name Description
IGraph g Graph to save.
Overrides
BaseAsyncSafeConnector.SaveGraph(IGraph)
Exceptions
Type Condition
RdfStorageException Always thrown since this Manager provides a read-only connection.
| Improve this Doc View Source

SerializeConfiguration(ConfigurationSerializationContext)

Serializes the connection's configuration.
Declaration
public void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type Name Description
ConfigurationSerializationContext context Configuration Serialization Context.
| Improve this Doc View Source

ToString()

Gets the String representation of the Connection.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
| Improve this Doc View Source

UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>)

Throws an error since this Manager is read-only.
Declaration
public override void UpdateGraph(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
Type Name Description
System.String graphUri Graph URI.
System.Collections.Generic.IEnumerable<Triple> additions Triples to be added.
System.Collections.Generic.IEnumerable<Triple> removals Triples to be removed.
Overrides
BaseAsyncSafeConnector.UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>)
| Improve this Doc View Source

UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)

Throws an error since this Manager is read-only.
Declaration
public override void UpdateGraph(Uri graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
System.Collections.Generic.IEnumerable<Triple> additions Triples to be added.
System.Collections.Generic.IEnumerable<Triple> removals Triples to be removed.
Overrides
BaseAsyncSafeConnector.UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)

Implements

IAsyncStorageProvider
IQueryableStorage
IStorageProvider
IStorageCapabilities
System.IDisposable
IConfigurationSerializable

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • DatasetFileManager(String, Boolean)
  • Properties
    • DeleteSupported
    • IOBehaviour
    • IsReadOnly
    • IsReady
    • ListGraphsSupported
    • SourceFile
    • UpdateSupported
  • Methods
    • DeleteGraph(String)
    • DeleteGraph(Uri)
    • Dispose()
    • ListGraphs()
    • LoadGraph(IGraph, String)
    • LoadGraph(IGraph, Uri)
    • LoadGraph(IRdfHandler, String)
    • LoadGraph(IRdfHandler, Uri)
    • Query(String)
    • Query(IRdfHandler, ISparqlResultsHandler, String)
    • SaveGraph(IGraph)
    • SerializeConfiguration(ConfigurationSerializationContext)
    • ToString()
    • UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>)
    • UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)
  • Implements
  • Extension Methods
Back to top Generated by DocFX