Class NQuadsParser
Parser for parsing NQuads (NTriples with an additional Context i.e. Named Graphs).
Inheritance
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class NQuadsParser : IStoreReader, ITraceableTokeniser, ITokenisingParser
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
Constructors
| Improve this Doc View SourceNQuadsParser()
Creates a new NQuads parser.
Declaration
public NQuadsParser()
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
NQuadsParser(NQuadsSyntax, TokenQueueMode)
Creates a new NQuads parser.
Declaration
public NQuadsParser(NQuadsSyntax syntax, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
NQuadsSyntax | syntax | NQuads syntax mode. |
TokenQueueMode | queueMode | Token Queue Mode. |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
NQuadsParser(NQuadsSyntax)
Creates a new NQuads parser.
Declaration
public NQuadsParser(NQuadsSyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
NQuadsSyntax | syntax | NQuads syntax mode. |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
NQuadsParser(TokenQueueMode)
Creates a new NQuads parser.
Declaration
public NQuadsParser(TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
TokenQueueMode | queueMode | Token Queue Mode. |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
Properties
| Improve this Doc View SourceSyntax
Gets/Sets the NQuads syntax mode.
Declaration
public NQuadsSyntax Syntax { get; set; }
Property Value
Type | Description |
---|---|
NQuadsSyntax |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
TokenQueueMode
Gets/Sets the token queue mode used.
Declaration
public TokenQueueMode TokenQueueMode { get; set; }
Property Value
Type | Description |
---|---|
TokenQueueMode |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
TraceTokeniser
Gets/Sets whether Tokeniser Tracing is used.
Declaration
public bool TraceTokeniser { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
Methods
| Improve this Doc View SourceLoad(IRdfHandler, TextReader, IUriFactory)
Loads an RDF dataset using and RDF handler.
Declaration
public void Load(IRdfHandler handler, TextReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF handler to use. |
System.IO.TextReader | input | File to load from. |
IUriFactory | uriFactory | URI factory to use. |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
Load(IRdfHandler, TextReader)
Loads a RDF Dataset from the NQuads input using a RDF Handler.
Declaration
public void Load(IRdfHandler handler, TextReader input)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
System.IO.TextReader | input | Input to load from. |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
Load(IRdfHandler, string, IUriFactory)
Loads an RDF dataset using an RDF handler.
Declaration
public void Load(IRdfHandler handler, string filename, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF handler to use. |
string | filename | File to load from. |
IUriFactory | uriFactory | URI factory to use. |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
Load(IRdfHandler, string)
Loads a RDF Dataset from the NQuads input using a RDF Handler.
Declaration
public void Load(IRdfHandler handler, string filename)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
string | filename | File to load from. |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
Load(ITripleStore, TextReader)
Loads a RDF Dataset from the NQuads input into the given Triple Store.
Declaration
public void Load(ITripleStore store, TextReader input)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
System.IO.TextReader | input | Input to load from. |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
Load(ITripleStore, string)
Loads a RDF Dataset from the NQuads input into the given Triple Store.
Declaration
public void Load(ITripleStore store, string filename)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
string | filename | File to load from. |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
ToString()
Gets the String representation of the Parser which is a description of the syntax it parses.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.
Events
| Improve this Doc View SourceWarning
Event which Readers can raise when they notice syntax that is ambigious/deprecated etc which can still be parsed
Declaration
public event StoreReaderWarning Warning
Event Type
Type | Description |
---|---|
StoreReaderWarning |
Remarks
The Default Graph (if any) will be given the special Uri. nquads:default-graph
NQuads permits Blank Nodes and Literals to be used as Context, since the library only supports Graphs named with URIs these are translated into URIs of the following form:
nquads:bnode:12345678
nquads:literal:87654321
In these URIs the numbers are the libraries hash codes for the node used as the Context.