Class BlankNodeMapper
Mapper class which creates Blank Node IDs and ensures that auto-assigned and user specified IDs don't collide.
Inheritance
System.Object
BlankNodeMapper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class BlankNodeMapper
Constructors
| Improve this Doc View SourceBlankNodeMapper()
Creates a new Blank Node Mapper.
Declaration
public BlankNodeMapper()
BlankNodeMapper(string)
Creates a new Blank Node Mapper that uses a custom Prefix.
Declaration
public BlankNodeMapper(string prefix)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | Prefix. |
Methods
| Improve this Doc View SourceCheckID(ref string)
Checks that an ID can be used as a Blank Node ID remapping it to another ID if necessary.
Declaration
public void CheckID(ref string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID to be checked. |
Remarks
If the ID is not known it is added to the ID maps. If the ID is known but is user-assigned then this can be used fine. If the ID is known and was auto-assigned then it has to be remapped to a different ID.
GetNextID()
Gets the next available auto-assigned Blank Node ID.
Declaration
public string GetNextID()
Returns
Type | Description |
---|---|
string |