C# Class JsonLD.Core.RDFDatasetUtils

Datei anzeigen Open project: NuGet/json-ld.net Class Usage Examples

Public Methods

Method Description
Escape ( string str ) : string
ParseNQuads ( string input ) : RDFDataset

Parses RDF in the form of N-Quads.

Parses RDF in the form of N-Quads.

ToNQuads ( RDFDataset dataset ) : string
Unescape ( string str ) : string

Private Methods

Method Description
AssertAbsoluteIri ( string iri ) : void
GraphToRDF ( Newtonsoft.Json.Linq.JObject graph, JsonLD.Core.UniqueNamer namer ) : Newtonsoft.Json.Linq.JArray
ListToRDF ( Newtonsoft.Json.Linq.JArray list, JsonLD.Core.UniqueNamer namer, Newtonsoft.Json.Linq.JObject subject, Newtonsoft.Json.Linq.JObject predicate, Newtonsoft.Json.Linq.JArray triples ) : void

Converts a @list value into linked list of blank node RDF triples (an RDF collection).

Converts a @list value into linked list of blank node RDF triples (an RDF collection).

ObjectToRDF ( JToken item, JsonLD.Core.UniqueNamer namer ) : Newtonsoft.Json.Linq.JObject

Converts a JSON-LD value object to an RDF literal or a JSON-LD string or node object to an RDF resource.

Converts a JSON-LD value object to an RDF literal or a JSON-LD string or node object to an RDF resource.

ToNQuad ( RDFDataset triple, string graphName ) : string
ToNQuad ( RDFDataset triple, string graphName, string bnode ) : string

Method Details

Escape() public static method

public static Escape ( string str ) : string
str string
return string

ParseNQuads() public static method

Parses RDF in the form of N-Quads.
Parses RDF in the form of N-Quads.
public static ParseNQuads ( string input ) : RDFDataset
input string the N-Quads input to parse.
return RDFDataset

ToNQuads() public static method

public static ToNQuads ( RDFDataset dataset ) : string
dataset RDFDataset
return string

Unescape() public static method

public static Unescape ( string str ) : string
str string
return string