Class Notation3Formatter
Formatter for formatting as Notation 3.
Implements
Inherited Members
Namespace: VDS.RDF.Writing.Formatting
Assembly: dotNetRdf.dll
Syntax
public class Notation3Formatter : TurtleFormatter, INodeFormatter, ITripleFormatter, IUriFormatter, ICharFormatter, IResultFormatter, INamespaceFormatter, IBaseUriFormatter
Constructors
| Edit this page View SourceNotation3Formatter()
Creates a new Notation 3 Formatter.
Declaration
public Notation3Formatter()
Notation3Formatter(IGraph)
Creates a new Notation 3 Formatter using the given Graph.
Declaration
public Notation3Formatter(IGraph g)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Graph. |
Notation3Formatter(INamespaceMapper)
Creates a new Notation 3 Formatter using the given Namespace Map.
Declaration
public Notation3Formatter(INamespaceMapper nsmap)
Parameters
| Type | Name | Description |
|---|---|---|
| INamespaceMapper | nsmap | Namespace Map. |
Notation3Formatter(INamespaceMapper, IUriFactory)
Creates a new Notation 3 Formatter using the given Namespace Map.
Declaration
public Notation3Formatter(INamespaceMapper nsmap, IUriFactory uriFactory = null)
Parameters
| Type | Name | Description |
|---|---|---|
| INamespaceMapper | nsmap | Namespace Map. |
| IUriFactory | uriFactory | The factory to use when creating new Uri instances. |
Notation3Formatter(IUriFactory)
Creates a new Notation 3 Formatter.
Declaration
public Notation3Formatter(IUriFactory uriFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| IUriFactory | uriFactory | The factory to use when creating new Uri instances. |
Methods
| Edit this page View SourceFormatGraphLiteralNode(IGraphLiteralNode, TripleSegment?)
Formats a Graph Literal Node for Notation 3.
Declaration
protected override string FormatGraphLiteralNode(IGraphLiteralNode glit, TripleSegment? segment)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraphLiteralNode | glit | Graph Literal. |
| TripleSegment? | segment | Triple Segment. |
Returns
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceFormatVariableNode(IVariableNode, TripleSegment?)
Formats a Variable Node for Notation 3.
Declaration
protected override string FormatVariableNode(IVariableNode v, TripleSegment? segment)
Parameters
| Type | Name | Description |
|---|---|---|
| IVariableNode | v | Variable. |
| TripleSegment? | segment | Triple Segment. |
Returns
| Type | Description |
|---|---|
| string |