 |
Summary: Entities, relationships, is_a, has, and assignment
The framework we've laid out so far will allow us to model quite a bit about the world. For example, we can model the following:
  | Daniel is_a man |
  | man is_a person |
  | person has_a age |
  | Daniel.age = 27 |
  | person has_a first_name |
  | Daniel.first_name = "Daniel" |
  | person has_a last_name |
  | Daniel.last_name = "Bigham" |
  | 0.4: man has:0 wife |
  | 0.6: man has:1 wife |
  | Daniel has:1 wife |
  | wife is_a woman |
  | woman is_a person |
  | Meredith is_a wife |
  | Daniel.wife = Meredith |
  | Meredith.first_name = "Meredith" |
  | Meredith.last_name = "Bigham" |
  | 0.4: person has:0 sister |
  | 0.6: person has:(>:0) sister |
  | Daniel has:2 sister |
  | sister is_a woman |
  | Rebekah is_a sister |
  | Hannah is_a sister |
  | Daniel.sister[0] = Rebekah |
  | Daniel.sister[1] = Hannah |
  | Rebekah.first_name = "Rebekah" |
  | Rebekah.last_name = "de Bueger" |
  | Hannah.first_name = "Hannah" |
  | Hannah.last_name = "Bigham" |
|
|
 |