Hello,
we're using pygen to generate a Full Data Model and instances. One of our containers can have multiple connections to objects in another container (see the pic below).

As a result, definitions are lists of objects. It is then difficult to query data using tuples:
bays = dm_client.bay.list(
bay_to_line=(space, id),
retrieve_connections="identifier",
limit=None,
).to_pandas()
We can overcome this by reading all bays with retreive_connections=”full” and then querying the data. But we would like to generate a model, where such tricks are not needed and the definitions are not a list. Is it possible?
To generate a model we do this workflow:
neat.read.rdf("lines_bays.jsonld")
neat.infer(max_number_of_instance=-1)
neat.prepare.data_model.cdf_compliant_external_ids()
neat.verify()
neat.convert("dms")
neat.set.data_model_id(("lin", "lines", "v1"))
neat.to.cdf.data_model()
neat.to.cdf.instances()