Class FileGraphPersistenceWrapper
The File Graph Persistence Wrapper is a wrapper around another Graph that will be persisted to a file.
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class FileGraphPersistenceWrapper : GraphPersistenceWrapper, ITransactionalGraph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>
Constructors
| Edit this page View SourceFileGraphPersistenceWrapper(string, IRefNode)
Creates a new File Graph Persistence Wrapper around a new empty Graph.
Declaration
public FileGraphPersistenceWrapper(string filename, IRefNode graphName = null)
Parameters
Type | Name | Description |
---|---|---|
string | filename | File to persist to. |
IRefNode | graphName | The name to assign to the new graph. |
Remarks
If the given file already exists then the Graph will be loaded from that file.
FileGraphPersistenceWrapper(IGraph, string)
Creates a new File Graph Persistence Wrapper around the given Graph.
Declaration
public FileGraphPersistenceWrapper(IGraph g, string filename)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
string | filename | File to persist to. |
Properties
| Edit this page View SourceSupportsTriplePersistence
Returns that Triple persistence is not supported.
Declaration
protected override bool SupportsTriplePersistence { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
| Edit this page View SourcePersistGraph()
Persists the entire Graph to a File.
Declaration
protected override void PersistGraph()