Show / Hide Table of Contents

Class ValuedNodeExtensions

Extension Methods related to valued nodes.

Inheritance
object
ValuedNodeExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Nodes
Assembly: dotNetRdf.dll
Syntax
public static class ValuedNodeExtensions

Methods

| Edit this page View Source

AsSafeBoolean(IValuedNode)

Tries to get the result of calling AsBoolean() on a node throwing an error if the node is null.

Declaration
public static bool AsSafeBoolean(this IValuedNode n)
Parameters
Type Name Description
IValuedNode n

Node.

Returns
Type Description
bool
Exceptions
Type Condition
RdfQueryException

Thrown if the input is null of the specific valued node cannot be cast to a boolean.

| Edit this page View Source

AsValuedNode(INode)

Takes a INode and converts it to a IValuedNode if it is not already an instance that implements the interface.

Declaration
public static IValuedNode AsValuedNode(this INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IValuedNode

Valued Node.

  • Edit this page
  • View Source
In this article
  • Methods
    • AsSafeBoolean(IValuedNode)
    • AsValuedNode(INode)
Back to top Generated by DocFX