blob: 3c0235cf6a93b4663311f1ede0e0fa5a01f26012 [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001drop dataverse fuzzyjoin_080 if exists;
2
3create dataverse fuzzyjoin_080;
4
5use dataverse fuzzyjoin_080;
6
7create type DBLPType as open {
8 id: int32,
9 dblpid: string,
10 title: string,
11 authors: string,
12 misc: string
13}
14
15create nodegroup group1 if not exists on nc1, nc2;
16
17create dataset DBLP(DBLPType)
ramangrover29669d8f62013-02-11 06:03:32 +000018 primary key id on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000019
20
21write output to nc1:'rttest/fuzzyjoin_080.adm';
22
23 for $paperDBLP in dataset('DBLP')
24 let $matches :=
25 for $paper in dataset('DBLP')
26 where $paper.authors = $paperDBLP.authors
27 return $paper.title
28 return {'id': $paperDBLP.id, 'matches':$matches}