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 entityB
it only stores a reference toB
that is of type Ref. This reference contains the type (if it cannot be inferred from field inA
), the ID, and some optional meta-data ofB
.
+---+ 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 type | Rest parameter |
---|---|
Actor | actor , actors |
Category | category , categories |
Currency | currency , currencies |
DQSystem | dq-system , dq-systems |
Epd | epd , epds |
Flow | flow , flows |
FlowProperty | flow-property , flow-properties |
ImpactCategory | impact-category , impact-categories |
ImpactMethod | impact-method , method , impact-methods , methods |
Location | location , locations |
Parameter | parameter , parameters |
Process | process , processes |
ProductSystem | product-system , product-systems , model , models |
Project | project , projects |
Result | result , results |
SocialIndicator | social-indicator , social-indicators |
Source | source , sources |
UnitGroup | unit-group , unit-groups |