Click or drag to resize

NQuadsParser Class

Parser for parsing NQuads (NTriples with an additional Context i.e. Named Graphs).
Inheritance Hierarchy
SystemObject
  VDS.RDF.ParsingNQuadsParser

Namespace:  VDS.RDF.Parsing
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class NQuadsParser : IStoreReader, 
	ITraceableTokeniser, ITokenisingParser

The NQuadsParser type exposes the following members.

Constructors
  NameDescription
Public methodNQuadsParser
Creates a new NQuads parser.
Public methodNQuadsParser(NQuadsSyntax)
Creates a new NQuads parser.
Public methodNQuadsParser(TokenQueueMode)
Creates a new NQuads parser.
Public methodNQuadsParser(NQuadsSyntax, TokenQueueMode)
Creates a new NQuads parser.
Top
Properties
  NameDescription
Public propertySyntax
Gets/Sets the NQuads syntax mode.
Public propertyTokenQueueMode
Gets/Sets the token queue mode used.
Public propertyTraceTokeniser
Gets/Sets whether Tokeniser Tracing is used.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad(IRdfHandler, TextReader)
Loads a RDF Dataset from the NQuads input using a RDF Handler.
Public methodLoad(IRdfHandler, String)
Loads a RDF Dataset from the NQuads input using a RDF Handler.
Public methodLoad(ITripleStore, TextReader)
Loads a RDF Dataset from the NQuads input into the given Triple Store.
Public methodLoad(ITripleStore, String)
Loads a RDF Dataset from the NQuads input into the given Triple Store.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Gets the String representation of the Parser which is a description of the syntax it parses.
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventWarning
Event which Readers can raise when they notice syntax that is ambigious/deprecated etc which can still be parsed
Top
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.

See Also