Class BlankNodeGenerator
Default implementation of the IBlankNodeGenerator interface.
Inheritance
System.Object
BlankNodeGenerator
Implements
Inherited Members
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.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 |
---|---|---|
System.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 |
---|---|---|
System.String | identifier |
Returns
Type | Description |
---|---|
System.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.