rdf-microdata 3.1.0 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -22
- data/UNLICENSE +1 -1
- data/VERSION +1 -1
- data/etc/doap.html +9 -9
- data/etc/doap.nt +19 -19
- data/etc/doap.ttl +20 -21
- data/etc/registry.json +5 -0
- data/lib/rdf/microdata/format.rb +1 -1
- data/lib/rdf/microdata/rdfa_reader.rb +6 -3
- data/lib/rdf/microdata/reader/nokogiri.rb +6 -5
- data/lib/rdf/microdata/reader.rb +3 -3
- data/lib/rdf/microdata/registry.rb +1 -1
- data/lib/rdf/microdata.rb +3 -3
- metadata +41 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93d6700bb2a521d356eadfd6446baf0bc4945fe46da116aeeb30a1b64a4ae765
|
4
|
+
data.tar.gz: 38fe95ccde63204c49e5e65764a864bfc0cabf47d494825f0d8f9f685d3a128c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 174f14ef99d0042f7f796dfc9f670a97eacda670e678a2a3d7199bf66367fcd37bdec2c9d5f709183bca52a75a1c89921ee4659350011d2303bae0cb4f1fa084
|
7
|
+
data.tar.gz: b7766da37a177477fe18604403cca06a743d6f4081f888b1185a45b9bbbbe0903f906646fae8005b8e9b2e116f7dfc0dcd8929f372d8e2413593ea8b3208a725
|
data/README.md
CHANGED
@@ -2,8 +2,10 @@
|
|
2
2
|
|
3
3
|
[Microdata][] parser for RDF.rb.
|
4
4
|
|
5
|
-
[![Gem Version](https://badge.fury.io/rb/rdf-microdata.png)](
|
6
|
-
[![Build Status](https://
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/rdf-microdata.png)](https://badge.fury.io/rb/rdf-microdata)
|
6
|
+
[![Build Status](https://github.com/ruby-rdf/rdf-microdata/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/rdf-microdata/actions?query=workflow%3ACI)
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/rdf-microdata/badge.svg?branch=develop)](https://coveralls.io/github/ruby-rdf/rdf-microdata?branch=develop)
|
8
|
+
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
|
7
9
|
|
8
10
|
## DESCRIPTION
|
9
11
|
RDF::Microdata is a Microdata reader for Ruby using the [RDF.rb][RDF.rb] library suite.
|
@@ -13,7 +15,6 @@ RDF::Microdata parses [Microdata][] into statements or triples using the rules d
|
|
13
15
|
|
14
16
|
* Microdata parser.
|
15
17
|
* Uses Nokogiri for parsing HTML
|
16
|
-
* If available, uses [Nokogumbo][] gem for are pure-HTML5 parser with better error detection.
|
17
18
|
|
18
19
|
Install with 'gem install rdf-microdata'
|
19
20
|
|
@@ -45,11 +46,11 @@ GRDDL-type triple generation, such as for html>head>title anchor tags.
|
|
45
46
|
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.
|
46
47
|
|
47
48
|
## Dependencies
|
48
|
-
* [RDF.rb](
|
49
|
-
* [RDF::
|
50
|
-
* [
|
51
|
-
* [
|
52
|
-
*
|
49
|
+
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.1)
|
50
|
+
* [RDF::RDFa](https://rubygems.org/gems/rdf-xsd) (~> 3.1)
|
51
|
+
* [RDF::XSD](https://rubygems.org/gems/rdf-xsd) (~> 3.1)
|
52
|
+
* [HTMLEntities](https://rubygems.org/gems/htmlentities) ('~> 4.3')
|
53
|
+
* [Nokogiri](https://rubygems.org/gems/nokogiri) (~> 1.10)
|
53
54
|
|
54
55
|
## Documentation
|
55
56
|
Full documentation available on [Rubydoc.info][Microdata doc]
|
@@ -70,13 +71,13 @@ The reader exposes a `#rdfa` method, which can be used to retrieve the transform
|
|
70
71
|
|
71
72
|
## Resources
|
72
73
|
* [RDF.rb][RDF.rb]
|
73
|
-
* [Documentation](
|
74
|
+
* [Documentation](https://www.rubydoc.info/github/ruby-rdf/rdf-microdata/)
|
74
75
|
* [History](file:History.md)
|
75
76
|
* [Microdata][]
|
76
77
|
* [Microdata RDF][]
|
77
78
|
|
78
79
|
## Author
|
79
|
-
* [Gregg Kellogg](
|
80
|
+
* [Gregg Kellogg](https://github.com/gkellogg) - <https://greggkellogg.net/>
|
80
81
|
|
81
82
|
## Contributing
|
82
83
|
|
@@ -90,25 +91,26 @@ The reader exposes a `#rdfa` method, which can be used to retrieve the transform
|
|
90
91
|
list in the the `README`. Alphabetical order applies.
|
91
92
|
* Do note that in order for us to merge any non-trivial changes (as a rule
|
92
93
|
of thumb, additions larger than about 15 lines of code), we need an
|
93
|
-
explicit [public domain dedication][PDD] on record from you
|
94
|
+
explicit [public domain dedication][PDD] on record from you,
|
95
|
+
which you will be asked to agree to on the first commit to a repo within the organization.
|
96
|
+
Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.
|
94
97
|
|
95
98
|
## License
|
96
99
|
|
97
100
|
This is free and unencumbered public domain software. For more information,
|
98
|
-
see <
|
101
|
+
see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
|
99
102
|
|
100
103
|
## FEEDBACK
|
101
104
|
|
102
105
|
* gregg@greggkellogg.net
|
103
|
-
* <
|
104
|
-
* <
|
105
|
-
* <
|
106
|
+
* <https://rubygems.org/rdf-microdata>
|
107
|
+
* <https://github.com/ruby-rdf/rdf-microdata>
|
108
|
+
* <https://lists.w3.org/Archives/Public/public-rdf-ruby/>
|
106
109
|
|
107
110
|
[RDF.rb]: https://github.com/ruby-rdf/rdf
|
108
|
-
[YARD]:
|
109
|
-
[YARD-GS]:
|
110
|
-
[PDD]:
|
111
|
-
[Microdata]:
|
112
|
-
[Microdata RDF]:
|
113
|
-
[Microdata doc]:
|
114
|
-
[Nokogumbo]: https://github.com/rubys/nokogumbo/#readme
|
111
|
+
[YARD]: https://yardoc.org/
|
112
|
+
[YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
|
113
|
+
[PDD]: https://unlicense.org/#unlicensing-contributions
|
114
|
+
[Microdata]: https://dev.w3.org/html5/md/Overview.html "HTML Microdata"
|
115
|
+
[Microdata RDF]: https://dvcs.w3.org/hg/htmldata/raw-file/default/microdata-rdf/index.html "Microdata to RDF"
|
116
|
+
[Microdata doc]: https://rubydoc.info/github/ruby-rdf/rdf-microdata/frames
|
data/UNLICENSE
CHANGED
@@ -21,4 +21,4 @@ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
21
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22
22
|
OTHER DEALINGS IN THE SOFTWARE.
|
23
23
|
|
24
|
-
For more information, please refer to <
|
24
|
+
For more information, please refer to <https://unlicense.org/1.0/>
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.4
|
data/etc/doap.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<title lang="en" itemprop="shortdesc">Microdata reader for Ruby.</title>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
|
6
|
-
<base href="
|
6
|
+
<base href="https://rubygems.org/gems/rdf-microdata">
|
7
7
|
</head>
|
8
8
|
<body>
|
9
9
|
<p>Project description for <span itemprop="name">RDF::Microdata</span>.</p>
|
@@ -18,26 +18,26 @@
|
|
18
18
|
<dt>Created</dt><dd><time itemprop="created" datetime="2011-08-29">2011-08-29</time></dd>
|
19
19
|
<dt>Blog</dt><dd><a href="http://greggkellogg.net/" itemprop="blog">http://greggkellogg.net/</a></dd>
|
20
20
|
<dt>Bug DB</dt><dd>
|
21
|
-
<a href="
|
22
|
-
|
21
|
+
<a href="https://github.com/ruby-rdf/rdf-microdata/issues" itemprop="bug-database">
|
22
|
+
https://github.com/ruby-rdf/rdf-microdata/issues
|
23
23
|
</a>
|
24
24
|
</dd>
|
25
25
|
<dt>Category</dt><dd>
|
26
26
|
<a itemprop="category" href="http://dbpedia.org/resource/Resource_Description_Framework">Resource Description Framework</a>
|
27
27
|
for
|
28
|
-
<
|
28
|
+
<span itemprop="programming-language">Ruby</span>
|
29
29
|
</dd>
|
30
30
|
<dt>Implements</dt><dd>
|
31
31
|
<a itemprop="implements" href="http://www.w3.org/TR/microdata-rdf/">Microdata to RDF</a>
|
32
32
|
</dd>
|
33
|
-
<dt>Download</dt><dd><a href="
|
34
|
-
|
33
|
+
<dt>Download</dt><dd><a href="https://rubygems.org/gems/rdf-microdata" itemprop="download-page">
|
34
|
+
https://rubygems.org/gems/rdf-microdata
|
35
35
|
</a></dd>
|
36
|
-
<dt>Home Page</dt><dd><a href="
|
37
|
-
|
36
|
+
<dt>Home Page</dt><dd><a href="https://github.com/ruby-rdf/rdf-microdata" itemprop="homepage">
|
37
|
+
https://github.com/ruby-rdf/rdf-microdata
|
38
38
|
</a></dd>
|
39
39
|
<dt>License</dt><dd>
|
40
|
-
<a href="
|
40
|
+
<a href="https://unlicense.org/1.0/" itemprop="license">Public Domain</a>
|
41
41
|
</dd>
|
42
42
|
<dt>Mailing List</dt><dd><a href="http://lists.w3.org/Archives/Public/public-rdf-ruby/" itemprop="mailing-list">
|
43
43
|
http://lists.w3.org/Archives/Public/public-rdf-ruby/
|
data/etc/doap.nt
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
<
|
4
|
-
<
|
5
|
-
<
|
6
|
-
<
|
7
|
-
<
|
8
|
-
<
|
9
|
-
<
|
10
|
-
<
|
11
|
-
<
|
12
|
-
<
|
13
|
-
<
|
14
|
-
<
|
15
|
-
<
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<
|
19
|
-
<
|
1
|
+
<https://rubygems.org/gems/rdf-microdata> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://usefulinc.com/ns/doap#Project> .
|
2
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#shortdesc> "Microdata reader for Ruby."@en .
|
3
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#description> "\n RDF::Microdata is an Microdata reader for Ruby using the RDF.rb library suite.\n "@en .
|
4
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#name> "RDF::Microdata" .
|
5
|
+
<https://rubygems.org/gems/rdf-microdata> <http://purl.org/dc/terms/creator> <http://greggkellogg.net/foaf#me> .
|
6
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#developer> <http://greggkellogg.net/foaf#me> .
|
7
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#documenter> <http://greggkellogg.net/foaf#me> .
|
8
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#maintainer> <http://greggkellogg.net/foaf#me> .
|
9
|
+
<https://rubygems.org/gems/rdf-microdata> <http://xmlns.com/foaf/0.1/creator> <http://greggkellogg.net/foaf#me> .
|
10
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#created> "2011-08-29"^^<http://www.w3.org/2001/XMLSchema#date> .
|
11
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#blog> <http://greggkellogg.net/> .
|
12
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#bug-database> <https://github.com/ruby-rdf/rdf-microdata/issues> .
|
13
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#category> <http://dbpedia.org/resource/Resource_Description_Framework> .
|
14
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#programming-language> "Ruby" .
|
15
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#implements> <http://www.w3.org/TR/microdata-rdf/> .
|
16
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#download-page> <https://rubygems.org/gems/rdf-microdata> .
|
17
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#homepage> <https://github.com/ruby-rdf/rdf-microdata> .
|
18
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#license> <https://unlicense.org/1.0/> .
|
19
|
+
<https://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#mailing-list> <http://lists.w3.org/Archives/Public/public-rdf-ruby/> .
|
data/etc/doap.ttl
CHANGED
@@ -1,27 +1,26 @@
|
|
1
|
-
@
|
1
|
+
@base <https://rubygems.org/gems/rdf-microdata> .
|
2
|
+
@prefix dc: <http://purl.org/dc/terms/> .
|
2
3
|
@prefix doap: <http://usefulinc.com/ns/doap#> .
|
3
4
|
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
4
|
-
@prefix rdf:
|
5
|
-
@prefix xsd:
|
5
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
6
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
doap:
|
10
|
-
doap:
|
8
|
+
<> a doap:Project;
|
9
|
+
doap:name "RDF::Microdata";
|
10
|
+
doap:shortdesc "Microdata reader for Ruby RDF.rb."@en;
|
11
|
+
doap:description "RDF::Microdata is an Microdata reader for Ruby using the RDF.rb library suite."@en;
|
12
|
+
dc:creator <https://greggkellogg.net/foaf#me>;
|
13
|
+
doap:blog <https://greggkellogg.net/>;
|
14
|
+
doap:bug-database <https://github.com/ruby-rdf/rdf-microdata/issues>;
|
11
15
|
doap:category <http://dbpedia.org/resource/Resource_Description_Framework>;
|
12
16
|
doap:created "2011-08-29"^^xsd:date;
|
13
|
-
doap:
|
14
|
-
|
15
|
-
|
16
|
-
doap:
|
17
|
-
doap:documenter <http://greggkellogg.net/foaf#me>;
|
18
|
-
doap:download-page <http://rubygems.org/gems/rdf-microdata>;
|
19
|
-
doap:homepage <http://github.com/ruby-rdf/rdf-microdata>;
|
17
|
+
doap:developer <https://greggkellogg.net/foaf#me>;
|
18
|
+
doap:documenter <https://greggkellogg.net/foaf#me>;
|
19
|
+
doap:download-page <>;
|
20
|
+
doap:homepage <https://github.com/ruby-rdf/rdf-microdata>;
|
20
21
|
doap:implements <http://www.w3.org/TR/microdata-rdf/>;
|
21
|
-
doap:license <
|
22
|
-
doap:mailing-list <
|
23
|
-
doap:maintainer <
|
24
|
-
doap:
|
25
|
-
|
26
|
-
doap:shortdesc "Microdata reader for Ruby."@en;
|
27
|
-
foaf:creator <http://greggkellogg.net/foaf#me> .
|
22
|
+
doap:license <https://unlicense.org/1.0/>;
|
23
|
+
doap:mailing-list <https://lists.w3.org/Archives/Public/public-rdf-ruby/>;
|
24
|
+
doap:maintainer <https://greggkellogg.net/foaf#me>;
|
25
|
+
doap:programming-language "Ruby";
|
26
|
+
foaf:creator <https://greggkellogg.net/foaf#me> .
|
data/etc/registry.json
CHANGED
@@ -4,5 +4,10 @@
|
|
4
4
|
"additionalType": {"subPropertyOf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}
|
5
5
|
}
|
6
6
|
},
|
7
|
+
"https://schema.org/": {
|
8
|
+
"properties": {
|
9
|
+
"additionalType": {"subPropertyOf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}
|
10
|
+
}
|
11
|
+
},
|
7
12
|
"http://microformats.org/profile/hcard": {}
|
8
13
|
}
|
data/lib/rdf/microdata/format.rb
CHANGED
@@ -19,7 +19,7 @@ module RDF::Microdata
|
|
19
19
|
# @example Obtaining serialization format MIME types
|
20
20
|
# RDF::Format.content_types #=> {"text/html" => [RDF::Microdata::Format]}
|
21
21
|
#
|
22
|
-
# @see
|
22
|
+
# @see https://www.w3.org/TR/rdf-testcases/#ntriples
|
23
23
|
class Format < RDF::Format
|
24
24
|
content_encoding 'utf-8'
|
25
25
|
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'rdf/rdfa'
|
2
|
-
require 'nokogumbo'
|
3
2
|
|
4
3
|
module RDF::Microdata
|
5
4
|
##
|
@@ -42,8 +41,12 @@ module RDF::Microdata
|
|
42
41
|
# Otherwise, default is utf-8
|
43
42
|
options[:encoding] ||= 'utf-8'
|
44
43
|
options[:encoding] = options[:encoding].to_s if options[:encoding]
|
45
|
-
|
46
|
-
|
44
|
+
begin
|
45
|
+
input = input.read if input.respond_to?(:read)
|
46
|
+
::Nokogiri::HTML5(input.force_encoding(options[:encoding]), max_parse_errors: 1000)
|
47
|
+
rescue LoadError, NoMethodError
|
48
|
+
::Nokogiri::HTML.parse(input, base_uri.to_s, options[:encoding])
|
49
|
+
end
|
47
50
|
end
|
48
51
|
|
49
52
|
# For all members having @itemscope
|
@@ -3,7 +3,7 @@ module RDF::Microdata
|
|
3
3
|
##
|
4
4
|
# Nokogiri implementation of an HTML parser.
|
5
5
|
#
|
6
|
-
# @see
|
6
|
+
# @see https://nokogiri.org/
|
7
7
|
module Nokogiri
|
8
8
|
##
|
9
9
|
# Returns the name of the underlying XML library.
|
@@ -192,10 +192,9 @@ module RDF::Microdata
|
|
192
192
|
options[:encoding] = options[:encoding].to_s if options[:encoding]
|
193
193
|
|
194
194
|
begin
|
195
|
-
require 'nokogumbo' unless defined?(::Nokogumbo)
|
196
195
|
input = input.read if input.respond_to?(:read)
|
197
196
|
::Nokogiri::HTML5(input.force_encoding(options[:encoding]), max_parse_errors: 1000)
|
198
|
-
rescue LoadError
|
197
|
+
rescue LoadError, NoMethodError
|
199
198
|
::Nokogiri::HTML.parse(input, base_uri.to_s, options[:encoding])
|
200
199
|
end
|
201
200
|
end
|
@@ -212,7 +211,9 @@ module RDF::Microdata
|
|
212
211
|
##
|
213
212
|
# Document errors
|
214
213
|
def doc_errors
|
215
|
-
@doc.errors.reject
|
214
|
+
@doc.errors.reject do |e|
|
215
|
+
e.to_s =~ %r{(The doctype must be the first token in the document)|(Expected a doctype token)|(Unexpected '\?' where start tag name is expected)}
|
216
|
+
end
|
216
217
|
end
|
217
218
|
|
218
219
|
##
|
@@ -230,7 +231,7 @@ module RDF::Microdata
|
|
230
231
|
##
|
231
232
|
# Based on Microdata element.getItems
|
232
233
|
#
|
233
|
-
# @see
|
234
|
+
# @see https://www.w3.org/TR/2011/WD-microdata-20110525/#top-level-microdata-items
|
234
235
|
def getItems
|
235
236
|
@doc.css('[itemscope]').select {|el| !el.has_attribute?('itemprop')}.map {|n| NodeProxy.new(n)}
|
236
237
|
end
|
data/lib/rdf/microdata/reader.rb
CHANGED
@@ -8,8 +8,8 @@ module RDF::Microdata
|
|
8
8
|
#
|
9
9
|
# Based on processing rules, amended with the following:
|
10
10
|
#
|
11
|
-
# @see
|
12
|
-
# @author [Gregg Kellogg](
|
11
|
+
# @see https://dvcs.w3.org/hg/htmldata/raw-file/0d6b89f5befb/microdata-rdf/index.html
|
12
|
+
# @author [Gregg Kellogg](https://greggkellogg.net/)
|
13
13
|
class Reader < RDF::Reader
|
14
14
|
format Format
|
15
15
|
include Expansion
|
@@ -39,7 +39,7 @@ module RDF::Microdata
|
|
39
39
|
|
40
40
|
##
|
41
41
|
# Reader options
|
42
|
-
# @see
|
42
|
+
# @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Reader#options-class_method
|
43
43
|
def self.options
|
44
44
|
super + [
|
45
45
|
RDF::CLI::Option.new(
|
@@ -55,7 +55,7 @@ module RDF::Microdata
|
|
55
55
|
# Generate a predicateURI given a `name`
|
56
56
|
#
|
57
57
|
# @param [#to_s] name
|
58
|
-
# @param [
|
58
|
+
# @param [RDF::URI] base_uri base URI for resolving `name`.
|
59
59
|
# @return [RDF::URI]
|
60
60
|
def predicateURI(name, base_uri)
|
61
61
|
u = RDF::URI(name)
|
data/lib/rdf/microdata.rb
CHANGED
@@ -15,10 +15,10 @@ module RDF
|
|
15
15
|
# end
|
16
16
|
# end
|
17
17
|
#
|
18
|
-
# @see
|
19
|
-
# @see
|
18
|
+
# @see https://www.rubydoc.info/github/ruby-rdf/rdf/
|
19
|
+
# @see https://www.w3.org/TR/2011/WD-microdata-20110525/
|
20
20
|
#
|
21
|
-
# @author [Gregg Kellogg](
|
21
|
+
# @author [Gregg Kellogg](https://greggkellogg.net/)
|
22
22
|
module Microdata
|
23
23
|
USES_VOCAB = RDF::URI("http://www.w3.org/ns/rdfa#usesVocabulary")
|
24
24
|
DEFAULT_REGISTRY = File.expand_path("../../../etc/registry.json", __FILE__)
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-microdata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg
|
8
8
|
- Kellogg
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-10-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdf
|
@@ -18,6 +18,29 @@ dependencies:
|
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '3.1'
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 3.1.13
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - "~>"
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '3.1'
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.1.13
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rdf-rdfa
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.1'
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 3.1.3
|
21
44
|
type: :runtime
|
22
45
|
prerelease: false
|
23
46
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -25,6 +48,9 @@ dependencies:
|
|
25
48
|
- - "~>"
|
26
49
|
- !ruby/object:Gem::Version
|
27
50
|
version: '3.1'
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 3.1.3
|
28
54
|
- !ruby/object:Gem::Dependency
|
29
55
|
name: rdf-xsd
|
30
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,14 +85,14 @@ dependencies:
|
|
59
85
|
requirements:
|
60
86
|
- - "~>"
|
61
87
|
- !ruby/object:Gem::Version
|
62
|
-
version: '1.
|
88
|
+
version: '1.12'
|
63
89
|
type: :runtime
|
64
90
|
prerelease: false
|
65
91
|
version_requirements: !ruby/object:Gem::Requirement
|
66
92
|
requirements:
|
67
93
|
- - "~>"
|
68
94
|
- !ruby/object:Gem::Version
|
69
|
-
version: '1.
|
95
|
+
version: '1.12'
|
70
96
|
- !ruby/object:Gem::Dependency
|
71
97
|
name: equivalent-xml
|
72
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,28 +113,28 @@ dependencies:
|
|
87
113
|
requirements:
|
88
114
|
- - "~>"
|
89
115
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.9
|
116
|
+
version: '0.9'
|
91
117
|
type: :development
|
92
118
|
prerelease: false
|
93
119
|
version_requirements: !ruby/object:Gem::Requirement
|
94
120
|
requirements:
|
95
121
|
- - "~>"
|
96
122
|
- !ruby/object:Gem::Version
|
97
|
-
version: 0.9
|
123
|
+
version: '0.9'
|
98
124
|
- !ruby/object:Gem::Dependency
|
99
125
|
name: rspec
|
100
126
|
requirement: !ruby/object:Gem::Requirement
|
101
127
|
requirements:
|
102
128
|
- - "~>"
|
103
129
|
- !ruby/object:Gem::Version
|
104
|
-
version: '3.
|
130
|
+
version: '3.10'
|
105
131
|
type: :development
|
106
132
|
prerelease: false
|
107
133
|
version_requirements: !ruby/object:Gem::Requirement
|
108
134
|
requirements:
|
109
135
|
- - "~>"
|
110
136
|
- !ruby/object:Gem::Version
|
111
|
-
version: '3.
|
137
|
+
version: '3.10'
|
112
138
|
- !ruby/object:Gem::Dependency
|
113
139
|
name: rspec-its
|
114
140
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,20 +165,6 @@ dependencies:
|
|
139
165
|
version: '3.1'
|
140
166
|
- !ruby/object:Gem::Dependency
|
141
167
|
name: rdf-turtle
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - ">="
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: '3.1'
|
147
|
-
type: :development
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - ">="
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '3.1'
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: rdf-isomorphic
|
156
168
|
requirement: !ruby/object:Gem::Requirement
|
157
169
|
requirements:
|
158
170
|
- - "~>"
|
@@ -166,7 +178,7 @@ dependencies:
|
|
166
178
|
- !ruby/object:Gem::Version
|
167
179
|
version: '3.1'
|
168
180
|
- !ruby/object:Gem::Dependency
|
169
|
-
name:
|
181
|
+
name: rdf-isomorphic
|
170
182
|
requirement: !ruby/object:Gem::Requirement
|
171
183
|
requirements:
|
172
184
|
- - "~>"
|
@@ -180,7 +192,7 @@ dependencies:
|
|
180
192
|
- !ruby/object:Gem::Version
|
181
193
|
version: '3.1'
|
182
194
|
- !ruby/object:Gem::Dependency
|
183
|
-
name:
|
195
|
+
name: json-ld
|
184
196
|
requirement: !ruby/object:Gem::Requirement
|
185
197
|
requirements:
|
186
198
|
- - "~>"
|
@@ -216,11 +228,11 @@ files:
|
|
216
228
|
- lib/rdf/microdata/registry.rb
|
217
229
|
- lib/rdf/microdata/version.rb
|
218
230
|
- lib/rdf/microdata/vocab.rb
|
219
|
-
homepage:
|
231
|
+
homepage: https://ruby-rdf.github.com/rdf-microdata
|
220
232
|
licenses:
|
221
233
|
- Unlicense
|
222
234
|
metadata: {}
|
223
|
-
post_install_message:
|
235
|
+
post_install_message:
|
224
236
|
rdoc_options: []
|
225
237
|
require_paths:
|
226
238
|
- lib
|
@@ -235,8 +247,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
247
|
- !ruby/object:Gem::Version
|
236
248
|
version: '0'
|
237
249
|
requirements: []
|
238
|
-
rubygems_version: 3.
|
239
|
-
signing_key:
|
250
|
+
rubygems_version: 3.2.22
|
251
|
+
signing_key:
|
240
252
|
specification_version: 4
|
241
253
|
summary: Microdata reader for Ruby.
|
242
254
|
test_files: []
|