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 a full data set by name

Returns the complete entity for a given root type and name. Because names in an openLCA database are not required to be unique, this method simply returns the first matching data set it finds.

JSON-RPCRESTParametersReturns
data/getGET data/{type}/name/{name}@type, nameE > RootEntity

Try it

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

// This will try to fetch the flow property Mass from your database.
const v = await call("data/get", {
  "@type": "FlowProperty",
  "name": "Mass",
});
console.log(v);

Python IPC

import olca_ipc as ipc
import olca_schema as o

client = ipc.Client()
mass = client.get(o.FlowProperty, name="Mass")
print(mass)
# FlowProperty(
#   name='Mass',
#   id='93a60a56-a3c8-11da-a746-0800200b9a66',
#   unit_group=Ref(id='93a60a57-a4c8-11da-a746-0800200c9a66', ...