createdb;
newstore personnel birkbeck;
use birkbeck;

settype houseNumber integer;

add <<person>>      [dean]; 
add <<person>>      [hao];
add <<person>>      [mat];
add <<person>>      [edgar];
add <<room>>        [NG26];
add <<room>>        [B34E];
add <<project>>     [automed];
add <<project>>     [tristarp];
add <<houseNumber>> [64];
add <<road>>        [Northdown Street];
add <<town>>        [London];
add <<postCode>>    [N1 9BS];

add <<worksIn,person,project>> [dean,tristarp];
add <<worksIn,person,project>> [mat,tristarp];
add <<worksIn,person,project>> [hao,automed];
add <<worksIn,person,project>> [edgar,automed];
add <<worksIn,person,project>> [dean,automed];

add <<worksIn,person,room>> [mat,B34E];
add <<worksIn,person,room>> [dean,B34E];
add <<worksIn,person,room>> [hao,NG26];
add <<worksIn,person,room>> [edgar,NG26];

add <<address,houseNumber,road,town,postCode>>  
    [64,Northdown Street,London,N1 9BS]; 

add <<livesAt,person,<<address,houseNumber,road,town,postCode>>>> 
    [dean,[64,Northdown Street,London,N1 9BS]]; 



