Show / Hide Table of Contents

Class GraphHandler

A RDF Handler which asserts Triples into a Graph.
Inheritance
System.Object
BaseHandler
BaseRdfHandler
GraphHandler
Implements
IRdfHandler
INodeFactory
Inherited Members
BaseRdfHandler.StartRdf()
BaseRdfHandler.EndRdf(Boolean)
BaseRdfHandler.HandleNamespace(String, Uri)
BaseRdfHandler.HandleBaseUri(Uri)
BaseRdfHandler.HandleTriple(Triple)
BaseHandler.NodeFactory
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.CreateVariableNode(String)
BaseHandler.GetNextBlankNodeID()
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)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRDF.dll
Syntax
public class GraphHandler : BaseRdfHandler, IRdfHandler, INodeFactory

Constructors

| Improve this Doc View Source

GraphHandler(IGraph)

Creates a new Graph Handler.
Declaration
public GraphHandler(IGraph g)
Parameters
Type Name Description
IGraph g Graph.

Properties

| Improve this Doc View Source

AcceptsAll

Gets that this Handler accepts all Triples.
Declaration
public override bool AcceptsAll { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseRdfHandler.AcceptsAll
| Improve this Doc View Source

BaseUri

Gets the Base URI of the Graph currently being parsed into.
Declaration
public Uri BaseUri { get; }
Property Value
Type Description
System.Uri
| Improve this Doc View Source

Graph

Gets the Graph that this handler wraps.
Declaration
protected IGraph Graph { get; }
Property Value
Type Description
IGraph

Methods

| Improve this Doc View Source

EndRdfInternal(Boolean)

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
System.Boolean ok Indicates whether parsing completed OK.
Overrides
BaseRdfHandler.EndRdfInternal(Boolean)
| Improve this Doc 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
System.Uri baseUri Base URI.
Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleBaseUriInternal(Uri)
| Improve this Doc 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
System.String prefix Namespace Prefix.
System.Uri namespaceUri Namespace URI.
Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleNamespaceInternal(String, Uri)
| Improve this Doc 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
System.Boolean
Overrides
BaseRdfHandler.HandleTripleInternal(Triple)
| Improve this Doc 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

IRdfHandler
INodeFactory

Extension Methods

Extensions.AsEnumerable<T>(T)
HandlerExtensions.Apply(IRdfHandler, IGraph)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • GraphHandler(IGraph)
  • Properties
    • AcceptsAll
    • BaseUri
    • Graph
  • Methods
    • EndRdfInternal(Boolean)
    • HandleBaseUriInternal(Uri)
    • HandleNamespaceInternal(String, Uri)
    • HandleTripleInternal(Triple)
    • StartRdfInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX