Show / Hide Table of Contents

Class TriXParser

Parser for parsing TriX (a named Graph XML format for RDF).

Inheritance
System.Object
TriXParser
Implements
IStoreReader
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class TriXParser : IStoreReader
Remarks

The Default Graph (if any) will be given the special Uri. trix:default-graph

TriX permits Graphs to be named with Blank Node IDs, since the library only supports Graphs named with URIs these are converted to URIs of the form. trix:local:ID

Fields

| Improve this Doc View Source

TriXNamespaceURI

Current W3C Namespace Uri for TriX.

Declaration
public const string TriXNamespaceURI = "http://www.w3.org/2004/03/trix/trix-1/"
Field Value
Type Description
string
Remarks

The Default Graph (if any) will be given the special Uri. trix:default-graph

TriX permits Graphs to be named with Blank Node IDs, since the library only supports Graphs named with URIs these are converted to URIs of the form. trix:local:ID

| Improve this Doc View Source

XmlReaderSettings

Get the settings passed to the XML parser.

Declaration
public readonly XmlReaderSettings XmlReaderSettings
Field Value
Type Description
System.Xml.XmlReaderSettings
Remarks

This property can be used to modify the configuration of the underlying XML parser that is used. In particular it can be used to disable DTD processing in those environments where remote entity references might be considered to be a risk.

Methods

| Improve this Doc View Source

Load(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. trix:default-graph

TriX permits Graphs to be named with Blank Node IDs, since the library only supports Graphs named with URIs these are converted to URIs of the form. trix:local:ID

| Improve this Doc View Source

Load(IRdfHandler, TextReader)

Loads a RDF dataset 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. trix:default-graph

TriX permits Graphs to be named with Blank Node IDs, since the library only supports Graphs named with URIs these are converted to URIs of the form. trix:local:ID

| Improve this Doc View Source

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. trix:default-graph

TriX permits Graphs to be named with Blank Node IDs, since the library only supports Graphs named with URIs these are converted to URIs of the form. trix:local:ID

| Improve this Doc View Source

Load(IRdfHandler, string)

Loads the RDF Dataset from the TriX 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. trix:default-graph

TriX permits Graphs to be named with Blank Node IDs, since the library only supports Graphs named with URIs these are converted to URIs of the form. trix:local:ID

| Improve this Doc View Source

Load(ITripleStore, TextReader)

Loads the RDF Dataset from the TriX 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. trix:default-graph

TriX permits Graphs to be named with Blank Node IDs, since the library only supports Graphs named with URIs these are converted to URIs of the form. trix:local:ID

| Improve this Doc View Source

Load(ITripleStore, string)

Loads the RDF Dataset from the TriX 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. trix:default-graph

TriX permits Graphs to be named with Blank Node IDs, since the library only supports Graphs named with URIs these are converted to URIs of the form. trix:local:ID

| Improve this Doc View Source

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
object.ToString()
Remarks

The Default Graph (if any) will be given the special Uri. trix:default-graph

TriX permits Graphs to be named with Blank Node IDs, since the library only supports Graphs named with URIs these are converted to URIs of the form. trix:local:ID

Events

| Improve this Doc View Source

Warning

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. trix:default-graph

TriX permits Graphs to be named with Blank Node IDs, since the library only supports Graphs named with URIs these are converted to URIs of the form. trix:local:ID

Implements

IStoreReader

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Fields
    • TriXNamespaceURI
    • XmlReaderSettings
  • Methods
    • Load(IRdfHandler, TextReader, IUriFactory)
    • Load(IRdfHandler, TextReader)
    • Load(IRdfHandler, string, IUriFactory)
    • Load(IRdfHandler, string)
    • Load(ITripleStore, TextReader)
    • Load(ITripleStore, string)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX