dbd_onto 0.0.12 → 0.0.13

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: 71fb51b6088e7d24a3e696d6bab8702fce5970e5
4
- data.tar.gz: ccfc0062a6f733ff5e1286761c1cd9fbd10d8a21
3
+ metadata.gz: 957b6597bfb29e29a1a4d1eb9112e3d5b3b20415
4
+ data.tar.gz: 37ed55163c87fad17df945e6548c26b469a9acc4
5
5
  SHA512:
6
- metadata.gz: 8a3945ed5f8dc33c6bd7edc3f0d01a6304250732c5a7f389eb4fa04a512d2b40f5557f89a2a41dc665845652892ffc23805ba0c96fb76075262b18138080966c
7
- data.tar.gz: 352c9621bc7cced335a50f136092de9136a98d209039cf51e914f92781bb2fa81f383a6d7de5b8b591698476a0f87860476358df6d98d596c16f5c85c598b3b7
6
+ metadata.gz: af66ffdfd6d0caeef56502902a74fdc6498cfeac29199935ecf74b38cdaaecc79b70805196d283631100d10be6bc4e0ff929fd237f3861ecf84c4d20f74bb4fa
7
+ data.tar.gz: 4887dd5dc813f24ee0dce844e4d47fd21e1c8dd3fc5f77e57cc2dcfa31bc14f8971a7935848f63458cd16c9a1e965eeded9c0f3cc929da9b5c51047f3dd3552a
data/HISTORY.txt CHANGED
@@ -51,3 +51,9 @@
51
51
  ======
52
52
 
53
53
  * Add a Dbd ontology
54
+
55
+ 0.0.13 (2014-02-09)
56
+ ======
57
+
58
+ * a few more schema predicates to the used_predicate list
59
+ * fix the freeze feature on the Schema
data/README.md CHANGED
@@ -28,34 +28,83 @@ $ irb
28
28
  2.0.0p247 :001 > require 'dbd_onto'
29
29
  => true
30
30
  2.0.0p247 :002 > DbdOnto::Meta.new.each {|f| puts f.short} ; nil
31
- [ cont ] : 36c0b50f : context:visibility : public
31
+ cont ] : 36c0b50f : context:visibility : public
32
32
  [ cont ] : 36c0b50f : context:encryption : clear
33
33
  [ cont ] : 36c0b50f : context:license : Copyright 2013 Peter Vandenabeele (http://vandenabeele.com), licensed under MIT
34
34
  [ cont ] : 36c0b50f : dc:source : https://github.com/petervandenabeele/dbd/blob/d37360070e7f8e61a19c2bca210c881a15
35
35
  [ cont ] : 36c0b50f : dc:creator : Peter Vandenabeele (@peter_v)
36
36
  [ cont ] : 36c0b50f : dcterms:created : 2013-08-09 21:45:00 UTC
37
+ [ cont ] : 36c0b50f : rdfs:comment : This meta context covers a creation period starting Aug 2013 until ...
37
38
  36c0b50f : 619e69d4 : meta:defines_predicate : meta:defines_predicate
38
39
  36c0b50f : 619e69d4 : rdfs:label : Defines predicate
40
+ 36c0b50f : 619e69d4 : dbd:rdf_uri : https://github.com/petervandenabeele/dbd_onto/blob/master/data/meta.md
41
+ 36c0b50f : 619e69d4 : rdfs:comment : Needed to bootstrap ontology definitions
42
+ 36c0b50f : 619e69d4 : meta:defines_predicate : meta:predicate_used
43
+ 36c0b50f : 619e69d4 : rdfs:label : Predicate used
44
+ 36c0b50f : 619e69d4 : dbd:rdf_uri : https://github.com/petervandenabeele/dbd_onto/blob/master/data/meta.md
45
+ 36c0b50f : 619e69d4 : rdfs:comment : Is this predicate used in the UI for creating new resources?
39
46
  => nil
40
- 2.0.0p247 :003 > DbdOnto::Context.new.each {|f| puts f.short} ; nil
47
+ 2.0.0p247 :005 > DbdOnto::Context.new.each {|f| puts f.short} ; nil
41
48
  [ cont ] : 36c0b50f : context:visibility : public
42
49
  [ cont ] : 36c0b50f : context:encryption : clear
43
50
  [ cont ] : 36c0b50f : context:license : Copyright 2013 Peter Vandenabeele (http://vandenabeele.com), licensed under MIT
44
51
  [ cont ] : 36c0b50f : dc:source : https://github.com/petervandenabeele/dbd/blob/d37360070e7f8e61a19c2bca210c881a15
45
52
  [ cont ] : 36c0b50f : dc:creator : Peter Vandenabeele (@peter_v)
46
53
  [ cont ] : 36c0b50f : dcterms:created : 2013-08-09 21:45:00 UTC
54
+ [ cont ] : 36c0b50f : rdfs:comment : This meta context covers a creation period starting Aug 2013 until ...
47
55
  36c0b50f : 03e72b0c : meta:defines_predicate : context:visibility
48
56
  36c0b50f : 03e72b0c : rdfs:label : Visibility
57
+ 36c0b50f : 03e72b0c : dbd:rdf_uri : https://github.com/petervandenabeele/dbd_onto/blob/master/data/context.md
58
+ 36c0b50f : 03e72b0c : rdfs:comment : E.g. public, private, professional, ...
49
59
  36c0b50f : 735ae2a2 : meta:defines_predicate : context:encryption
50
60
  36c0b50f : 735ae2a2 : rdfs:label : Encryption
61
+ 36c0b50f : 735ae2a2 : dbd:rdf_uri : https://github.com/petervandenabeele/dbd_onto/blob/master/data/context.md
62
+ 36c0b50f : 735ae2a2 : rdfs:comment : E.g. clear, encrypted, AES-256, my_very_secret_key
51
63
  36c0b50f : 5b2c73e5 : meta:defines_predicate : context:license
52
64
  36c0b50f : 5b2c73e5 : rdfs:label : License
65
+ 36c0b50f : 5b2c73e5 : dbd:rdf_uri : https://github.com/petervandenabeele/dbd_onto/blob/master/data/context.md
66
+ 36c0b50f : 5b2c73e5 : rdfs:comment : E.g. Copyright 2013 Peter Vandenabeele (http://vandenabeele.com), licensed under
53
67
  36c0b50f : ffc41d9c : meta:defines_predicate : dc:source
54
68
  36c0b50f : ffc41d9c : rdfs:label : Source
69
+ 36c0b50f : ffc41d9c : dbd:rdf_uri : https://github.com/petervandenabeele/dbd_onto/blob/master/data/context.md
70
+ 36c0b50f : ffc41d9c : rdfs:comment : E.g. Entered manually by @peter_v (also see Dublin Core)
55
71
  36c0b50f : 2b5008b0 : meta:defines_predicate : dc:creator
56
72
  36c0b50f : 2b5008b0 : rdfs:label : Creator
73
+ 36c0b50f : 2b5008b0 : dbd:rdf_uri : https://github.com/petervandenabeele/dbd_onto/blob/master/data/context.md
74
+ 36c0b50f : 2b5008b0 : rdfs:comment : E.g. @peter_v (also see Dublin Core)
57
75
  36c0b50f : 4aba46de : meta:defines_predicate : dcterms:created
58
76
  36c0b50f : 4aba46de : rdfs:label : Created
77
+ 36c0b50f : 4aba46de : dbd:rdf_uri : https://github.com/petervandenabeele/dbd_onto/blob/master/data/context.md
78
+ 36c0b50f : 4aba46de : rdfs:comment : E.g. 2013-10-20 (also see Dublin Core Terms)
79
+ => nil
80
+ 2.0.0p247 :007 > DbdOnto::Dbd.new.each {|f| puts f.short} ; nil
81
+ [ cont ] : 36c0b50f : context:visibility : public
82
+ [ cont ] : 36c0b50f : context:encryption : clear
83
+ [ cont ] : 36c0b50f : context:license : Copyright 2013 Peter Vandenabeele (http://vandenabeele.com), licensed under MIT
84
+ [ cont ] : 36c0b50f : dc:source : https://github.com/petervandenabeele/dbd/blob/d37360070e7f8e61a19c2bca210c881a15
85
+ [ cont ] : 36c0b50f : dc:creator : Peter Vandenabeele (@peter_v)
86
+ [ cont ] : 36c0b50f : dcterms:created : 2013-08-09 21:45:00 UTC
87
+ [ cont ] : 36c0b50f : rdfs:comment : This meta context covers a creation period starting Aug 2013 until ...
88
+ 36c0b50f : 619e69d4 : meta:defines_predicate : dbd:rdf_uri
89
+ 36c0b50f : 619e69d4 : rdfs:label : RDF URI
90
+ 36c0b50f : 619e69d4 : dbd:rdf_uri : https://github.com/petervandenabeele/dbd_onto/blob/master/data/dbd.md
91
+ 36c0b50f : 619e69d4 : rdfs:comment : points to an RDF URI type, without the <> characters
92
+ => nil
93
+ 2.0.0p247 :011 > DbdOnto::Schema.new.take(14).each {|f| puts f.short} ; nil
94
+ [ cont ] : 37c0b50f : context:visibility : public
95
+ [ cont ] : 37c0b50f : context:encryption : clear
96
+ [ cont ] : 37c0b50f : context:license : Copyright the sponsors of Schema.org: Google, Inc., Yahoo, Inc., and Microsoft C
97
+ [ cont ] : 37c0b50f : dc:source : http://schema.org
98
+ [ cont ] : 37c0b50f : dc:creator : Peter Vandenabeele (@peter_v)
99
+ [ cont ] : 37c0b50f : dcterms:created : 2013-10-15 21:56:00 UTC
100
+ 37c0b50f : d00871dc : meta:defines_predicate : schema:about
101
+ 37c0b50f : d00871dc : dbd:rdf_uri : http://schema.org/about
102
+ 37c0b50f : d00871dc : rdfs:label : about
103
+ 37c0b50f : d00871dc : rdfs:comment : The subject matter of the content.
104
+ 37c0b50f : fb6b6a77 : meta:defines_predicate : schema:acceptedPaymentMethod
105
+ 37c0b50f : fb6b6a77 : dbd:rdf_uri : http://schema.org/acceptedPaymentMethod
106
+ 37c0b50f : fb6b6a77 : rdfs:label : acceptedPaymentMethod
107
+ 37c0b50f : fb6b6a77 : rdfs:comment : The payment method(s) accepted by seller for this offer.
59
108
  => nil
60
109
  ```
61
110
 
data/data/schema_data.csv CHANGED
@@ -2507,3 +2507,5 @@
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","s","worstRating"
2508
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","s","The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed."
2509
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","s","true"
2510
+ "2014-02-09 21:29:01.000000000 UTC","e9cf6d52-d772-4932-b6d7-0e531dcf9809","37c0b50f-834e-45f5-a911-e3f2b47fe4b9","47c36607-5d5f-415f-beda-e411fc3ec19f","meta:predicate_used","s","true"
2511
+ "2014-02-09 21:29:02.000000000 UTC","e9cf6d52-d772-4932-b6d7-0e531dcf980a","37c0b50f-834e-45f5-a911-e3f2b47fe4b9","1ed23195-8efd-4315-8d9b-33c2efc7fc8a","meta:predicate_used","s","true"
data/dbd_onto.gemspec CHANGED
@@ -23,9 +23,9 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency 'guard-rspec'
24
24
  spec.add_development_dependency 'terminal-notifier-guard'
25
25
  spec.add_development_dependency 'yard'
26
- spec.add_runtime_dependency 'rdf', '>= 1.0.9'
26
+ spec.add_runtime_dependency 'rdf', '>= 1.1'
27
27
  spec.add_runtime_dependency 'ruby_peter_v', '>= 0.0.13'
28
- spec.add_runtime_dependency 'dbd', '~> 0.1.0'
28
+ spec.add_runtime_dependency 'dbd', '~> 0.1.3'
29
29
  # only needed for DbdOnto::Schema.generate
30
30
  spec.add_runtime_dependency 'rdf-rdfa', '>= 1.0.2'
31
31
  spec.add_runtime_dependency 'equivalent-xml'
@@ -5,6 +5,7 @@ module DbdOnto
5
5
  super
6
6
  self << schema_context
7
7
  self << self.class.schema_resource
8
+ self.freeze
8
9
  end
9
10
 
10
11
  private
@@ -1,3 +1,3 @@
1
1
  module DbdOnto
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
@@ -69,4 +69,13 @@ describe DbdOnto::Schema do
69
69
  end.should_not be_nil
70
70
  end
71
71
  end
72
+
73
+ describe 'data is frozen (to avoid corruption of the class level copy)' do
74
+ it 'modifying the collection fails' do
75
+ context_fact = Dbd::ContextFact.new(predicate: 'foo', object_type: 's', object: 'bar')
76
+ context = Dbd::Context.new
77
+ context << context_fact
78
+ lambda{ subject << context }.should raise_error(RuntimeError, /frozen/)
79
+ end
80
+ end
72
81
  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.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenabeele
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-23 00:00:00.000000000 Z
11
+ date: 2014-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - '>='
88
88
  - !ruby/object:Gem::Version
89
- version: 1.0.9
89
+ version: '1.1'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '>='
95
95
  - !ruby/object:Gem::Version
96
- version: 1.0.9
96
+ version: '1.1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: ruby_peter_v
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 0.1.0
117
+ version: 0.1.3
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ~>
123
123
  - !ruby/object:Gem::Version
124
- version: 0.1.0
124
+ version: 0.1.3
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rdf-rdfa
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  version: '0'
209
209
  requirements: []
210
210
  rubyforge_project:
211
- rubygems_version: 2.0.3
211
+ rubygems_version: 2.1.11
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: Ontologies for Dbd