Interface IBlankNodeGenerator
Interface for a blank node identifier generator that generates a unique blank node identifier for a given input identifier.
Namespace: VDS.RDF.JsonLd
Assembly: dotNetRdf.dll
Syntax
public interface IBlankNodeGenerator
Methods
| Edit this page View SourceClone()
Returns a copy of the object.
Declaration
IBlankNodeGenerator Clone()
Returns
Type | Description |
---|---|
IBlankNodeGenerator |
GenerateBlankNodeIdentifier(string)
Return a unique blank node identifier for the specified input identifier.
Declaration
string GenerateBlankNodeIdentifier(string identifier)
Parameters
Type | Name | Description |
---|---|---|
string | identifier |
Returns
Type | Description |
---|---|
string | A blank node identifier string (using standard Turtle notation for blank node identifiers). |
Remarks
An implementation MUST guarantee to return the same blank node identifier when called multiple times with the same input identifier.
GetDictionary()
Returns the mapping dictionary. Only useful for unit tests.
Declaration
IDictionary<string, string> GetDictionary()
Returns
Type | Description |
---|---|
IDictionary<string, string> |
GetMappedIdentifier(string)
Returns the mapped identifier for the specified input identifier, or null if no mapping exists.
Declaration
string GetMappedIdentifier(string identifier)
Parameters
Type | Name | Description |
---|---|---|
string | identifier |
Returns
Type | Description |
---|---|
string |
GetMappedIdentifiers()
Returns all input identifiers mapped by this issuer.
Declaration
IEnumerable<string> GetMappedIdentifiers()
Returns
Type | Description |
---|---|
IEnumerable<string> |