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 all data sets of a given type

Returns every complete entity of a given root type from the database. Depending on the protocol or server configuration, this method may be disabled and it is only practical for small collections (such as unit groups). Querying all processes or flows in a large database can overload the server; in most cases, you should fetch descriptors instead.

JSON-RPCRESTParametersReturns
data/get/allGET data/{type}/all@typeList[E > RootEntity]

Try it

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

// safe for small collections like UnitGroup; avoid Process or Flow in large
// databases
const v = await call("data/get/all", {
  "@type": "UnitGroup"
});
console.log(v);

Python IPC

import olca_ipc as ipc
import olca_schema as o

client = ipc.Client()
for group in client.get_all(o.UnitGroup):
    print(group.name)
# Units of area
# Units of energy
# Units of length
# Units of mass
# ...