Data management

The openLCA IPC protocol is based on the openLCA Schema as data exchange format. Thus, parameter and return types of this documentation often link to their respective description in the openLCA schema documentation. The openLCA schema is a typed data format with the following principles:

  • There are stand-alone entities like processes or flows, called root entities, and composition entities that can only exist within another entity, like the inputs and outputs (called exchanges) of a process.
  • There is a uniform reference concept in the format: if an entity A references an entity B it only stores a reference to B that is of type Ref. This reference contains the type (if it cannot be inferred from field in A), the ID, and some optional meta-data of B.
    +---+   Ref   +---+
    | A |  ---->  | B |
    +---+         +---+

For example, an output in a process is of type Exchange and an exchange contains a reference to a flow. In addition, instances of the Ref type are often used as data set descriptors: instead of loading the full data set it is often enough to just display some meta-data of an entity (for example in search results).

Many of the data management functions are the same for all root entity types. Thus, the respective type is often just an additional parameter of a method call. The table below shows the root entity types and their parameter value in the Rest API (multiple values can map to the same type for convenience):

Root entity typeRest parameter
Actoractor, actors
Categorycategory, categories
Currencycurrency, currencies
DQSystemdq-system, dq-systems
Epdepd, epds
Flowflow, flows
FlowPropertyflow-property, flow-properties
ImpactCategoryimpact-category, impact-categories
ImpactMethodimpact-method, method, impact-methods, methods
Locationlocation, locations
Parameterparameter, parameters
Processprocess, processes
ProductSystemproduct-system, product-systems, model, models
Projectproject, projects
Resultresult, results
SocialIndicatorsocial-indicator, social-indicators
Sourcesource, sources
UnitGroupunit-group, unit-groups