rdf-microdata 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -2
- data/VERSION +1 -1
- data/lib/rdf/microdata/expansion.rb +6 -3
- data/lib/rdf/microdata/reader.rb +4 -4
- metadata +207 -198
data/README
CHANGED
@@ -34,8 +34,8 @@ GRDDL-type triple generation, such as for html>head>title anchor tags.
|
|
34
34
|
If the `RDFa` parser is available, {RDF::Microdata::Format} will not assert content type `text/html` or file extension `.html`, as this is also asserted by RDFa. Instead, the RDFa reader will invoke the microdata reader if an `@itemscope` attribute is detected.
|
35
35
|
|
36
36
|
## Dependencies
|
37
|
-
* [RDF.rb](http://rubygems.org/gems/rdf) (>= 0
|
38
|
-
* [RDF::XSD](http://rubygems.org/gems/rdf-xsd) (>= 0
|
37
|
+
* [RDF.rb](http://rubygems.org/gems/rdf) (>= 1.0)
|
38
|
+
* [RDF::XSD](http://rubygems.org/gems/rdf-xsd) (>= 1.0)
|
39
39
|
* [HTMLEntities](https://rubygems.org/gems/htmlentities) ('>= 4.3.0')
|
40
40
|
* Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.5.0)
|
41
41
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0
|
@@ -47,13 +47,16 @@ module RDF::Microdata
|
|
47
47
|
# Takes a list of antecedent patterns used to find solutions against a queryable
|
48
48
|
# object. Yields each consequent with bindings from the solution
|
49
49
|
class Rule
|
50
|
-
#
|
50
|
+
# @!attribute [r]
|
51
|
+
# @return [Array<RDF::Query::Pattern>] patterns necessary to invoke this rule
|
51
52
|
attr_reader :antecedents
|
52
53
|
|
53
|
-
#
|
54
|
+
# @!attribute [r] consequents
|
55
|
+
# @return [Array<RDF::Query::Pattern>] result of this rule
|
54
56
|
attr_reader :consequents
|
55
57
|
|
56
|
-
#
|
58
|
+
# @!attribute [r] name
|
59
|
+
# @return [String] Name of this rule
|
57
60
|
attr_reader :name
|
58
61
|
|
59
62
|
##
|
data/lib/rdf/microdata/reader.rb
CHANGED
@@ -24,9 +24,8 @@ module RDF::Microdata
|
|
24
24
|
# @private
|
25
25
|
class CrawlFailure < StandardError; end
|
26
26
|
|
27
|
-
#
|
28
|
-
#
|
29
|
-
# @attr_reader [Module]
|
27
|
+
# @!attribute [r] implementation
|
28
|
+
# @return [Module] Returns the HTML implementation module for this reader instance.
|
30
29
|
attr_reader :implementation
|
31
30
|
|
32
31
|
##
|
@@ -43,7 +42,8 @@ module RDF::Microdata
|
|
43
42
|
|
44
43
|
# Interface to registry
|
45
44
|
class Registry
|
46
|
-
#
|
45
|
+
# @!attribute [r] uri
|
46
|
+
# @return [RDF::URI] Prefix of vocabulary
|
47
47
|
attr_reader :uri
|
48
48
|
|
49
49
|
##
|
metadata
CHANGED
@@ -1,247 +1,245 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-microdata
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Gregg
|
9
14
|
- Kellogg
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
18
|
+
|
19
|
+
date: 2013-01-20 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
16
22
|
name: rdf
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ! '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.3.4
|
23
|
-
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
|
26
|
-
none: false
|
27
|
-
requirements:
|
28
|
-
- - ! '>='
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: 0.3.4
|
31
|
-
- !ruby/object:Gem::Dependency
|
32
|
-
name: json
|
33
|
-
requirement: !ruby/object:Gem::Requirement
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
34
25
|
none: false
|
35
|
-
requirements:
|
36
|
-
- -
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 0
|
33
|
+
version: "1.0"
|
39
34
|
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: json
|
40
38
|
prerelease: false
|
41
|
-
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
42
40
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.3.4
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 7
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 7
|
48
|
+
- 6
|
49
|
+
version: 1.7.6
|
55
50
|
type: :runtime
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: rdf-xsd
|
56
54
|
prerelease: false
|
57
|
-
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
58
56
|
none: false
|
59
|
-
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
requirements:
|
68
|
-
- - ! '>='
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 4.3.0
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 15
|
61
|
+
segments:
|
62
|
+
- 1
|
63
|
+
- 0
|
64
|
+
version: "1.0"
|
71
65
|
type: :runtime
|
66
|
+
version_requirements: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: htmlentities
|
72
69
|
prerelease: false
|
73
|
-
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
74
71
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
hash: 51
|
76
|
+
segments:
|
77
|
+
- 4
|
78
|
+
- 3
|
79
|
+
- 0
|
78
80
|
version: 4.3.0
|
79
|
-
|
81
|
+
type: :runtime
|
82
|
+
version_requirements: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
80
84
|
name: nokogiri
|
81
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
|
-
requirements:
|
84
|
-
- - ! '>='
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: 1.5.0
|
87
|
-
type: :development
|
88
85
|
prerelease: false
|
89
|
-
|
90
|
-
none: false
|
91
|
-
requirements:
|
92
|
-
- - ! '>='
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: 1.5.0
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: equivalent-xml
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
98
87
|
none: false
|
99
|
-
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
hash: 15
|
92
|
+
segments:
|
93
|
+
- 1
|
94
|
+
- 5
|
95
|
+
- 6
|
96
|
+
version: 1.5.6
|
103
97
|
type: :development
|
98
|
+
version_requirements: *id005
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: equivalent-xml
|
104
101
|
prerelease: false
|
105
|
-
|
106
|
-
none: false
|
107
|
-
requirements:
|
108
|
-
- - ! '>='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 0.2.8
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: open-uri-cached
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
114
103
|
none: false
|
115
|
-
requirements:
|
116
|
-
- -
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 19
|
108
|
+
segments:
|
109
|
+
- 0
|
110
|
+
- 3
|
111
|
+
- 0
|
112
|
+
version: 0.3.0
|
119
113
|
type: :development
|
114
|
+
version_requirements: *id006
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: open-uri-cached
|
120
117
|
prerelease: false
|
121
|
-
|
118
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
122
119
|
none: false
|
123
|
-
requirements:
|
124
|
-
- -
|
125
|
-
- !ruby/object:Gem::Version
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
hash: 21
|
124
|
+
segments:
|
125
|
+
- 0
|
126
|
+
- 0
|
127
|
+
- 5
|
126
128
|
version: 0.0.5
|
127
|
-
- !ruby/object:Gem::Dependency
|
128
|
-
name: yard
|
129
|
-
requirement: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
|
-
requirements:
|
132
|
-
- - ! '>='
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: 0.6.0
|
135
129
|
type: :development
|
130
|
+
version_requirements: *id007
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: yard
|
136
133
|
prerelease: false
|
137
|
-
|
134
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
138
135
|
none: false
|
139
|
-
requirements:
|
140
|
-
- -
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
- - ! '>='
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
version: 0.0.12
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
hash: 57
|
140
|
+
segments:
|
141
|
+
- 0
|
142
|
+
- 8
|
143
|
+
- 3
|
144
|
+
version: 0.8.3
|
151
145
|
type: :development
|
146
|
+
version_requirements: *id008
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: spira
|
152
149
|
prerelease: false
|
153
|
-
|
150
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
154
151
|
none: false
|
155
|
-
requirements:
|
156
|
-
- -
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
none: false
|
163
|
-
requirements:
|
164
|
-
- - ! '>='
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 2.8.0
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
hash: 3
|
156
|
+
segments:
|
157
|
+
- 0
|
158
|
+
version: "0"
|
167
159
|
type: :development
|
160
|
+
version_requirements: *id009
|
161
|
+
- !ruby/object:Gem::Dependency
|
162
|
+
name: rspec
|
168
163
|
prerelease: false
|
169
|
-
|
170
|
-
none: false
|
171
|
-
requirements:
|
172
|
-
- - ! '>='
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: 2.8.0
|
175
|
-
- !ruby/object:Gem::Dependency
|
176
|
-
name: rdf-spec
|
177
|
-
requirement: !ruby/object:Gem::Requirement
|
164
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
178
165
|
none: false
|
179
|
-
requirements:
|
180
|
-
- -
|
181
|
-
- !ruby/object:Gem::Version
|
182
|
-
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
hash: 63
|
170
|
+
segments:
|
171
|
+
- 2
|
172
|
+
- 12
|
173
|
+
- 0
|
174
|
+
version: 2.12.0
|
183
175
|
type: :development
|
176
|
+
version_requirements: *id010
|
177
|
+
- !ruby/object:Gem::Dependency
|
178
|
+
name: rdf-spec
|
184
179
|
prerelease: false
|
185
|
-
|
186
|
-
none: false
|
187
|
-
requirements:
|
188
|
-
- - ! '>='
|
189
|
-
- !ruby/object:Gem::Version
|
190
|
-
version: 0.3.4
|
191
|
-
- !ruby/object:Gem::Dependency
|
192
|
-
name: rdf-rdfa
|
193
|
-
requirement: !ruby/object:Gem::Requirement
|
180
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
194
181
|
none: false
|
195
|
-
requirements:
|
196
|
-
- -
|
197
|
-
- !ruby/object:Gem::Version
|
198
|
-
|
182
|
+
requirements:
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
hash: 15
|
186
|
+
segments:
|
187
|
+
- 1
|
188
|
+
- 0
|
189
|
+
version: "1.0"
|
199
190
|
type: :development
|
191
|
+
version_requirements: *id011
|
192
|
+
- !ruby/object:Gem::Dependency
|
193
|
+
name: rdf-rdfa
|
200
194
|
prerelease: false
|
201
|
-
|
202
|
-
none: false
|
203
|
-
requirements:
|
204
|
-
- - ! '>='
|
205
|
-
- !ruby/object:Gem::Version
|
206
|
-
version: 0.3.15
|
207
|
-
- !ruby/object:Gem::Dependency
|
208
|
-
name: rdf-turtle
|
209
|
-
requirement: !ruby/object:Gem::Requirement
|
195
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
210
196
|
none: false
|
211
|
-
requirements:
|
212
|
-
- -
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
hash: 3
|
201
|
+
segments:
|
202
|
+
- 0
|
203
|
+
version: "0"
|
215
204
|
type: :development
|
205
|
+
version_requirements: *id012
|
206
|
+
- !ruby/object:Gem::Dependency
|
207
|
+
name: rdf-turtle
|
216
208
|
prerelease: false
|
217
|
-
|
218
|
-
none: false
|
219
|
-
requirements:
|
220
|
-
- - ! '>='
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 0.1.0
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: rdf-isomorphic
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
209
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
226
210
|
none: false
|
227
|
-
requirements:
|
228
|
-
- -
|
229
|
-
- !ruby/object:Gem::Version
|
230
|
-
|
211
|
+
requirements:
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
hash: 3
|
215
|
+
segments:
|
216
|
+
- 0
|
217
|
+
version: "0"
|
231
218
|
type: :development
|
219
|
+
version_requirements: *id013
|
220
|
+
- !ruby/object:Gem::Dependency
|
221
|
+
name: rdf-isomorphic
|
232
222
|
prerelease: false
|
233
|
-
|
223
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
234
224
|
none: false
|
235
|
-
requirements:
|
236
|
-
- -
|
237
|
-
- !ruby/object:Gem::Version
|
238
|
-
|
225
|
+
requirements:
|
226
|
+
- - ">="
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
hash: 3
|
229
|
+
segments:
|
230
|
+
- 0
|
231
|
+
version: "0"
|
232
|
+
type: :development
|
233
|
+
version_requirements: *id014
|
239
234
|
description: Microdata reader for Ruby.
|
240
235
|
email: public-rdf-ruby@w3.org
|
241
236
|
executables: []
|
237
|
+
|
242
238
|
extensions: []
|
239
|
+
|
243
240
|
extra_rdoc_files: []
|
244
|
-
|
241
|
+
|
242
|
+
files:
|
245
243
|
- AUTHORS
|
246
244
|
- README
|
247
245
|
- UNLICENSE
|
@@ -257,29 +255,40 @@ files:
|
|
257
255
|
- etc/doap.html
|
258
256
|
- etc/registry.json
|
259
257
|
homepage: http://github.com/ruby-rdf/rdf-microdata
|
260
|
-
licenses:
|
258
|
+
licenses:
|
261
259
|
- Public Domain
|
262
260
|
post_install_message:
|
263
261
|
rdoc_options: []
|
264
|
-
|
262
|
+
|
263
|
+
require_paths:
|
265
264
|
- lib
|
266
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
265
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
267
266
|
none: false
|
268
|
-
requirements:
|
269
|
-
- -
|
270
|
-
- !ruby/object:Gem::Version
|
267
|
+
requirements:
|
268
|
+
- - ">="
|
269
|
+
- !ruby/object:Gem::Version
|
270
|
+
hash: 53
|
271
|
+
segments:
|
272
|
+
- 1
|
273
|
+
- 8
|
274
|
+
- 1
|
271
275
|
version: 1.8.1
|
272
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
276
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
273
277
|
none: false
|
274
|
-
requirements:
|
275
|
-
- -
|
276
|
-
- !ruby/object:Gem::Version
|
277
|
-
|
278
|
+
requirements:
|
279
|
+
- - ">="
|
280
|
+
- !ruby/object:Gem::Version
|
281
|
+
hash: 3
|
282
|
+
segments:
|
283
|
+
- 0
|
284
|
+
version: "0"
|
278
285
|
requirements: []
|
286
|
+
|
279
287
|
rubyforge_project: rdf-microdata
|
280
288
|
rubygems_version: 1.8.24
|
281
289
|
signing_key:
|
282
290
|
specification_version: 3
|
283
291
|
summary: Microdata reader for Ruby.
|
284
292
|
test_files: []
|
293
|
+
|
285
294
|
has_rdoc: false
|