Class FileGraphPersistenceWrapper
The File Graph Persistence Wrapper is a wrapper around another Graph that will be persisted to a file.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class FileGraphPersistenceWrapper : GraphPersistenceWrapper, ITransactionalGraph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>
Constructors
| Improve this Doc 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
| Improve this Doc View SourceSupportsTriplePersistence
Returns that Triple persistence is not supported.
Declaration
protected override bool SupportsTriplePersistence { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
| Improve this Doc View SourcePersistGraph()
Persists the entire Graph to a File.
Declaration
protected override void PersistGraph()
Overrides
Implements
System.IDisposable
System.IEquatable<T>