Class NodeMapGenerator
An implementation of the JSON-LD node map generation algorithm.
Inheritance
System.Object
NodeMapGenerator
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 NodeMapGenerator : INodeMapGenerator
Methods
| Improve this Doc View SourceGenerateMergedNodeMap(JObject)
Creates a new node map object by merging the graph-level node maps contained in the input graph map object.
Declaration
public JObject GenerateMergedNodeMap(JObject graphMap)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.Linq.JObject | graphMap | The input graph map to be merged. |
Returns
Type | Description |
---|---|
Newtonsoft.Json.Linq.JObject | The merged node map as a new object (the original node map is not modified). |
GenerateNodeMap(JToken, IBlankNodeGenerator)
Applies the Node Map Generation algorithm to the specified input.
Declaration
public JObject GenerateNodeMap(JToken element, IBlankNodeGenerator identifierGenerator = null)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.Linq.JToken | element | The element to be processed. |
IBlankNodeGenerator | identifierGenerator | The identifier generator instance to use when creating new blank node identifiers. Defaults to a new instance of BlankNodeGenerator. |
Returns
Type | Description |
---|---|
Newtonsoft.Json.Linq.JObject | The generated node map dictionary as a JObject instance. |