blob: 2a50477a118df27c1bf3434aa2c375028cf5ffff [file] [log] [blame]
genia.likes.science@gmail.com67605862013-10-04 05:43:57 -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
59(("path"="localhost://FULL_PATH/fbu.adm"),("format"="adm"));
60
61load dataset FacebookMessages using localfs
62(("path"="localhost://FULL_PATH/fbm.adm"),("format"="adm"));
63
64load dataset TwitterUsers using localfs
65(("path"="localhost://FULL_PATH/twu.adm"),("format"="adm"));
66
67load dataset TweetMessages using localfs
68(("path"="localhost://FULL_PATH/twm.adm"),("format"="adm"));