yaml_ld.flatten.FlattenOptions
Bases: BaseOptions
, ExtractAllScriptsOptions
, ExpandContextOptions
Options to flatten a YAML-LD document.
compact_arrays
class-attribute
instance-attribute
compact_arrays: bool = True
Compact arrays to single values when appropriate?
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.