OntologyData od = baseOntologyInfo.getOntologyData();
assertSame("ontology data should be mapping", MappingOntologyData.class, od.getClass());
// check that all mappings in the model exactly correspond to the original ones:
MappingOntologyData mod = (MappingOntologyData) od;
List<Mapping> mappings = mod.getMappings();
Set<StmtKey> retrievedTriples = new HashSet<StmtKey>();
for ( int i = 0; i < mapps.length; i++ ) {
Mapping mapping = mappings.get(i);
retrievedTriples.add(new StmtKey(mapping.getLeft(), mapping.getRelation(), mapping.getRight()));
}