You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# An external context to use additionally to the context embedded in input when expanding the input.
68
68
# @param [Hash{Symbol => Object}] options
69
+
# @option options [Symbol] :adapter used with MultiJson
69
70
# @option options [RDF::URI, String, #to_s] :base
70
71
# The Base IRI to use when expanding the document. This overrides the value of `input` if it is a _IRI_. If not specified and `input` is not an _IRI_, the base IRI defaults to the current document IRI if in a browser context, or the empty string if there is no document context. If not specified, and a base IRI is found from `input`, options[:base] will be modified with this value.
71
72
# @option options [Boolean] :compactArrays (true)
@@ -74,10 +75,10 @@ class API
74
75
# Creates document relative IRIs when compacting, if `true`, otherwise leaves expanded.
75
76
# @option options [Proc] :documentLoader
76
77
# The callback of the loader to be used to retrieve remote documents and contexts. If specified, it must be used to retrieve remote documents and contexts; otherwise, if not specified, the processor's built-in loader must be used. See {documentLoader} for the method signature.
77
-
# @option options [Boolean] :lowercaseLanguage
78
-
# By default, language tags are left as is. To normalize to lowercase, set this option to `true`.
# If set, when given an HTML input without a fragment identifier, extracts all `script` elements with type `application/ld+json` into an array during expansion.
# When set, this has the effect of inserting a context definition with `@language` set to the associated value, creating a default language for interpreting string values.
87
88
# @option options [Symbol] :library
88
89
# One of :nokogiri or :rexml. If nil/unspecified uses :nokogiri if available, :rexml otherwise.
90
+
# @option options [Boolean] :lowercaseLanguage
91
+
# By default, language tags are left as is. To normalize to lowercase, set this option to `true`.
92
+
# @option options [Boolean] :ordered (true)
93
+
# Order traversal of dictionary members by key when performing algorithms.
89
94
# @option options [String] :processingMode
90
95
# Processing mode, json-ld-1.0 or json-ld-1.1.
91
-
# If `processingMode` is not specified, a mode of `json-ld-1.0` or `json-ld-1.1` is set, the context used for `expansion` or `compaction`.
92
-
# @option options [Boolean] rdfstar (false)
96
+
# @option options [Boolean] :rdfstar (false)
93
97
# support parsing JSON-LD-star statement resources.
94
98
# @option options [Boolean] :rename_bnodes (true)
95
99
# Rename bnodes as part of expansion, or keep them the same.
# If object is an IRI, blank node identifier, or statement, and node map does not have an object member, create one and initialize its value to a new JSON object consisting of a single member @id whose value is set to object.
# If predicate equals rdf:type, and object is an IRI or blank node identifier, append object to the value of the @type member of node. If no such member exists, create one and initialize it to an array whose only item is object. Finally, continue to the next RDF triple.
0 commit comments