for(IntIterator it = ontologyNF2.keyIterator(); it.hasNext(); ) {
int key = it.next();
MonotonicCollection<NF2> entries = ontologyNF2.get(key);
Iterator<NF2> it2 = entries.iterator();
while(it2.hasNext()) {
NF2 entry = it2.next();
// These terms are of the form A [ r.B and are indexed by A.
Object a = factory.lookupConceptId(entry.lhsA);
String as = (a instanceof String) ? (String) a : "[" + a.toString() + "]";
Object r = factory.lookupRoleId(entry.rhsR);
String rs = (r instanceof String) ? (String) r : "[" + r.toString() + "]";
Object b = factory.lookupConceptId(entry.rhsB);
String bs = (b instanceof String) ? (String) b : "[" + b.toString() + "]";
System.out.println("NF2: " + as + " [ " + rs + "." + bs);
}
}
for(IntIterator it = ontologyNF3.keyIterator(); it.hasNext(); ) {
int aId = it.next();
ConcurrentMap<Integer, Collection<IConjunctionQueueEntry>> entries = ontologyNF3.get(aId);
for(Integer rId : entries.keySet()) {
// These terms are of the form r.A [ b and indexed by A (and then by r)
for(IConjunctionQueueEntry entry : entries.get(rId)) {
int bId = entry.getB();
Object r = factory.lookupRoleId(rId.intValue());
String rs = (r instanceof String) ? (String) r : "[" + r.toString() + "]";
Object a = factory.lookupConceptId(aId);
String as = (a instanceof String) ? (String) a : "[" + a.toString() + "]";
Object b = factory.lookupConceptId(bId);