Skip to content

yaml_ld.expand.ExpandOptions

Bases: BaseOptions, ExtractAllScriptsOptions, ExpandContextOptions

Options for jsonld.expand().

base class-attribute instance-attribute

base: URI | None = None

The base IRI to use.

document_loader class-attribute instance-attribute

document_loader: Any = None

The document loader.

expand_context class-attribute instance-attribute

expand_context: JsonLdRecord | URI | None = None

A context to expand with.

extract_all_scripts class-attribute instance-attribute

extract_all_scripts: bool = False

True to extract all YAML-LD script elements from HTML, False to extract just the first.