/ test / movie.db.js
movie.db.js
  1  import { Memory } from './lib.js'
  2  const $ = Memory.entity
  3  
  4  // ---
  5  
  6  export const arnold = $(101)
  7  export const terminator = $(200)
  8  export default Memory.create([
  9    { of: $(100), the: 'person/name', is: 'James Cameron' },
 10    { of: $(100), the: 'person/born', is: '1954-08-16T00:00:00Z' },
 11    { of: arnold, the: 'person/name', is: 'Arnold Schwarzenegger' },
 12    { of: arnold, the: 'person/born', is: '1947-07-30T00:00:00Z' },
 13    { of: $(102), the: 'person/name', is: 'Linda Hamilton' },
 14    { of: $(102), the: 'person/born', is: '1956-09-26T00:00:00Z' },
 15    { of: $(103), the: 'person/name', is: 'Michael Biehn' },
 16    { of: $(103), the: 'person/born', is: '1956-07-31T00:00:00Z' },
 17    { of: $(104), the: 'person/name', is: 'Ted Kotcheff' },
 18    { of: $(104), the: 'person/born', is: '1931-04-07T00:00:00Z' },
 19    { of: $(105), the: 'person/name', is: 'Sylvester Stallone' },
 20    { of: $(105), the: 'person/born', is: '1946-07-06T00:00:00Z' },
 21    { of: $(106), the: 'person/name', is: 'Richard Crenna' },
 22    { of: $(106), the: 'person/born', is: '1926-11-30T00:00:00Z' },
 23    { of: $(106), the: 'person/death', is: '2003-01-17T00:00:00Z' },
 24    { of: $(107), the: 'person/name', is: 'Brian Dennehy' },
 25    { of: $(107), the: 'person/born', is: '1938-07-09T00:00:00Z' },
 26    { of: $(108), the: 'person/name', is: 'John McTiernan' },
 27    { of: $(108), the: 'person/born', is: '1951-01-08T00:00:00Z' },
 28    { of: $(109), the: 'person/name', is: 'Elpidia Carrillo' },
 29    { of: $(109), the: 'person/born', is: '1961-08-16T00:00:00Z' },
 30    { of: $(110), the: 'person/name', is: 'Carl Weathers' },
 31    { of: $(110), the: 'person/born', is: '1948-01-14T00:00:00Z' },
 32    { of: $(111), the: 'person/name', is: 'Richard Donner' },
 33    { of: $(111), the: 'person/born', is: '1930-04-24T00:00:00Z' },
 34    { of: $(112), the: 'person/name', is: 'Mel Gibson' },
 35    { of: $(112), the: 'person/born', is: '1956-01-03T00:00:00Z' },
 36    { of: $(113), the: 'person/name', is: 'Danny Glover' },
 37    { of: $(113), the: 'person/born', is: '1946-07-22T00:00:00Z' },
 38    { of: $(114), the: 'person/name', is: 'Gary Busey' },
 39    { of: $(114), the: 'person/born', is: '1944-07-29T00:00:00Z' },
 40    { of: $(115), the: 'person/name', is: 'Paul Verhoeven' },
 41    { of: $(115), the: 'person/born', is: '1938-07-18T00:00:00Z' },
 42    { of: $(116), the: 'person/name', is: 'Peter Weller' },
 43    { of: $(116), the: 'person/born', is: '1947-06-24T00:00:00Z' },
 44    { of: $(117), the: 'person/name', is: 'Nancy Allen' },
 45    { of: $(117), the: 'person/born', is: '1950-06-24T00:00:00Z' },
 46    { of: $(118), the: 'person/name', is: 'Ronny Cox' },
 47    { of: $(118), the: 'person/born', is: '1938-07-23T00:00:00Z' },
 48    { of: $(119), the: 'person/name', is: 'Mark L. Lester' },
 49    { of: $(119), the: 'person/born', is: '1946-11-26T00:00:00Z' },
 50    { of: $(120), the: 'person/name', is: 'Rae Dawn Chong' },
 51    { of: $(120), the: 'person/born', is: '1961-02-28T00:00:00Z' },
 52    { of: $(121), the: 'person/name', is: 'Alyssa Milano' },
 53    { of: $(121), the: 'person/born', is: '1972-12-19T00:00:00Z' },
 54    { of: $(122), the: 'person/name', is: 'Bruce Willis' },
 55    { of: $(122), the: 'person/born', is: '1955-03-19T00:00:00Z' },
 56    { of: $(123), the: 'person/name', is: 'Alan Rickman' },
 57    { of: $(123), the: 'person/born', is: '1946-02-21T00:00:00Z' },
 58    { of: $(124), the: 'person/name', is: 'Alexander Godunov' },
 59    { of: $(124), the: 'person/born', is: '1949-11-28T00:00:00Z' },
 60    { of: $(124), the: 'person/death', is: '1995-05-18T00:00:00Z' },
 61    { of: $(125), the: 'person/name', is: 'Robert Patrick' },
 62    { of: $(125), the: 'person/born', is: '1958-11-05T00:00:00Z' },
 63    { of: $(126), the: 'person/name', is: 'Edward Furlong' },
 64    { of: $(126), the: 'person/born', is: '1977-08-02T00:00:00Z' },
 65    { of: $(127), the: 'person/name', is: 'Jonathan Mostow' },
 66    { of: $(127), the: 'person/born', is: '1961-11-28T00:00:00Z' },
 67    { of: $(128), the: 'person/name', is: 'Nick Stahl' },
 68    { of: $(128), the: 'person/born', is: '1979-12-05T00:00:00Z' },
 69    { of: $(129), the: 'person/name', is: 'Claire Danes' },
 70    { of: $(129), the: 'person/born', is: '1979-04-12T00:00:00Z' },
 71    { of: $(130), the: 'person/name', is: 'George P. Cosmatos' },
 72    { of: $(130), the: 'person/born', is: '1941-01-04T00:00:00Z' },
 73    { of: $(130), the: 'person/death', is: '2005-04-19T00:00:00Z' },
 74    { of: $(131), the: 'person/name', is: 'Charles Napier' },
 75    { of: $(131), the: 'person/born', is: '1936-04-12T00:00:00Z' },
 76    { of: $(131), the: 'person/death', is: '2011-10-05T00:00:00Z' },
 77    { of: $(132), the: 'person/name', is: 'Peter MacDonald' },
 78    { of: $(133), the: 'person/name', is: 'Marc de Jonge' },
 79    { of: $(133), the: 'person/born', is: '1949-02-16T00:00:00Z' },
 80    { of: $(133), the: 'person/death', is: '1996-06-06T00:00:00Z' },
 81    { of: $(134), the: 'person/name', is: 'Stephen Hopkins' },
 82    { of: $(135), the: 'person/name', is: 'Ruben Blades' },
 83    { of: $(135), the: 'person/born', is: '1948-07-16T00:00:00Z' },
 84    { of: $(136), the: 'person/name', is: 'Joe Pesci' },
 85    { of: $(136), the: 'person/born', is: '1943-02-09T00:00:00Z' },
 86    { of: $(137), the: 'person/name', is: 'Ridley Scott' },
 87    { of: $(137), the: 'person/born', is: '1937-11-30T00:00:00Z' },
 88    { of: $(138), the: 'person/name', is: 'Tom Skerritt' },
 89    { of: $(138), the: 'person/born', is: '1933-08-25T00:00:00Z' },
 90    { of: $(139), the: 'person/name', is: 'Sigourney Weaver' },
 91    { of: $(139), the: 'person/born', is: '1949-10-08T00:00:00Z' },
 92    { of: $(140), the: 'person/name', is: 'Veronica Cartwright' },
 93    { of: $(140), the: 'person/born', is: '1949-04-20T00:00:00Z' },
 94    { of: $(141), the: 'person/name', is: 'Carrie Henn' },
 95    { of: $(142), the: 'person/name', is: 'George Miller' },
 96    { of: $(142), the: 'person/born', is: '1945-03-03T00:00:00Z' },
 97    { of: $(143), the: 'person/name', is: 'Steve Bisley' },
 98    { of: $(143), the: 'person/born', is: '1951-12-26T00:00:00Z' },
 99    { of: $(144), the: 'person/name', is: 'Joanne Samuel' },
100    { of: $(145), the: 'person/name', is: 'Michael Preston' },
101    { of: $(145), the: 'person/born', is: '1938-05-14T00:00:00Z' },
102    { of: $(146), the: 'person/name', is: 'Bruce Spence' },
103    { of: $(146), the: 'person/born', is: '1945-09-17T00:00:00Z' },
104    { of: $(147), the: 'person/name', is: 'George Ogilvie' },
105    { of: $(147), the: 'person/born', is: '1931-03-05T00:00:00Z' },
106    { of: $(148), the: 'person/name', is: 'Tina Turner' },
107    { of: $(148), the: 'person/born', is: '1939-11-26T00:00:00Z' },
108    { of: $(149), the: 'person/name', is: 'Sophie Marceau' },
109    { of: $(149), the: 'person/born', is: '1966-11-17T00:00:00Z' },
110    { of: terminator, the: 'movie/title', is: 'The Terminator' },
111    { of: terminator, the: 'movie/year', is: 1984 },
112    { of: terminator, the: 'movie/director', is: $(100) },
113    { of: terminator, the: 'movie/cast', is: arnold },
114    { of: terminator, the: 'movie/cast', is: $(102) },
115    { of: terminator, the: 'movie/cast', is: $(103) },
116    { of: terminator, the: 'movie/sequel', is: $(207) },
117    { of: $(201), the: 'movie/title', is: 'First Blood' },
118    { of: $(201), the: 'movie/year', is: 1982 },
119    { of: $(201), the: 'movie/director', is: $(104) },
120    { of: $(201), the: 'movie/cast', is: $(105) },
121    { of: $(201), the: 'movie/cast', is: $(106) },
122    { of: $(201), the: 'movie/cast', is: $(107) },
123    { of: $(201), the: 'movie/sequel', is: $(209) },
124    { of: $(202), the: 'movie/title', is: 'Predator' },
125    { of: $(202), the: 'movie/year', is: 1987 },
126    { of: $(202), the: 'movie/director', is: $(108) },
127    { of: $(202), the: 'movie/cast', is: arnold },
128    { of: $(202), the: 'movie/cast', is: $(109) },
129    { of: $(202), the: 'movie/cast', is: $(110) },
130    { of: $(202), the: 'movie/sequel', is: $(211) },
131    { of: $(203), the: 'movie/title', is: 'Lethal Weapon' },
132    { of: $(203), the: 'movie/year', is: 1987 },
133    { of: $(203), the: 'movie/director', is: $(111) },
134    { of: $(203), the: 'movie/cast', is: $(112) },
135    { of: $(203), the: 'movie/cast', is: $(113) },
136    { of: $(203), the: 'movie/cast', is: $(114) },
137    { of: $(203), the: 'movie/sequel', is: $(212) },
138    { of: $(204), the: 'movie/title', is: 'RoboCop' },
139    { of: $(204), the: 'movie/year', is: 1987 },
140    { of: $(204), the: 'movie/director', is: $(115) },
141    { of: $(204), the: 'movie/cast', is: $(116) },
142    { of: $(204), the: 'movie/cast', is: $(117) },
143    { of: $(204), the: 'movie/cast', is: $(118) },
144    { of: $(205), the: 'movie/title', is: 'Commando' },
145    { of: $(205), the: 'movie/year', is: 1985 },
146    { of: $(205), the: 'movie/director', is: $(119) },
147    { of: $(205), the: 'movie/cast', is: arnold },
148    { of: $(205), the: 'movie/cast', is: $(120) },
149    { of: $(205), the: 'movie/cast', is: $(121) },
150    {
151      of: $(205),
152      the: 'movie/trivia',
153      is: "In 1986), a sequel was written with an eye to having\n  John McTiernan direct. Schwarzenegger wasn't interested in reprising\n  the role. The script was then reworked with a new central character,\n  eventually played by Bruce Willis, and became Die Hard",
154    },
155    { of: $(206), the: 'movie/title', is: 'Die Hard' },
156    { of: $(206), the: 'movie/year', is: 1988 },
157    { of: $(206), the: 'movie/director', is: $(108) },
158    { of: $(206), the: 'movie/cast', is: $(122) },
159    { of: $(206), the: 'movie/cast', is: $(123) },
160    { of: $(206), the: 'movie/cast', is: $(124) },
161    { of: $(207), the: 'movie/title', is: 'Terminator 2: Judgment Day' },
162    { of: $(207), the: 'movie/year', is: 1991 },
163    { of: $(207), the: 'movie/director', is: $(100) },
164    { of: $(207), the: 'movie/cast', is: arnold },
165    { of: $(207), the: 'movie/cast', is: $(102) },
166    { of: $(207), the: 'movie/cast', is: $(125) },
167    { of: $(207), the: 'movie/cast', is: $(126) },
168    { of: $(207), the: 'movie/sequel', is: $(208) },
169    { of: $(208), the: 'movie/title', is: 'Terminator 3: Rise of the Machines' },
170    { of: $(208), the: 'movie/year', is: 2003 },
171    { of: $(208), the: 'movie/director', is: $(127) },
172    { of: $(208), the: 'movie/cast', is: arnold },
173    { of: $(208), the: 'movie/cast', is: $(128) },
174    { of: $(208), the: 'movie/cast', is: $(129) },
175    { of: $(209), the: 'movie/title', is: 'Rambo: First Blood Part II' },
176    { of: $(209), the: 'movie/year', is: 1985 },
177    { of: $(209), the: 'movie/director', is: $(130) },
178    { of: $(209), the: 'movie/cast', is: $(105) },
179    { of: $(209), the: 'movie/cast', is: $(106) },
180    { of: $(209), the: 'movie/cast', is: $(131) },
181    { of: $(209), the: 'movie/sequel', is: $(210) },
182    { of: $(210), the: 'movie/title', is: 'Rambo III' },
183    { of: $(210), the: 'movie/year', is: 1988 },
184    { of: $(210), the: 'movie/director', is: $(132) },
185    { of: $(210), the: 'movie/cast', is: $(105) },
186    { of: $(210), the: 'movie/cast', is: $(106) },
187    { of: $(210), the: 'movie/cast', is: $(133) },
188    { of: $(211), the: 'movie/title', is: 'Predator 2' },
189    { of: $(211), the: 'movie/year', is: 1990 },
190    { of: $(211), the: 'movie/director', is: $(134) },
191    { of: $(211), the: 'movie/cast', is: $(113) },
192    { of: $(211), the: 'movie/cast', is: $(114) },
193    { of: $(211), the: 'movie/cast', is: $(135) },
194    { of: $(212), the: 'movie/title', is: 'Lethal Weapon 2' },
195    { of: $(212), the: 'movie/year', is: 1989 },
196    { of: $(212), the: 'movie/director', is: $(111) },
197    { of: $(212), the: 'movie/cast', is: $(112) },
198    { of: $(212), the: 'movie/cast', is: $(113) },
199    { of: $(212), the: 'movie/cast', is: $(136) },
200    { of: $(212), the: 'movie/sequel', is: $(213) },
201    { of: $(213), the: 'movie/title', is: 'Lethal Weapon 3' },
202    { of: $(213), the: 'movie/year', is: 1992 },
203    { of: $(213), the: 'movie/director', is: $(111) },
204    { of: $(213), the: 'movie/cast', is: $(112) },
205    { of: $(213), the: 'movie/cast', is: $(113) },
206    { of: $(213), the: 'movie/cast', is: $(136) },
207    { of: $(214), the: 'movie/title', is: 'Alien' },
208    { of: $(214), the: 'movie/year', is: 1979 },
209    { of: $(214), the: 'movie/director', is: $(137) },
210    { of: $(214), the: 'movie/cast', is: $(138) },
211    { of: $(214), the: 'movie/cast', is: $(139) },
212    { of: $(214), the: 'movie/cast', is: $(140) },
213    { of: $(214), the: 'movie/sequel', is: $(215) },
214    { of: $(215), the: 'movie/title', is: 'Aliens' },
215    { of: $(215), the: 'movie/year', is: 1986 },
216    { of: $(215), the: 'movie/director', is: $(100) },
217    { of: $(215), the: 'movie/cast', is: $(139) },
218    { of: $(215), the: 'movie/cast', is: $(141) },
219    { of: $(215), the: 'movie/cast', is: $(103) },
220    { of: $(216), the: 'movie/title', is: 'Mad Max' },
221    { of: $(216), the: 'movie/year', is: 1979 },
222    { of: $(216), the: 'movie/director', is: $(142) },
223    { of: $(216), the: 'movie/cast', is: $(112) },
224    { of: $(216), the: 'movie/cast', is: $(143) },
225    { of: $(216), the: 'movie/cast', is: $(144) },
226    { of: $(216), the: 'movie/sequel', is: $(217) },
227    { of: $(217), the: 'movie/title', is: 'Mad Max 2' },
228    { of: $(217), the: 'movie/year', is: 1981 },
229    { of: $(217), the: 'movie/director', is: $(142) },
230    { of: $(217), the: 'movie/cast', is: $(112) },
231    { of: $(217), the: 'movie/cast', is: $(145) },
232    { of: $(217), the: 'movie/cast', is: $(146) },
233    { of: $(217), the: 'movie/sequel', is: $(218) },
234    { of: $(218), the: 'movie/title', is: 'Mad Max Beyond Thunderdome' },
235    { of: $(218), the: 'movie/year', is: 1985 },
236    { of: $(218), the: 'movie/director', is: 'user' },
237    { of: $(218), the: 'movie/director', is: $(147) },
238    { of: $(218), the: 'movie/cast', is: $(112) },
239    { of: $(218), the: 'movie/cast', is: $(148) },
240    { of: $(219), the: 'movie/title', is: 'Braveheart' },
241    { of: $(219), the: 'movie/year', is: 1995 },
242    { of: $(219), the: 'movie/director', is: $(112) },
243    { of: $(219), the: 'movie/cast', is: $(112) },
244    { of: $(219), the: 'movie/cast', is: $(149) },
245  ])