Class BlankNodeGenerator
Default implementation of the IBlankNodeGenerator interface.
Inheritance
System.Object
BlankNodeGenerator
Implements
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 SourceBlankNodeGenerator(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 SourceGenerateBlankNodeIdentifier(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.