wxyz.jsonld#

Isomorphic widgets for working with JSON-LD algorithms

class wxyz.jsonld.Compact(**kwargs: Any)[source]#

Bases: Fn, JSONLDBase

Compact a JSON document with a context

mode#

whether to execute transformations on the client and/or the kernel

source: any#

the source

the_function(source, context, expand_context)[source]#

actually compact

the_observer(*_)#

Base observer that updates value and/or error

value: any#

the value produced by evaluating the function

class wxyz.jsonld.Expand(**kwargs: Any)[source]#

Bases: Fn, JSONLDBase

Expand a JSON document to a list of nodes

mode#

whether to execute transformations on the client and/or the kernel

source: any#

the source

the_function(source, expand_context)[source]#

actually expand

the_observer(*_)#

Base observer that updates value and/or error

value: any#

the value produced by evaluating the function

class wxyz.jsonld.Flatten(**kwargs: Any)[source]#

Bases: Fn, JSONLDBase

Flatten a JSON document to a flat graph

mode#

whether to execute transformations on the client and/or the kernel

source: any#

the source

the_function(source, context, expand_context)[source]#

actually flatten

the_observer(*_)#

Base observer that updates value and/or error

value: any#

the value produced by evaluating the function

class wxyz.jsonld.Frame(**kwargs: Any)[source]#

Bases: Fn, JSONLDBase

Frame a JSON document

mode#

whether to execute transformations on the client and/or the kernel

source: any#

the source

the_function(source, frame, expand_context)[source]#

actually frame

the_observer(*_)#

Base observer that updates value and/or error

value: any#

the value produced by evaluating the function

class wxyz.jsonld.Normalize(**kwargs: Any)[source]#

Bases: Fn, JSONLDBase

Normalize a JSON document

mode#

whether to execute transformations on the client and/or the kernel

source: any#

the source

the_function(source, format, expand_context)[source]#

actually normalize

the_observer(*_)#

Base observer that updates value and/or error

value: any#

the value produced by evaluating the function