# File lib/activerdf_rdflite/suggesting.rb, line 18 18: def initialize params 19: _old_initialize(params) 20: @db.execute('drop view if exists occurrence') 21: @db.execute('create view occurrence as select p, count(distinct s) as count from triple group by p') 22: 23: @db.execute('drop view if exists cooccurrence') 24: @db.execute('create view cooccurrence as select t0.p as p1,t1.p as p2, count(distinct t0.s) as count from triple as t0 join triple as t1 on t0.s=t1.s and t0.p!=t1.p group by t0.p, t1.p') 25: end