Show / Hide Table of Contents

Class AnyHandler

A RDF Handler which just determines whether any Triples are present terminating parsing as soon as the first triple is received.

Inheritance
System.Object
BaseHandler
BaseRdfHandler
AnyHandler
Implements
IRdfHandler
INodeFactory
Inherited Members
BaseRdfHandler.StartRdf()
BaseRdfHandler.EndRdf(bool)
BaseRdfHandler.EndRdfInternal(bool)
BaseRdfHandler.HandleNamespace(string, Uri)
BaseRdfHandler.HandleBaseUri(Uri)
BaseRdfHandler.HandleTriple(Triple)
BaseRdfHandler.HandleQuad(Triple, IRefNode)
BaseHandler.NodeFactory
BaseHandler.NormalizeLiteralValues
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 AnyHandler : BaseRdfHandler, IRdfHandler, INodeFactory

Constructors

| Improve this Doc View Source

AnyHandler()

Creates a new Any Handler.

Declaration
public AnyHandler()

Properties

| Improve this Doc View Source

AcceptsAll

Gets that this handler does not accept all triples since it stops as soon as it sees the first triple.

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

Any

Gets whether any Triples have been parsed.

Declaration
public bool Any { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

HandleBaseUriInternal(Uri)

Handles Base URIs by ignoring them.

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 Namespaces by ignoring them.

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

Prefix.

System.Uri namespaceUri

Namespace URI.

Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleNamespaceInternal(string, Uri)
| Improve this Doc View Source

HandleQuadInternal(Triple, IRefNode)

Handles Triples by setting the Any flag and terminating parsing.

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

Triple.

IRefNode graph

The graph containing the triple.

Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleQuadInternal(Triple, IRefNode)
| Improve this Doc View Source

HandleTripleInternal(Triple)

Handles Triples by setting the Any flag and terminating parsing.

Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type Name Description
Triple t

Triple.

Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleTripleInternal(Triple)
| Improve this Doc View Source

StartRdfInternal()

Starts handling RDF by resetting the Any flag to false.

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

Implements

IRdfHandler
INodeFactory

Extension Methods

Extensions.ToSafeString(object)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
HandlerExtensions.Apply(IRdfHandler, IGraph)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • AnyHandler()
  • Properties
    • AcceptsAll
    • Any
  • Methods
    • HandleBaseUriInternal(Uri)
    • HandleNamespaceInternal(string, Uri)
    • HandleQuadInternal(Triple, IRefNode)
    • HandleTripleInternal(Triple)
    • StartRdfInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX