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
# The JSON-LD object to copy and perform the expansion upon.
158
+
# @param [Proc] serializer (nil)
159
+
# A Serializer method used for generating the JSON serialization of the result. If absent, the internal Ruby objects are returned, which can be transformed to JSON externally via `#to_json`.
# The base context to use when compacting the input.
211
+
# @param [Proc] serializer (nil)
212
+
# A Serializer instance used for generating the JSON serialization of the result. If absent, the internal Ruby objects are returned, which can be transformed to JSON externally via `#to_json`.
213
+
# See {JSON::LD::API.serializer}.
207
214
# @param [Boolean] expanded (false) Input is already expanded
# An optional external context to use additionally to the context embedded in input when expanding the input.
253
261
# @param [Boolean] expanded (false) Input is already expanded
262
+
# @param [Proc] serializer (nil)
263
+
# A Serializer instance used for generating the JSON serialization of the result. If absent, the internal Ruby objects are returned, which can be transformed to JSON externally via `#to_json`.
# The resulting `Array` is either returned or yielded, if a block is given.
529
542
#
530
543
# @param [RDF::Enumerable] input
544
+
# @param [Boolean] useRdfType (false)
545
+
# If set to `true`, the JSON-LD processor will treat `rdf:type` like a normal property instead of using `@type`.
546
+
# @param [Boolean] useNativeTypes (false) use native representations
547
+
# @param [Proc] serializer (nil)
548
+
# A Serializer instance used for generating the JSON serialization of the result. If absent, the internal Ruby objects are returned, which can be transformed to JSON externally via `#to_json`.
549
+
# See {JSON::LD::API.serializer}.
531
550
# @param [Hash{Symbol => Object}] options
532
551
# @option options (see #initialize)
533
-
# @option options [Boolean] :useRdfType (false)
534
-
# If set to `true`, the JSON-LD processor will treat `rdf:type` like a normal property instead of using `@type`.
535
-
# @option options [Boolean] :useNativeTypes (false) use native representations
536
552
# @yield jsonld
537
553
# @yieldparam [Hash] jsonld
538
554
# The JSON-LD document in expanded form
539
555
# @yieldreturn [Object] returned object
540
556
# @return [Object, Hash]
541
557
# If a block is given, the result of evaluating the block is returned, otherwise, the expanded JSON-LD document
0 commit comments