Show / Hide Table of Contents

Interface IRdfHandler

Interface for Handlers which handle the RDF produced by parsers.

Inherited Members
INodeFactory.BaseUri
INodeFactory.NamespaceMap
INodeFactory.UriFactory
INodeFactory.CreateBlankNode()
INodeFactory.CreateBlankNode(string)
INodeFactory.CreateGraphLiteralNode()
INodeFactory.CreateGraphLiteralNode(IGraph)
INodeFactory.CreateLiteralNode(string, Uri)
INodeFactory.CreateLiteralNode(string)
INodeFactory.CreateLiteralNode(string, string)
INodeFactory.CreateUriNode(Uri)
INodeFactory.CreateUriNode(string)
INodeFactory.CreateUriNode()
INodeFactory.CreateVariableNode(string)
INodeFactory.CreateTripleNode(Triple)
INodeFactory.GetNextBlankNodeID()
INodeFactory.NormalizeLiteralValues
INodeFactory.LanguageTagValidation
INodeFactory.ResolveQName(string)
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public interface IRdfHandler : INodeFactory

Properties

| Edit this page View Source

AcceptsAll

Gets whether the Handler will always handle all data (i.e. won't terminate parsing early).

Declaration
bool AcceptsAll { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

EndRdf(bool)

End the Handling of RDF.

Declaration
void EndRdf(bool ok)
Parameters
Type Name Description
bool ok

Whether parsing finished without error.

| Edit this page View Source

HandleBaseUri(Uri)

Handles a Base URI Definition.

Declaration
bool HandleBaseUri(Uri baseUri)
Parameters
Type Name Description
Uri baseUri

Base URI.

Returns
Type Description
bool

Should return true if parsing should continue or false if it should be aborted.

| Edit this page View Source

HandleNamespace(string, Uri)

Handles a Namespace Definition.

Declaration
bool HandleNamespace(string prefix, Uri namespaceUri)
Parameters
Type Name Description
string prefix

Namespace Prefix.

Uri namespaceUri

Namespace URI.

Returns
Type Description
bool

Should return true if parsing should continue or false if it should be aborted.

| Edit this page View Source

HandleQuad(Triple, IRefNode)

Handles a Quad (Triple + Graph).

Declaration
bool HandleQuad(Triple t, IRefNode graph)
Parameters
Type Name Description
Triple t

Triple.

IRefNode graph

The name of the graph containing the triple.

Returns
Type Description
bool

Should return true if parsing should continue or false if it should be aborted.

| Edit this page View Source

HandleTriple(Triple)

Handles a Triple.

Declaration
bool HandleTriple(Triple t)
Parameters
Type Name Description
Triple t

Triple.

Returns
Type Description
bool

Should return true if parsing should continue or false if it should be aborted.

| Edit this page View Source

StartRdf()

Start the Handling of RDF.

Declaration
void StartRdf()
Exceptions
Type Condition
RdfParseException

May be thrown if the Handler is already in use and the implementation is not thread-safe.

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
HandlerExtensions.Apply(IRdfHandler, IGraph)
  • Edit this page
  • View Source
In this article
  • Properties
    • AcceptsAll
  • Methods
    • EndRdf(bool)
    • HandleBaseUri(Uri)
    • HandleNamespace(string, Uri)
    • HandleQuad(Triple, IRefNode)
    • HandleTriple(Triple)
    • StartRdf()
  • Extension Methods
Back to top Generated by DocFX