yaml_ld.to_rdf.ToRDFOptions
Bases: BaseOptions
, ExtractAllScriptsOptions
Options for converting *-LD to RDF.
document_loader
class-attribute
instance-attribute
document_loader: Any = None
The document loader.
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.
format
class-attribute
instance-attribute
format: str | None = None
The format to use to output a string: 'application/n-quads' for N-Quads.
produce_generalized_rdf
class-attribute
instance-attribute
produce_generalized_rdf: bool = False
True to output generalized RDF, false to produce only standard RDF.
rdf_direction
class-attribute
instance-attribute
rdf_direction: str = 'i18n-datatype'
Only 'i18n-datatype' supported.