Class TriGParser
Parser for parsing TriG (Turtle with Named Graphs) RDF Syntax into a Triple Store.
Inheritance
System.Object
TriGParser
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Parsing
Assembly: dotNetRDF.dll
Syntax
public class TriGParser : IStoreReader, ITraceableTokeniser, ITokenisingParser
Remarks
The Default Graph (if any) will be given the special Uri. trig:default-graph
Constructors
| Improve this Doc View SourceTriGParser()
Creates a TriG Parser than uses the default syntax.
Declaration
public TriGParser()
TriGParser(TriGSyntax)
Creates a TriG Parser which uses the specified syntax.
Declaration
public TriGParser(TriGSyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
TriGSyntax | syntax | Syntax. |
Properties
| Improve this Doc View SourceSyntax
Gets/Sets the TriG syntax used.
Declaration
public TriGSyntax Syntax { get; set; }
Property Value
Type | Description |
---|---|
TriGSyntax |
TokenQueueMode
Gets/Sets the token queue mode used.
Declaration
public TokenQueueMode TokenQueueMode { get; set; }
Property Value
Type | Description |
---|---|
TokenQueueMode |
TraceTokeniser
Gets/Sets whether Tokeniser Tracing is used.
Declaration
public bool TraceTokeniser { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceLoad(IRdfHandler, TextReader)
Loads the named Graphs from the TriG input using the given 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. |
Load(IRdfHandler, String)
Loads the named Graphs from the TriG input using the given RDF Handler.
Declaration
public void Load(IRdfHandler handler, string filename)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
System.String | filename | File to load from. |
Load(ITripleStore, TextReader)
Loads the named Graphs from the TriG 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. |
Load(ITripleStore, String)
Loads the named Graphs from the TriG 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. |
System.String | filename | File to load from. |
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 |
---|---|
System.String |
Overrides
System.Object.ToString()
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 |