Show / Hide Table of Contents

Class BlankNodeGenerator

Default implementation of the IBlankNodeGenerator interface.

Inheritance
System.Object
BlankNodeGenerator
Implements
IBlankNodeGenerator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.JsonLd.Processors
Assembly: dotNetRdf.dll
Syntax
public class BlankNodeGenerator : IBlankNodeGenerator

Constructors

| Improve this Doc View Source

BlankNodeGenerator(string)

Create a new generator instance.

Declaration
public BlankNodeGenerator(string counterPrefix = "b")
Parameters
Type Name Description
string counterPrefix

The value to insert before the counter part of the generated blank node identifier. Must be a non-empty string.

Methods

| Improve this Doc View Source

GenerateBlankNodeIdentifier(string)

Generates a unique blank node identifier for the specified input identifier.

Declaration
public string GenerateBlankNodeIdentifier(string identifier)
Parameters
Type Name Description
string identifier
Returns
Type Description
string
Remarks

Blank node identifiers are of the form _:{counterPrefix}{count} where {counterPrefix} is the string provided in the constructor of this class and {count} is a monotonically increasing integer value.

Implements

IBlankNodeGenerator

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BlankNodeGenerator(string)
  • Methods
    • GenerateBlankNodeIdentifier(string)
  • Implements
  • Extension Methods
Back to top Generated by DocFX