dbd_onto 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.txt +5 -0
- data/lib/dbd_onto/meta.rb +2 -0
- data/lib/dbd_onto/version.rb +1 -1
- data/spec/lib/dbd_onto/meta_spec.rb +57 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64160d92367226681a742cae6c542b590f1a6cd6
|
4
|
+
data.tar.gz: 86e6e6c70f083433c348f4f8629ee41394541425
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a911f8f6458efaa2211158038bdaa5f167e1088decd7e979161402ab0d8684751fe673c7591e62b38bb9739e3fcc4d44059ab24d375e5a858c6a5a249de972c8
|
7
|
+
data.tar.gz: 01ad92eeec0fee5e32ba28a4a6636ccaa96baabd4da3d8ce3e27e1275c308c158c7cde6214e3840f39f9ab3afc036794afb578cf4c203aceb3e69722f3db506f
|
data/HISTORY.txt
CHANGED
data/lib/dbd_onto/meta.rb
CHANGED
@@ -23,6 +23,8 @@ module DbdOnto
|
|
23
23
|
"2013-09-03 21:41:36.627070056 UTC","96d595be-205d-4c3a-8724-35b46457f9f0","36c0b50f-834e-45f5-a911-e3f2b47fe4b9","619e69d4-6dad-4b14-bfce-8fd67d8e126d","rdfs:label","s","Predicate used"
|
24
24
|
"2013-09-03 21:41:36.627071056 UTC","96d595be-205d-4c3a-8724-35b46457f9f1","36c0b50f-834e-45f5-a911-e3f2b47fe4b9","619e69d4-6dad-4b14-bfce-8fd67d8e126d","dbd:rdf_uri","s","https://github.com/petervandenabeele/dbd_onto/blob/master/data/meta.md"
|
25
25
|
"2013-09-03 21:41:36.627072056 UTC","96d595be-205d-4c3a-8724-35b46457f9f2","36c0b50f-834e-45f5-a911-e3f2b47fe4b9","619e69d4-6dad-4b14-bfce-8fd67d8e126d","rdfs:comment","s","Is this predicate used in the UI for creating new resources?"
|
26
|
+
"2014-04-24 06:41:36.000001000 UTC","96d595be-205d-4c3a-8724-35b46457f9f3","36c0b50f-834e-45f5-a911-e3f2b47fe4b9","619e69d4-6dad-4b14-bfce-8fd67d8e126c","meta:predicate_used","s","true"
|
27
|
+
"2014-04-24 06:41:36.000002000 UTC","96d595be-205d-4c3a-8724-35b46457f9f4","36c0b50f-834e-45f5-a911-e3f2b47fe4b9","619e69d4-6dad-4b14-bfce-8fd67d8e126d","meta:predicate_used","s","true"
|
26
28
|
EOS
|
27
29
|
end
|
28
30
|
|
data/lib/dbd_onto/version.rb
CHANGED
@@ -28,6 +28,15 @@ describe DbdOnto::Meta do
|
|
28
28
|
end.subject
|
29
29
|
end
|
30
30
|
|
31
|
+
let(:meta_predicate_used_subject) do
|
32
|
+
subject.detect do |fact|
|
33
|
+
begin
|
34
|
+
fact.predicate == 'meta:defines_predicate' &&
|
35
|
+
fact.object == 'meta:predicate_used'
|
36
|
+
end
|
37
|
+
end.subject
|
38
|
+
end
|
39
|
+
|
31
40
|
describe 'meta:defines_predicate' do
|
32
41
|
|
33
42
|
let(:defines_predicate_facts) { subject.by_subject(meta_defines_predicate_subject) }
|
@@ -56,6 +65,54 @@ describe DbdOnto::Meta do
|
|
56
65
|
fact.predicate == 'rdfs:comment'
|
57
66
|
end.should_not be_nil
|
58
67
|
end
|
68
|
+
|
69
|
+
it 'has predicate_used' do
|
70
|
+
defines_predicate_facts.detect do |fact|
|
71
|
+
begin
|
72
|
+
fact.predicate == 'meta:predicate_used' &&
|
73
|
+
fact.object == 'true'
|
74
|
+
end
|
75
|
+
end.should_not be_nil
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
describe 'meta:predicate_used' do
|
80
|
+
|
81
|
+
let(:predicate_used_facts) { subject.by_subject(meta_predicate_used_subject) }
|
82
|
+
|
83
|
+
it 'defines the predicate meta:predicate_used' do
|
84
|
+
meta_predicate_used_subject.should_not be_nil
|
85
|
+
end
|
86
|
+
|
87
|
+
it 'has label "Predicate used"' do
|
88
|
+
predicate_used_facts.detect do |fact|
|
89
|
+
begin
|
90
|
+
fact.predicate == 'rdfs:label' &&
|
91
|
+
fact.object == 'Predicate used'
|
92
|
+
end
|
93
|
+
end.should_not be_nil
|
94
|
+
end
|
95
|
+
|
96
|
+
it 'has a URI' do
|
97
|
+
predicate_used_facts.detect do |fact|
|
98
|
+
fact.predicate == 'dbd:rdf_uri'
|
99
|
+
end.should_not be_nil
|
100
|
+
end
|
101
|
+
|
102
|
+
it 'has a comment' do
|
103
|
+
predicate_used_facts.detect do |fact|
|
104
|
+
fact.predicate == 'rdfs:comment'
|
105
|
+
end.should_not be_nil
|
106
|
+
end
|
107
|
+
|
108
|
+
it 'has predicate_used' do
|
109
|
+
predicate_used_facts.detect do |fact|
|
110
|
+
begin
|
111
|
+
fact.predicate == 'meta:predicate_used' &&
|
112
|
+
fact.object == 'true'
|
113
|
+
end
|
114
|
+
end.should_not be_nil
|
115
|
+
end
|
59
116
|
end
|
60
117
|
end
|
61
118
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dbd_onto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Vandenabeele
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|