blob: e90a0291c0867f5d711affd6635f8506b4c58a7c [file] [log] [blame]
genia.likes.science@gmail.com54f23232013-07-13 18:49:27 -07001drop dataverse TinySocial if exists;
2create dataverse TinySocial;
3use dataverse TinySocial;
4
5create type TwitterUserType as open {
6 screen-name: string,
7 lang: string,
8 friends_count: int32,
9 statuses_count: int32,
10 name: string,
11 followers_count: int32
12}
13
14create type TweetMessageType as closed {
15 tweetid: string,
16 user: TwitterUserType,
17 sender-location: point?,
18 send-time: datetime,
19 referred-topics: {{ string }},
20 message-text: string
21}
22
23create type EmploymentType as open {
24 organization-name: string,
25 start-date: date,
26 end-date: date?
27}
28
29create type FacebookUserType as closed {
30 id: int32,
31 alias: string,
32 name: string,
33 user-since: datetime,
34 friend-ids: {{ int32 }},
35 employment: [EmploymentType]
36}
37
38create type FacebookMessageType as closed {
39 message-id: int32,
40 author-id: int32,
41 in-response-to: int32?,
42 sender-location: point?,
43 message: string
44}
45
46create dataset FacebookUsers(FacebookUserType)
47primary key id;
48
49create dataset FacebookMessages(FacebookMessageType)
50primary key message-id;
51
52create dataset TwitterUsers(TwitterUserType)
53primary key screen-name;
54
55create dataset TweetMessages(TweetMessageType)
56primary key tweetid;
57
58load dataset FacebookUsers using localfs
genia.likes.science@gmail.com212a6442013-07-13 20:40:11 -070059(("path"="localhost:///home/genia/asterix-dev/asterixdb/asterix-app/src/main/resources/sdk/static/AdmAql101/tinysocial/fbu.adm"),("format"="adm"));
genia.likes.science@gmail.com54f23232013-07-13 18:49:27 -070060
61load dataset FacebookMessages using localfs
genia.likes.science@gmail.com212a6442013-07-13 20:40:11 -070062(("path"="localhost:///home/genia/asterix-dev/asterixdb/asterix-app/src/main/resources/sdk/static/AdmAql101/tinysocial/fbm.adm"),("format"="adm"));
genia.likes.science@gmail.com54f23232013-07-13 18:49:27 -070063
64load dataset TwitterUsers using localfs
genia.likes.science@gmail.com212a6442013-07-13 20:40:11 -070065(("path"="localhost:///home/genia/asterix-dev/asterixdb/asterix-app/src/main/resources/sdk/static/AdmAql101/tinysocial/twu.adm"),("format"="adm"));
genia.likes.science@gmail.com54f23232013-07-13 18:49:27 -070066
67load dataset TweetMessages using localfs
genia.likes.science@gmail.com212a6442013-07-13 20:40:11 -070068(("path"="localhost:///home/genia/asterix-dev/asterixdb/asterix-app/src/main/resources/sdk/static/AdmAql101/tinysocial/twm.adm"),("format"="adm"));