On 18/02/2021 18:17, Martynas Jusevičius wrote:
I'm wondering why there isn't a dedicated method?

Use case?

* collecting multiple Datasets into one (merging quads)
* having a consistent API

What I'm thinking is a method for quads which corresponds to
Model::add for triples. In that case it should be called Dataset::add,
for consistency.


ds1.asDatasetGraph().find().forEachRemaining(ds2.asDatasetGraph()::add);

or for a more compact format:

import ...Iter

forEach(ds1.asDatasetGraph().find(),
        ds2.asDatasetGraph()::add);



Or is the quad-case more complicated than triples?

See previous email.





Martynas

Reply via email to