blob: 0c11edbf5e2f89a908449bb7b2094bbd5c04101f [file] [log] [blame]
alexander.behmc576c602012-07-06 02:41:15 +00001drop dataverse test if exists;
2create dataverse test;
3use dataverse test;
4
5create type DBLPType as closed {
6 id: int32,
7 dblpid: string,
8 title: string,
9 authors: string,
10 misc: string
11}
12
13create nodegroup group1 if not exists on nc1, nc2;
14
15create dataset DBLP(DBLPType)
16 partitioned by key id on group1;
17
18load dataset DBLP
19using "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
22write output to nc1:"rttest/similarity_fuzzyeq-similarity-jaccard.adm";
23
24set simfunction 'jaccard';
25set simthreshold '0.5f';
26
27for $paper in dataset('DBLP')
28where word-tokens($paper.title) ~= word-tokens("Transactions for Cooperative Environments")
29return $paper