Method | Description | |
---|---|---|
DeepCompare ( JToken v1, JToken v2 ) : bool | ||
DeepCompare ( JToken v1, JToken v2, bool listOrderMatters ) : bool | ||
DeepContains ( Newtonsoft.Json.Linq.JArray values, JToken value ) : bool | ||
IsAbsoluteIri ( string value ) : bool | ||
IsRelativeIri ( string value ) : bool |
Method | Description | |
---|---|---|
AddValue ( Newtonsoft.Json.Linq.JObject subject, string property, JToken value ) : void | ||
AddValue ( Newtonsoft.Json.Linq.JObject subject, string property, JToken value, bool propertyIsArray ) : void | ||
AddValue ( Newtonsoft.Json.Linq.JObject subject, string property, JToken value, bool propertyIsArray, bool allowDuplicate ) : void |
Adds a value to a subject. Adds a value to a subject. If the value is an array, all values in the array will be added. Note: If the value is a subject that already exists as a property of the given subject, this method makes no attempt to deeply merge properties. Instead, the value will not be added. |
|
Clone ( JToken value ) : JToken | ||
CompareShortestLeast ( string a, string b ) : int |
Compares two strings first based on length and then lexicographically. Compares two strings first based on length and then lexicographically. |
|
CompareValues ( JToken v1, JToken v2 ) : bool |
Compares two JSON-LD values for equality. Compares two JSON-LD values for equality. Two JSON-LD values will be considered equal if: 1. They are both primitives of the same type and value. 2. They are both @values with the same @value, @type, and @language, OR 3. They both have @ids they are the same. |
|
ExpandLanguageMap ( Newtonsoft.Json.Linq.JObject languageMap ) : Newtonsoft.Json.Linq.JArray |
Expands a language map. Expands a language map. |
|
FindContextUrls ( JToken input, Newtonsoft.Json.Linq.JObject urls, bool replace ) : bool |
Finds all @context URLs in the given JSON-LD input. Finds all @context URLs in the given JSON-LD input. |
|
HasProperty ( Newtonsoft.Json.Linq.JObject subject, string property ) : bool | ||
HasValue ( Newtonsoft.Json.Linq.JObject subject, string property, JToken value ) : bool |
Determines if the given value is a property of the given subject. Determines if the given value is a property of the given subject. |
|
IsArray ( JToken v ) : bool |
Returns true if the given value is a JSON-LD Array
|
|
IsBlankNode ( JToken v ) : bool |
Returns true if the given value is a blank node. Returns true if the given value is a blank node. |
|
IsKeyword ( JToken key ) : bool |
Returns whether or not the given value is a keyword (or a keyword alias). Returns whether or not the given value is a keyword (or a keyword alias). |
|
IsList ( JToken v ) : bool |
Returns true if the given value is a JSON-LD List
|
|
IsNode ( JToken v ) : bool |
Returns true if the given value is a subject with properties. Returns true if the given value is a subject with properties. |
|
IsNodeReference ( JToken v ) : bool |
Returns true if the given value is a subject reference. Returns true if the given value is a subject reference. |
|
IsObject ( JToken v ) : bool |
Returns true if the given value is a JSON-LD Object
|
|
IsString ( JToken v ) : bool |
Returns true if the given value is a JSON-LD string
|
|
IsValue ( JToken v ) : bool |
Returns true if the given value is a JSON-LD value
|
|
MergeCompactedValue ( Newtonsoft.Json.Linq.JObject obj, string key, JToken value ) : void | ||
MergeValue ( Newtonsoft.Json.Linq.JObject obj, string key, JToken value ) : void | ||
PrependBase ( JToken baseobj, string iri ) : string |
Prepends a base IRI to the given relative IRI. Prepends a base IRI to the given relative IRI. |
|
RemoveBase ( JToken baseobj, string iri ) : string |
Removes a base IRI from the given absolute IRI. Removes a base IRI from the given absolute IRI. |
|
RemovePreserve ( Context ctx, JToken input, JsonLD.Core.JsonLdOptions opts ) : JToken |
Removes the @preserve keywords as the last step of the framing algorithm. Removes the @preserve keywords as the last step of the framing algorithm. |
|
RemoveValue ( Newtonsoft.Json.Linq.JObject subject, string property, Newtonsoft.Json.Linq.JObject value ) : void |
Removes a value from a subject. Removes a value from a subject. |
|
RemoveValue ( Newtonsoft.Json.Linq.JObject subject, string property, Newtonsoft.Json.Linq.JObject value, bool propertyIsArray ) : void | ||
Resolve ( JToken input, Newtonsoft.Json.Linq.JObject cycles ) : void | ||
ResolveContextUrls ( JToken input ) : void |
Resolves external @context URLs using the given URL resolver. Resolves external @context URLs using the given URL resolver. Each instance of @context in the input that refers to a URL will be replaced with the JSON @context found at that URL. |
|
ValidateTypeValue ( JToken v ) : bool |
Throws an exception if the given value is not a valid @type value. Throws an exception if the given value is not a valid @type value. |
|
_join ( IList |
replicate javascript .join because i'm too lazy to keep doing it manually
|
|
_split ( string @string, string delim ) : IList |
replicates the functionality of javascript .split, which has different results to java's String.split if there is a trailing /
|
public static DeepCompare ( JToken v1, JToken v2 ) : bool | ||
v1 | JToken | |
v2 | JToken | |
return | bool |
public static DeepCompare ( JToken v1, JToken v2, bool listOrderMatters ) : bool | ||
v1 | JToken | |
v2 | JToken | |
listOrderMatters | bool | |
return | bool |
public static DeepContains ( Newtonsoft.Json.Linq.JArray values, JToken value ) : bool | ||
values | Newtonsoft.Json.Linq.JArray | |
value | JToken | |
return | bool |
public static IsAbsoluteIri ( string value ) : bool | ||
value | string | |
return | bool |
public static IsRelativeIri ( string value ) : bool | ||
value | string | |
return | bool |