Class BlankNodeOutputMapper
Mapper class which remaps Blank Node IDs which aren't valid as-is in a given serialization to a new ID.
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class BlankNodeOutputMapper
Remarks
This also has to take care of the fact that it's possible that these remapped IDs then collide with existing valid IDs in which case these also have to be remapped.
Constructors
| Edit this page View SourceBlankNodeOutputMapper(Func<string, bool>)
Creates a new Blank Node ID mapper.
Declaration
public BlankNodeOutputMapper(Func<string, bool> validator)
Parameters
Type | Name | Description |
---|---|---|
Func<string, bool> | validator | Function which determines whether IDs are valid or not. |
Methods
| Edit this page View SourceGetOutputID(string)
Takes a ID, validates it and returns either the ID or an appropriate remapped ID.
Declaration
public string GetOutputID(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID to map. |
Returns
Type | Description |
---|---|
string |