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.ResolveQName(string)
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public interface IRdfHandler : INodeFactory

Properties

| Improve this Doc 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
System.Boolean

Methods

| Improve this Doc View Source

EndRdf(bool)

End the Handling of RDF.

Declaration
void EndRdf(bool ok)
Parameters
Type Name Description
System.Boolean ok

Whether parsing finished without error.

| Improve this Doc View Source

HandleBaseUri(Uri)

Handles a Base URI Definition.

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

Base URI.

Returns
Type Description
System.Boolean

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

| Improve this Doc View Source

HandleNamespace(string, Uri)

Handles a Namespace Definition.

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

Namespace Prefix.

System.Uri namespaceUri

Namespace URI.

Returns
Type Description
System.Boolean

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

| Improve this Doc 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
System.Boolean

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

| Improve this Doc View Source

HandleTriple(Triple)

Handles a Triple.

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

Triple.

Returns
Type Description
System.Boolean

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

| Improve this Doc 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)
  • Improve this Doc
  • 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