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 +4 -4
- data/Guardfile +1 -0
- data/data/schema_data.csv +2 -1
- data/lib/dbd_onto/version.rb +1 -1
- data/spec/lib/dbd_onto/schema_spec.rb +21 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f172e23559c212bdb82df99097629b074311d274
|
4
|
+
data.tar.gz: 7b4140ed5d5f842440dc6e38cc3f8bac08dc7d44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 086f5ca69e7e5ac53a369428702840561a5ceaf5412cc3e73b32858e8f82ea8fcecd5b2e18fd352d4a4d3402f144286f76e03759ed0a8672faf6d30e638811f9
|
7
|
+
data.tar.gz: ba67a3aae99ac1f7f1f5445d6001372399a2ff3673e5d23900d801d378685a9c7bf26e1e54850f275c3b75f7bdaaefb156c2ca1f2379d84e4c28a99b7fd8d0b8
|
data/Guardfile
CHANGED
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"
|
data/lib/dbd_onto/version.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|