Skip to content

yaml_ld.document_parsers.yaml_parser.YAMLDocumentParser

Bases: BaseDocumentParser

Parse YAML documents.

__call__

__call__(
    data_stream: BytesIO,
    source: str,
    options: DocumentLoaderOptions,
) -> JsonLdRecord | list[JsonLdRecord]

Parse YAML document stream into LD.

_yaml_document_from_stream

_yaml_document_from_stream(
    stream, extract_all_scripts: bool
)