alexander.behm | c576c60 | 2012-07-06 02:41:15 +0000 | [diff] [blame] | 1 | drop dataverse test if exists; |
| 2 | create dataverse test; |
| 3 | use dataverse test; |
| 4 | |
| 5 | create type DBLPType as closed { |
| 6 | id: int32, |
| 7 | dblpid: string, |
| 8 | title: string, |
| 9 | authors: string, |
| 10 | misc: string |
| 11 | } |
| 12 | |
| 13 | create nodegroup group1 if not exists on nc1, nc2; |
| 14 | |
| 15 | create dataset DBLP(DBLPType) |
ramangrover29 | 669d8f6 | 2013-02-11 06:03:32 +0000 | [diff] [blame^] | 16 | primary key id on group1; |
alexander.behm | c576c60 | 2012-07-06 02:41:15 +0000 | [diff] [blame] | 17 | |
| 18 | load dataset DBLP |
| 19 | using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter" |
| 20 | (("path"="nc1://data/dblp-small/dblp-small-id.txt"),("format"="delimited-text"),("delimiter"=":")) pre-sorted; |
| 21 | |
| 22 | write output to nc1:"rttest/similarity_fuzzyeq-edit-distance.adm"; |
| 23 | |
| 24 | set simfunction 'edit-distance'; |
| 25 | set simthreshold '2'; |
| 26 | |
| 27 | for $paper in dataset('DBLP') |
| 28 | where $paper.authors ~= "Amihay Motro" |
| 29 | return $paper |