-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgen_cand.rb
More file actions
37 lines (30 loc) · 1.78 KB
/
Copy pathgen_cand.rb
File metadata and controls
37 lines (30 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require '../candidate-smasher/lib/candidate_smasher'
c = CandidateSmasher.new("../candidate-smasher/lib/candidate_smasher/spek/fixtures/spek.json")
# puts(c.class)
g = c.list_missing()
#puts(g.class)
#puts(g)
#g = c.generate_candidates()
#p(g.class)
#p(g)
p("none")
c.spek_hsh = {}
c.spek_hsh = {"http://example.com/slowmo#IsAboutTemplate"=>[], "http://example.com/slowmo#IsAboutPerformer"=>[{"uri"=>"a1", "http://example.com/slowmo#RegardingMeasure"=>"b1"}, {"uri"=>"a1", "http://example.com/slowmo#RegardingMeasure"=>"b2"}, {"uri"=>"a5", "http://example.com/slowmo#RegardingMeasure"=>"b1"}]}
g = c.generate_candidates()
p(g.class)
p(g)
p("empty hash")
c.spek_hsh = {}
c.spek_hsh = {"http://example.com/slowmo#IsAboutTemplate"=>[{}], "http://example.com/slowmo#IsAboutPerformer"=>[{"uri"=>"a1", "http://example.com/slowmo#RegardingMeasure"=>"b1"}, {"uri"=>"a1", "http://example.com/slowmo#RegardingMeasure"=>"b2"}, {"uri"=>"a5", "http://example.com/slowmo#RegardingMeasure"=>"b1"}]}
g = c.generate_candidates()
p(g.class)
p(g)
c.spek_hsh = {}
c.spek_hsh = {"http://example.com/slowmo#IsAboutTemplate"=>[{"@id"=>"1"}], "http://example.com/slowmo#IsAboutPerformer"=>[{"uri"=>"a1", "http://example.com/slowmo#RegardingMeasure"=>"b1"}, {"uri"=>"a1", "http://example.com/slowmo#RegardingMeasure"=>"b2"}, {"uri"=>"a5", "http://example.com/slowmo#RegardingMeasure"=>"b1"}]}
g = c.generate_candidates()
p(g.class)
p(g)
c.spek_hsh = {"http://example.com/slowmo#IsAboutTemplate"=>[{"@id"=>1, "url"=>"one"}, {"@id"=>2, "url"=>"two"}], "http://example.com/slowmo#IsAboutPerformer"=>[{"uri"=>"a1", "http://example.com/slowmo#RegardingMeasure"=>"b1"}, {"uri"=>"a1", "http://example.com/slowmo#RegardingMeasure"=>"b2"}, {"uri"=>"a5", "http://example.com/slowmo#RegardingMeasure"=>"b1"}]}
g = c.generate_candidates()
p(g.class)
p(g)