package org.aksw.jena_sparql_api.utils;
import java.util.Set;
import org.aksw.commons.collections.diff.Diff;
import org.apache.jena.sparql.core.DatasetGraph;
import org.apache.jena.sparql.core.Quad;
public class DatasetGraphDiffUtils {
public static Diff<Set<Quad>> wrapDatasetGraph(Diff<? extends DatasetGraph> diff) {
SetDatasetGraph added = new SetDatasetGraph(diff.getAdded());
SetDatasetGraph removed = new SetDatasetGraph(diff.getRemoved());
Diff<Set<Quad>> result = Diff.<Set<Quad>>create(added, removed);
return result;
}
}