REGISTER NOW: DdS Autumn School! 🇨🇭 Grosshöchstetten (Switzerland) 🗓️ 6.-11. October 2024

bw2io.importers.json_ld_lcia#

Module Contents#

Classes#

JSONLDLCIAImporter

Importer for the OLCD JSON-LD LCIA data format.

class bw2io.importers.json_ld_lcia.JSONLDLCIAImporter(dirpath)[source]#

Bases: bw2io.importers.base_lcia.LCIAImporter

Inheritance diagram of bw2io.importers.json_ld_lcia.JSONLDLCIAImporter

Importer for the OLCD JSON-LD LCIA data format.

Parameters#

dirpath: str

Directory path for the JSON-LD data.

Attributes#

format: str

Data format description.

extractor: JSONLDExtractor

Extractor class for the JSON-LD data.

data: dict

Extracted LCIA data.

strategies: list

List of strategies to apply to the LCIA data.

Methods#

match_biosphere_by_id(database_name)

Matches biosphere flows to a specified database by ID.

Initialize the JSONLDLCIAImporter object.

Parameters#

dirpath: str

Directory path for the JSON-LD data.

Returns#

None

extractor[source]#
format = 'OLCA JSON-LD'[source]#
match_biosphere_by_id(database_name)[source]#

Matches biosphere flows to a specified database by ID.

Parameters#
database_name: str

Name of the biosphere database.

Returns#

None