Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Get descriptors

Returns a list of lightweight descriptors (Ref) for all data sets of a given type. This is useful for browsing the contents of a database without loading full objects. Each descriptor includes only basic metadata (such as @id, name, and category) and can be passed directly as a reference in other API calls, such as specifying a target process in a calculation setup.

JSON-RPCRESTParametersReturns
data/get/descriptorsGET data/{type}@typeList[Ref]

Try it

You can edit and execute the example below. Just make sure an openLCA IPC server is running on port 8080:

// You can change the type here, e.g. to Flow; but note that
// this will try to print all flows of the database below (!).
// So better test this with types like UnitGroup, ImpactMethod,
// ImpactCategory, ...
const descriptors = await call("data/get/descriptors", {
  "@type": "FlowProperty"
});
console.log(descriptors);

Python IPC

import olca_ipc as ipc
import olca_schema as o

client = ipc.Client()
refs = client.get_descriptors(o.FlowProperty)
for ref in refs:
    print(ref.name)
# Area
# Area*time
# Duration
# Energy