Class GraphMLWriter
Class for serializing a IGraph in GraphML format.
Inheritance
System.Object
GraphMLWriter
Inherited Members
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)
System.Object.ToString()
Namespace: VDS.RDF.Writing
Assembly: dotNetRDF.dll
Syntax
public class GraphMLWriter : IStoreWriter, ICollapseLiteralsWriter
Properties
| Improve this Doc View SourceCollapseLiterals
Controls whether to collapse distinct literals.
Declaration
public bool CollapseLiterals { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceSave(ITripleStore, TextWriter)
Saves a triple store to a text writer in GraphML format.
Declaration
public void Save(ITripleStore store, TextWriter output)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | The source triple store. |
System.IO.TextWriter | output | The target text writer. |
Save(ITripleStore, TextWriter, Boolean)
Saves a triple store to a text writer in GraphML format.
Declaration
public void Save(ITripleStore store, TextWriter output, bool leaveOpen)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | The source triple store. |
System.IO.TextWriter | output | The target text writer. |
System.Boolean | leaveOpen | Boolean flag indicating if the output writer should be left open by the writer when it completes. |
Save(ITripleStore, String)
Saves a triple store to a file in GraphML format.
Declaration
public void Save(ITripleStore store, string filename)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | The source triple store. |
System.String | filename | The name of the target file. |
Save(ITripleStore, XmlWriter)
Saves a triple store to an XML writer in GraphML format.
Declaration
public void Save(ITripleStore store, XmlWriter output)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | The source triple store. |
System.Xml.XmlWriter | output | The target XML writer. |
Events
| Improve this Doc View SourceWarning
Event raised when there is ambiguity in the syntax being producing
Declaration
public event StoreWriterWarning Warning
Event Type
Type | Description |
---|---|
StoreWriterWarning |
Remarks
This class doesn't raise this event