/* protected IList<KifObject> createSlotsOfInstance(DataFrame frame, KifSequence<KifSentence> slotsValues) { * List<KifObject> result = new List<KifObject>(createOwnSlotsOfInstance(frame, slotsValues)); * foreach (Slot slot in frame.ownSlots.Values) { * result.Add(createSlotOfInstance(frame.iden, slot, slotsValues)); * } * return result; * } */ public void createInstanceFrame(DataFrame frame) { string frameName = frame.iden; KifSequence <KifSentence> sequence = new KifSequence <KifSentence>(createDocumentation(generateFrameComment(false, frameName), frameName)); sequence.addRange(processingParentsOfInstance(frame)); IList <KifObject> slots = createOwnSlotsOfInstance(frame, sequence); KifObjectDefinition relation = new KifObjectDefinition(frame.iden, sequence); _model.addObject(relation); _model.addRange(slots); }
public void createClassFrame(DataFrame frame) //TODO: order { string frameName = frame.iden; KifSequence <KifSentence> sequence = new KifSequence <KifSentence>(createDocumentation(generateFrameComment(true, frameName), frameName)); sequence.addRange(processingParentsXXX(frame)); sequence.addItem(createArity(frameName, 1)); sequence.addItem(createUnRelation(CLASS, frameName)); IList <KifObject> slots = createSlots(frame, sequence); KifRelationDefinition relation = new KifRelationDefinition(frame.iden, sequence); _model.addObject(relation); _model.addRange(slots); }