dotNetRDF API Documentation

NTriplesParser Class

Parser for NTriples syntax which is designed specifically for NTriples

For a list of all members of this type, see NTriplesParser Members .

System.Object
   NTriplesParser

public class NTriplesParser : IRdfReader, ITraceableParser, ITraceableTokeniser, ITokenisingParser

Thread Safety

Designed to be Thread Safe - should be able to call Load from multiple threads on different Graphs without issue

Remarks

The NTriplesParser class can also be used which is a wrapper to a TurtleParser which can be restricted to only parse NTriples syntax. This Native Parser should be faster since it uses a NTriples only Tokeniser as opposed to the Turtle Tokeniser which will Tokenise syntax which is invalid in NTriples. The NTriples specific Tokeniser is able to reject this syntax at the Tokeniser stage whereas the Turtle based parser has to reject at the Parser stage which is potentially slower.

Requirements

Namespace: VDS.RDF.Parsing

Assembly: dotNetRDF (in dotNetRDF.dll)

See Also

NTriplesParser Members | VDS.RDF.Parsing Namespace