01: package org.ontoware.semversion.impl;
02:
03: import org.ontoware.aifbcommons.collection.ClosableIterator;
04: import org.ontoware.rdf2go.model.Model;
05: import org.ontoware.rdf2go.model.Statement;
06:
07: public class ModelCompareUtils {
08:
09: public static boolean equals(Model a, Model b) {
10: ClosableIterator<Statement> it = b.iterator();
11: org.ontoware.rdf2go.model.Diff diff = a.getDiff(it);
12: it.close();
13: boolean added = diff.getAdded().iterator().hasNext();
14: boolean removed = diff.getRemoved().iterator().hasNext();
15: return !added & !removed;
16: }
17:
18: }
|