dbd_onto 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15cf53411cbc0692476c2bbe6bbdb2b0288c2111
4
- data.tar.gz: b02e4a5cb6238463dfe2263854375d7a6de8c54b
3
+ metadata.gz: f172e23559c212bdb82df99097629b074311d274
4
+ data.tar.gz: 7b4140ed5d5f842440dc6e38cc3f8bac08dc7d44
5
5
  SHA512:
6
- metadata.gz: 0d742a8af0b358816a38603ee00b5f8157fd8f47f56cce7c7c5ef71aea409e9f91ac2c0356af285541e380176b9e12cb41a74bbfc8b73f2929526e3bcb8328c9
7
- data.tar.gz: 8760b474236e794ec91c95ebe63ea2520d372f21696caa85659626566ff37ab52130ff3a5f7f8171858b6c122a49801f563dc96321e17a2bbdca1f7d7c0e4438
6
+ metadata.gz: 086f5ca69e7e5ac53a369428702840561a5ceaf5412cc3e73b32858e8f82ea8fcecd5b2e18fd352d4a4d3402f144286f76e03759ed0a8672faf6d30e638811f9
7
+ data.tar.gz: ba67a3aae99ac1f7f1f5445d6001372399a2ff3673e5d23900d801d378685a9c7bf26e1e54850f275c3b75f7bdaaefb156c2ca1f2379d84e4c28a99b7fd8d0b8
data/Guardfile CHANGED
@@ -3,5 +3,6 @@ guard :rspec, :all_after_pass => true, :all_on_start => true do
3
3
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
4
  watch('spec/spec_helper.rb') { "spec" }
5
5
  watch('lib/dbd_onto.rb') { "spec" }
6
+ watch(%r{^data/}) { "spec" }
6
7
  end
7
8
 
data/data/schema_data.csv CHANGED
@@ -2505,4 +2505,5 @@
2505
2505
  "2013-10-18 19:16:41.952212427 UTC","44acd64b-32ea-4c26-aea1-756507d28fe7","37c0b50f-834e-45f5-a911-e3f2b47fe4b9","220e44e5-b388-43d7-9e1c-59afe98c1690","meta:defines_predicate","schema:worstRating"
2506
2506
  "2013-10-18 19:16:41.952230508 UTC","05940f71-cdf8-4b72-b208-c0ee8aaedb43","37c0b50f-834e-45f5-a911-e3f2b47fe4b9","220e44e5-b388-43d7-9e1c-59afe98c1690","rdf:uri","http://schema.org/worstRating"
2507
2507
  "2013-10-18 19:16:41.952244074 UTC","52fbf4b0-2592-4fea-8079-f556d7d2495c","37c0b50f-834e-45f5-a911-e3f2b47fe4b9","220e44e5-b388-43d7-9e1c-59afe98c1690","rdfs:label","worstRating"
2508
- "2013-10-18 19:16:41.952258090 UTC","e9cf6d52-d772-4932-b6d7-0e531dcf9807","37c0b50f-834e-45f5-a911-e3f2b47fe4b9","220e44e5-b388-43d7-9e1c-59afe98c1690","rdfs:comment","The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed."
2508
+ "2013-10-18 19:16:41.952258090 UTC","e9cf6d52-d772-4932-b6d7-0e531dcf9807","37c0b50f-834e-45f5-a911-e3f2b47fe4b9","220e44e5-b388-43d7-9e1c-59afe98c1690","rdfs:comment","The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed."
2509
+ "2013-10-20 20:54:35.000000000 UTC","e9cf6d52-d772-4932-b6d7-0e531dcf9808","37c0b50f-834e-45f5-a911-e3f2b47fe4b9","d00871dc-c805-47e2-b147-c89e9f634903","meta:predicate_used","true"
@@ -1,3 +1,3 @@
1
1
  module DbdOnto
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -18,8 +18,10 @@ describe DbdOnto::Schema do
18
18
 
19
19
  it 'all facts in the Schema ontology have the schema_context as context' do
20
20
  subject.all? do |fact|
21
- fact.is_a?(Dbd::ContextFact) ||
21
+ begin
22
+ fact.is_a?(Dbd::ContextFact) ||
22
23
  check_schema_context?(subject.by_subject(fact.context_subject))
24
+ end
23
25
  end.should be_true
24
26
  end
25
27
 
@@ -27,29 +29,43 @@ describe DbdOnto::Schema do
27
29
 
28
30
  it 'defines predicate schema:about' do
29
31
  subject.detect do |fact|
30
- fact.predicate == 'meta:defines_predicate' &&
32
+ begin
33
+ fact.predicate == 'meta:defines_predicate' &&
31
34
  fact.object == 'schema:about'
35
+ end
32
36
  end.should_not be_nil
33
37
  end
34
38
 
35
39
  it 'defines predicate rdf:uri' do
36
40
  subject.detect do |fact|
37
- fact.predicate == 'rdf:uri' &&
41
+ begin
42
+ fact.predicate == 'rdf:uri' &&
38
43
  fact.object == 'http://schema.org/unitCode'
44
+ end
39
45
  end.should_not be_nil
40
46
  end
41
47
 
42
48
  it 'defines predicate rdfs:label' do
43
49
  subject.detect do |fact|
44
- fact.predicate == 'rdfs:label' &&
50
+ begin
51
+ fact.predicate == 'rdfs:label' &&
45
52
  fact.object == 'tickerSymbol'
53
+ end
46
54
  end.should_not be_nil
47
55
  end
48
56
 
49
57
  it 'defines predicate rdfs:comment' do
50
58
  subject.detect do |fact|
51
- fact.predicate == 'rdfs:comment' &&
59
+ begin
60
+ fact.predicate == 'rdfs:comment' &&
52
61
  fact.object == 'The type of tissue sample required for the test.'
62
+ end
63
+ end.should_not be_nil
64
+ end
65
+
66
+ it 'defines predicate meta:predicate_used' do
67
+ subject.detect do |fact|
68
+ fact.predicate == 'meta:predicate_used'
53
69
  end.should_not be_nil
54
70
  end
55
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbd_onto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenabeele