On 17/02/2021 18:02, Martynas Jusevičius wrote:
Hi,

how does one append one Dataset to another? I know I can do stuff like

d2.getDefaultModel().add(d1.getDefaultModel());
for (String name : d1.listNames())
     d2 = d2.addNamedModel(d1.getNamedModel(name));

but that is not very concise, and probably not very performant either?

Doesn't look too bad. Maybe if there are huge numbers of very small graph e.g. one triple. There is no term copying, only datastructure changes.

Of course, if the datasets share graphs then it gets "interesting".


I'm wondering why there isn't a dedicated method?

Use case?



Martynas

Reply via email to