blob: 37f06a087d12ab8d9808b2c1f7a56ded18b3efca [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001use dataverse demo_aql;
2
3declare type DBLPType as open {
4 id: int32,
5 dblpid: string,
6 title: string,
7 authors: string,
8 misc: string
9}
10
11declare nodegroup group1 on rainbow-01, rainbow-02, rainbow-03, rainbow-04, rainbow-05;
12
13declare dataset DBLP(DBLPType)
ramangrover29669d8f62013-02-11 06:03:32 +000014 primary key id on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000015
16write output to rainbow-01:"/home/onose/hyracks-rainbow/results/110-self-join-dblp.adm";
17
18set simthreshold '.8f';
19
20for $k in (
21 for $i in dataset('DBLP')
22 for $j in dataset('DBLP')
23 where $i.title ~= $j.title
24 order by $i.id, $j.id
25 return {'dblp1': $i, 'dblp2': $j}
26)
27where $k.dblp1.id < $k.dblp2.id
28return $k