def binary_concept(label, closures, subj, obj, records):
 if ((not (label == u'border')) and (not (label == u'contain'))):
  label = (label + u'_of')
 c = Concept(label, arity=2, closures=closures, extension=set())
 for record in records:
  c.augment((record[subj], record[obj]))
 c.close()
 return c

def binary_concept ( label , closures , subj , obj , records ) : if ( ( not ( label == u'border' ) ) and ( not ( label == u'contain' ) ) ) : label = ( label + u'_of' ) c = Concept ( label , arity = 2 , closures = closures , extension = set ( ) ) for record in records : c . augment ( ( record [ subj ] , record [ obj ] ) ) c . close ( ) return c
make a binary concept out of the primary key and another field in a record .