vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 1 | use dataverse fuzzy1; |
| 2 | |
| 3 | declare type DBLPType as open { |
| 4 | id: int32, |
| 5 | dblpid: string, |
| 6 | title: string, |
| 7 | authors: string, |
| 8 | misc: string |
| 9 | } |
| 10 | |
| 11 | declare type CSXType as open { |
| 12 | id: int32, |
| 13 | csxid: string, |
| 14 | title: string, |
| 15 | authors: string, |
| 16 | misc: string |
| 17 | } |
| 18 | |
| 19 | declare nodegroup group1 on nc1, nc2; |
| 20 | |
| 21 | declare dataset DBLP(DBLPType) |
| 22 | partitioned by key id on group1; |
| 23 | |
| 24 | declare dataset CSX(CSXType) |
| 25 | partitioned by key id on group1; |
| 26 | |
| 27 | write output to nc1:'/tmp/pub.adm'; |
| 28 | |
| 29 | set simthreshold '.5'; |
| 30 | |
| 31 | for $paperR in dataset('DBLP') |
| 32 | for $paperS in dataset('CSX') |
| 33 | where $paperR.title ~= $paperS.title |
| 34 | return { 'R': { 'dblpid': $paperR.dblpid, 'title': $paperR.title }, |
| 35 | 'S': { 'csxid': $paperS.csxid, 'title': $paperS.title }} |