Class NTriples11Formatter
Formatter for formatting as NTriples according to the RDF 1.1 specification.
Inherited Members
Namespace: VDS.RDF.Writing.Formatting
Assembly: dotNetRdf.dll
Syntax
public class NTriples11Formatter : NTriplesFormatter, INodeFormatter, ITripleFormatter, IUriFormatter, ICharFormatter, IResultFormatter
Remarks
The primary difference between this formatter and NTriplesFormatter is that this formatter will drop the xsd:string datatype IRI from literals as this is the default datatype assigned to string literals by the RDF 1.1 specification.
Constructors
| Improve this Doc View SourceNTriples11Formatter()
Creates a new formatter.
Declaration
public NTriples11Formatter()
Remarks
The primary difference between this formatter and NTriplesFormatter is that this formatter will drop the xsd:string datatype IRI from literals as this is the default datatype assigned to string literals by the RDF 1.1 specification.
Methods
| Improve this Doc View SourceFormatDatatype(Uri)
Return the datatype specification for a literal value.
Declaration
protected override string FormatDatatype(Uri datatypeUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | datatypeUri | The datatype URI. |
Returns
Type | Description |
---|---|
string | The formatted datatype specification unless |
Overrides
Remarks
The primary difference between this formatter and NTriplesFormatter is that this formatter will drop the xsd:string datatype IRI from literals as this is the default datatype assigned to string literals by the RDF 1.1 specification.