vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 1 | drop dataverse fuzzyjoin_080 if exists; |
| 2 | |
| 3 | create dataverse fuzzyjoin_080; |
| 4 | |
| 5 | use dataverse fuzzyjoin_080; |
| 6 | |
| 7 | create type DBLPType as open { |
| 8 | id: int32, |
| 9 | dblpid: string, |
| 10 | title: string, |
| 11 | authors: string, |
| 12 | misc: string |
| 13 | } |
| 14 | |
| 15 | create nodegroup group1 if not exists on nc1, nc2; |
| 16 | |
| 17 | create dataset DBLP(DBLPType) |
ramangrover29 | 669d8f6 | 2013-02-11 06:03:32 +0000 | [diff] [blame] | 18 | primary key id on group1; |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 19 | |
| 20 | |
| 21 | write 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} |