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 |
---|---|---|
INamespace |
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 |
---|---|---|
INamespace |
nsmap | Namespace Map. |
IUri |
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 |
---|---|---|
IUri |
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 |
---|---|---|
IGraph |
glit | Graph Literal. |
Triple |
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 |
---|---|---|
IVariable |
v | Variable. |
Triple |
segment | Triple Segment. |
Returns
Type | Description |
---|---|
string |