Show / Hide Table of Contents

Class GraphHandler

A RDF Handler which asserts Triples into a Graph.

Inheritance
object
BaseHandler
BaseRdfHandler
GraphHandler
Implements
ICommentRdfHandler
IRdfHandler
INodeFactory
Inherited Members
BaseRdfHandler.StartRdf()
BaseRdfHandler.EndRdf(bool)
BaseRdfHandler.HandleNamespace(string, Uri)
BaseRdfHandler.HandleBaseUri(Uri)
BaseRdfHandler.HandleTriple(Triple)
BaseRdfHandler.HandleQuad(Triple, IRefNode)
BaseRdfHandler.HandleComment(string)
BaseRdfHandler.HandleCommentInternal(string)
BaseHandler.NodeFactory
BaseHandler.NormalizeLiteralValues
BaseHandler.LanguageTagValidation
BaseHandler.ResolveQName(string)
BaseHandler.BaseUri
BaseHandler.NamespaceMap
BaseHandler.UriFactory
BaseHandler.CreateBlankNode()
BaseHandler.CreateBlankNode(string)
BaseHandler.CreateGraphLiteralNode()
BaseHandler.CreateGraphLiteralNode(IGraph)
BaseHandler.CreateLiteralNode(string, Uri)
BaseHandler.CreateLiteralNode(string)
BaseHandler.CreateLiteralNode(string, string)
BaseHandler.CreateUriNode(Uri)
BaseHandler.CreateUriNode(string)
BaseHandler.CreateUriNode()
BaseHandler.CreateVariableNode(string)
BaseHandler.CreateTripleNode(Triple)
BaseHandler.GetNextBlankNodeID()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class GraphHandler : BaseRdfHandler, ICommentRdfHandler, IRdfHandler, INodeFactory

Constructors

| Edit this page View Source

GraphHandler(IGraph)

Creates a new Graph Handler.

Declaration
public GraphHandler(IGraph g)
Parameters
Type Name Description
IGraph g

Graph.

Properties

| Edit this page View Source

AcceptsAll

Gets that this Handler accepts all Triples.

Declaration
public override bool AcceptsAll { get; }
Property Value
Type Description
bool
Overrides
BaseRdfHandler.AcceptsAll
| Edit this page View Source

Graph

Gets the Graph that this handler wraps.

Declaration
protected IGraph Graph { get; }
Property Value
Type Description
IGraph

Methods

| Edit this page View Source

EndRdfInternal(bool)

Ends Handling RDF discarding the handled Triples if parsing failed (indicated by false for the ok parameter) and otherwise merging the handled triples from the temporary graph into the target graph if necessary.

Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type Name Description
bool ok

Indicates whether parsing completed OK.

Overrides
BaseRdfHandler.EndRdfInternal(bool)
| Edit this page View Source

HandleBaseUriInternal(Uri)

Handles Base URI Declarations by setting the Graphs Base URI.

Declaration
protected override bool HandleBaseUriInternal(Uri baseUri)
Parameters
Type Name Description
Uri baseUri

Base URI.

Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleBaseUriInternal(Uri)
| Edit this page View Source

HandleNamespaceInternal(string, Uri)

Handles Namespace Declarations by adding them to the Graphs Namespace Map.

Declaration
protected override bool HandleNamespaceInternal(string prefix, Uri namespaceUri)
Parameters
Type Name Description
string prefix

Namespace Prefix.

Uri namespaceUri

Namespace URI.

Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleNamespaceInternal(string, Uri)
| Edit this page View Source

HandleQuadInternal(Triple, IRefNode)

Handles Quads by asserting them in the target graph specified in the constructor of this handler.

Declaration
protected override bool HandleQuadInternal(Triple t, IRefNode graph)
Parameters
Type Name Description
Triple t
IRefNode graph

The name of the graph containing the triple.

Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleQuadInternal(Triple, IRefNode)
Remarks

This handler asserts all triples received into the target graph, regardless of the graph name passed in graph.

| Edit this page View Source

HandleTripleInternal(Triple)

Handles Triples by asserting them in the Graph.

Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type Name Description
Triple t
Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleTripleInternal(Triple)
| Edit this page View Source

StartRdfInternal()

Starts Handling RDF ensuring that if the target Graph is non-empty RDF is handling into a temporary Graph until parsing completes successfully.

Declaration
protected override void StartRdfInternal()
Overrides
BaseRdfHandler.StartRdfInternal()

Implements

ICommentRdfHandler
IRdfHandler
INodeFactory

Extension Methods

Extensions.ToSafeString(object)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
HandlerExtensions.Apply(IRdfHandler, IGraph)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • GraphHandler(IGraph)
  • Properties
    • AcceptsAll
    • Graph
  • Methods
    • EndRdfInternal(bool)
    • HandleBaseUriInternal(Uri)
    • HandleNamespaceInternal(string, Uri)
    • HandleQuadInternal(Triple, IRefNode)
    • HandleTripleInternal(Triple)
    • StartRdfInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX