rdf-rdfxml 2.0.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/AUTHORS +1 -1
- data/README.md +27 -23
- data/UNLICENSE +1 -1
- data/VERSION +1 -1
- data/lib/rdf/rdfxml.rb +3 -4
- data/lib/rdf/rdfxml/reader.rb +19 -9
- data/lib/rdf/rdfxml/reader/nokogiri.rb +10 -2
- data/lib/rdf/rdfxml/reader/rexml.rb +1 -1
- data/lib/rdf/rdfxml/writer.rb +12 -12
- metadata +33 -70
- data/lib/rdf/rdfxml/vocab.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6d78b045742a7ce1dcdc9cf7c25130db97bb5b6ad5c8107c725f1a1fd237eaaa
|
4
|
+
data.tar.gz: 01cc1867ba1b6d8c60e295c9f9726cc31452d99834038d4c8318f1aade2c7bed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f54dfe13e5296e938b30b461f889aa2f78f3b5b76bff54f5c1a3393b94d84f66f36f47b461531a5948089e1baac899f973315c88e099341d1d85dd68df8ee253
|
7
|
+
data.tar.gz: ed0b13aa3345e47438bbab0d036bcaf248d80e5a46c70a22eb39a45520846002f911ef6b7bde7dcdbdb3c3c6412008ca26ff7189054404e7123481b9d5801285
|
data/AUTHORS
CHANGED
@@ -1 +1 @@
|
|
1
|
-
* Gregg Kellogg <
|
1
|
+
* Gregg Kellogg <https://greggkellogg.net>
|
data/README.md
CHANGED
@@ -2,8 +2,10 @@
|
|
2
2
|
|
3
3
|
[RDF/XML][] reader/writer for [RDF.rb][].
|
4
4
|
|
5
|
-
[![Gem Version](https://badge.fury.io/rb/rdf-rdfxml.png)](
|
6
|
-
[![Build Status](https://
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/rdf-rdfxml.png)](https://badge.fury.io/rb/rdf-rdfxml)
|
6
|
+
[![Build Status](https://github.com/ruby-rdf/rdf-rdfxml/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/rdf-rdfxml/actions?query=workflow%3ACI)
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/rdf-rdfxml/badge.svg?branch=develop)](https://coveralls.io/github/ruby-rdf/rdf-rdfxml?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
|
|
@@ -16,9 +18,9 @@ Fully compliant [RDF/XML][] parser and serializer.
|
|
16
18
|
|
17
19
|
Install with `gem install rdf-rdfxml`
|
18
20
|
|
19
|
-
* 100% free and unencumbered [public domain](
|
21
|
+
* 100% free and unencumbered [public domain](https://unlicense.org/) software.
|
20
22
|
* Implements a complete parser for [RDF/XML][].
|
21
|
-
* Compatible with Ruby >= 2.
|
23
|
+
* Compatible with Ruby >= 2.4.
|
22
24
|
|
23
25
|
## Usage:
|
24
26
|
Instantiate a parser and parse source, specifying type and base-URL
|
@@ -40,8 +42,8 @@ Write a graph to a file:
|
|
40
42
|
end
|
41
43
|
|
42
44
|
## Dependencies
|
43
|
-
* [RDF.rb](
|
44
|
-
* Soft dependency on [Nokogiri](
|
45
|
+
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.1)
|
46
|
+
* Soft dependency on [Nokogiri](https://rubygems.org/gems/nokogiri) (>= 1.10)
|
45
47
|
|
46
48
|
## Documentation
|
47
49
|
Full documentation available on [Rubydoc.info][RDF/XML doc])
|
@@ -63,13 +65,13 @@ Full documentation available on [Rubydoc.info][RDF/XML doc])
|
|
63
65
|
* [RDF/XML][RDF/XML]
|
64
66
|
* [Distiller](http://rdf.greggkellogg.net)
|
65
67
|
* [Documentation][RDF/XML doc]
|
66
|
-
* [RDF Tests](
|
68
|
+
* [RDF Tests](https://www.w3.org/2000/10/rdf-tests/rdfcore/allTestCases.html)
|
67
69
|
|
68
70
|
## Author
|
69
|
-
* [Gregg Kellogg](
|
71
|
+
* [Gregg Kellogg](https://github.com/gkellogg) - <https://greggkellogg.net/>
|
70
72
|
|
71
73
|
## Contributors
|
72
|
-
* [Nicholas Humfrey](
|
74
|
+
* [Nicholas Humfrey](https://github.com/njh) - <http://njh.me/>
|
73
75
|
|
74
76
|
## Contributing
|
75
77
|
This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration.
|
@@ -84,25 +86,27 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo
|
|
84
86
|
list in the the `README`. Alphabetical order applies.
|
85
87
|
* Do note that in order for us to merge any non-trivial changes (as a rule
|
86
88
|
of thumb, additions larger than about 15 lines of code), we need an
|
87
|
-
explicit [public domain dedication][PDD] on record from you
|
89
|
+
explicit [public domain dedication][PDD] on record from you,
|
90
|
+
which you will be asked to agree to on the first commit to a repo within the organization.
|
91
|
+
Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.
|
88
92
|
|
89
93
|
## License
|
90
94
|
|
91
95
|
This is free and unencumbered public domain software. For more information,
|
92
|
-
see <
|
96
|
+
see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
|
93
97
|
|
94
98
|
## FEEDBACK
|
95
99
|
|
96
100
|
* gregg@greggkellogg.net
|
97
|
-
* <
|
98
|
-
* <
|
99
|
-
* <
|
100
|
-
|
101
|
-
[Ruby]:
|
102
|
-
[RDF]:
|
103
|
-
[RDF.rb]:
|
104
|
-
[RDF/XML]:
|
105
|
-
[YARD]:
|
106
|
-
[YARD-GS]:
|
107
|
-
[PDD]:
|
108
|
-
[RDF/XML doc]:
|
101
|
+
* <https://rubygems.org/rdf-rdfxml>
|
102
|
+
* <https://github.com/ruby-rdf/rdf-rdfxml>
|
103
|
+
* <https://lists.w3.org/Archives/Public/public-rdf-ruby/>
|
104
|
+
|
105
|
+
[Ruby]: https://ruby-lang.org/
|
106
|
+
[RDF]: https://www.w3.org/RDF/
|
107
|
+
[RDF.rb]: https://rubygems.org/gems/rdf
|
108
|
+
[RDF/XML]: http://www.w3.org/TR/rdf-syntax-grammar/ "RDF/XML Syntax Specification"
|
109
|
+
[YARD]: https://yardoc.org/
|
110
|
+
[YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
|
111
|
+
[PDD]: https://unlicense.org/#unlicensing-contributions
|
112
|
+
[RDF/XML doc]: https://rubydoc.info/github/ruby-rdf/rdf-rdfxml/master/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/>
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.1
|
data/lib/rdf/rdfxml.rb
CHANGED
@@ -2,6 +2,7 @@ $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..')))
|
|
2
2
|
require 'rdf'
|
3
3
|
|
4
4
|
module RDF
|
5
|
+
autoload :XML, 'rdf/rdfa/vocab'
|
5
6
|
##
|
6
7
|
# **`RDF::RDFXML`** is an RDF/XML extension for RDF.rb.
|
7
8
|
#
|
@@ -15,17 +16,15 @@ module RDF
|
|
15
16
|
# end
|
16
17
|
# end
|
17
18
|
#
|
18
|
-
# @see
|
19
|
+
# @see https://rubygems.org/gems/rdf
|
19
20
|
# @see http://www.w3.org/TR/REC-rdf-syntax/
|
20
21
|
#
|
21
|
-
# @author [Gregg Kellogg](http://
|
22
|
+
# @author [Gregg Kellogg](http://greggkellogg.net/)
|
22
23
|
module RDFXML
|
23
24
|
require 'rdf/rdfxml/format'
|
24
|
-
require 'rdf/rdfxml/vocab'
|
25
25
|
autoload :Reader, 'rdf/rdfxml/reader'
|
26
26
|
autoload :Writer, 'rdf/rdfxml/writer'
|
27
27
|
autoload :VERSION, 'rdf/rdfxml/version'
|
28
|
-
autoload :XML, 'rdf/rdfxml/vocab'
|
29
28
|
|
30
29
|
# Regexp matching an NCName.
|
31
30
|
NC_REGEXP = Regexp.new(
|
data/lib/rdf/rdfxml/reader.rb
CHANGED
@@ -11,7 +11,9 @@ module RDF::RDFXML
|
|
11
11
|
#
|
12
12
|
# Based on RDF/XML Syntax Specification: http://www.w3.org/TR/REC-rdf-syntax/
|
13
13
|
#
|
14
|
-
#
|
14
|
+
# Extension: A nodeElement can also use the rdf:resource attribute, if none of the other standard attributes are defined.
|
15
|
+
#
|
16
|
+
# @author [Gregg Kellogg](http://greggkellogg.net/)
|
15
17
|
class Reader < RDF::Reader
|
16
18
|
format Format
|
17
19
|
include RDF::Util::Logger
|
@@ -41,7 +43,7 @@ module RDF::RDFXML
|
|
41
43
|
end
|
42
44
|
|
43
45
|
# Clone existing evaluation context adding information from element
|
44
|
-
def clone(element, options
|
46
|
+
def clone(element, **options, &cb)
|
45
47
|
new_ec = EvaluationContext.new(@base, nil, @graph)
|
46
48
|
new_ec.uri_mappings = self.uri_mappings.clone
|
47
49
|
new_ec.language = self.language
|
@@ -136,7 +138,7 @@ module RDF::RDFXML
|
|
136
138
|
# @yieldparam [RDF::Reader] reader
|
137
139
|
# @yieldreturn [void] ignored
|
138
140
|
# @raise [Error] Raises RDF::ReaderError if _validate_
|
139
|
-
def initialize(input = $stdin, options
|
141
|
+
def initialize(input = $stdin, **options, &block)
|
140
142
|
super do
|
141
143
|
@library = case options[:library]
|
142
144
|
when nil
|
@@ -156,10 +158,13 @@ module RDF::RDFXML
|
|
156
158
|
self.extend(@implementation)
|
157
159
|
|
158
160
|
input.rewind if input.respond_to?(:rewind)
|
159
|
-
initialize_xml(input, options) rescue log_fatal($!.message)
|
161
|
+
initialize_xml(input, **options) rescue log_fatal($!.message)
|
160
162
|
|
161
|
-
|
162
|
-
|
163
|
+
if root.nil?
|
164
|
+
log_info("Empty document")
|
165
|
+
elsif !doc_errors.empty?
|
166
|
+
log_error("Synax errors") {doc_errors}
|
167
|
+
end
|
163
168
|
|
164
169
|
block.call(self) if block_given?
|
165
170
|
end
|
@@ -337,8 +342,8 @@ module RDF::RDFXML
|
|
337
342
|
# Determine the content type of this property element
|
338
343
|
log_fatal "child must be a proxy not a #{child.class}" unless child.is_a?(@implementation::NodeProxy)
|
339
344
|
|
340
|
-
text_nodes = child.children.select
|
341
|
-
element_nodes = child.children.select
|
345
|
+
text_nodes = child.children.select(&:text?)
|
346
|
+
element_nodes = child.children.select(&:element?)
|
342
347
|
add_debug(child) {"#{text_nodes.to_a.length} text nodes, #{element_nodes.to_a.length} element nodes"}
|
343
348
|
|
344
349
|
text_nodes.each do |node|
|
@@ -427,7 +432,7 @@ module RDF::RDFXML
|
|
427
432
|
else
|
428
433
|
literal_opts[:language] = child_ec.language
|
429
434
|
end
|
430
|
-
literal = RDF::Literal.new(child.inner_text, literal_opts)
|
435
|
+
literal = RDF::Literal.new(child.inner_text, **literal_opts)
|
431
436
|
add_triple(child, subject, predicate, literal)
|
432
437
|
reify(id, child, subject, predicate, literal, ec) if id
|
433
438
|
elsif parseType == "Resource"
|
@@ -583,6 +588,7 @@ module RDF::RDFXML
|
|
583
588
|
about = el.attribute_with_ns("about", RDF.to_uri.to_s)
|
584
589
|
id = el.attribute_with_ns("ID", RDF.to_uri.to_s)
|
585
590
|
nodeID = el.attribute_with_ns("nodeID", RDF.to_uri.to_s)
|
591
|
+
resource = el.attribute_with_ns("resource", RDF.to_uri.to_s)
|
586
592
|
|
587
593
|
if nodeID && about
|
588
594
|
add_error(el, "Cannot have rdf:nodeID and rdf:about.")
|
@@ -603,6 +609,10 @@ module RDF::RDFXML
|
|
603
609
|
about = RDF::NTriples.unescape(about.value)
|
604
610
|
add_debug(el) {"parse_subject, about: #{about.inspect}"}
|
605
611
|
uri(ec.base, about)
|
612
|
+
when resource
|
613
|
+
resource = RDF::NTriples.unescape(resource.value)
|
614
|
+
add_debug(el) {"parse_subject, resource: #{resource.inspect}"}
|
615
|
+
uri(ec.base, resource)
|
606
616
|
else
|
607
617
|
add_debug(el, "parse_subject, BNode")
|
608
618
|
RDF::Node.new
|
@@ -81,6 +81,14 @@ module RDF::RDFXML
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
+
##
|
85
|
+
# Return true of this is a text node
|
86
|
+
#
|
87
|
+
# @return [Array<:text, :element, :attribute>]
|
88
|
+
def text?
|
89
|
+
(@node.text? || @node.cdata?) && !@node.blank?
|
90
|
+
end
|
91
|
+
|
84
92
|
##
|
85
93
|
# Return true of all child elements are text
|
86
94
|
#
|
@@ -104,7 +112,7 @@ module RDF::RDFXML
|
|
104
112
|
def children
|
105
113
|
@children ||= NodeSetProxy.new(@node.children, self)
|
106
114
|
end
|
107
|
-
|
115
|
+
|
108
116
|
# Ancestors of this element, in order
|
109
117
|
def ancestors
|
110
118
|
@ancestors ||= parent ? parent.ancestors + [parent] : []
|
@@ -219,7 +227,7 @@ module RDF::RDFXML
|
|
219
227
|
#
|
220
228
|
# @param [Hash{Symbol => Object}] options
|
221
229
|
# @return [void]
|
222
|
-
def initialize_xml(input, options
|
230
|
+
def initialize_xml(input, **options)
|
223
231
|
require 'nokogiri' unless defined?(::Nokogiri)
|
224
232
|
@doc = case input
|
225
233
|
when ::Nokogiri::XML::Document
|
@@ -245,7 +245,7 @@ module RDF::RDFXML
|
|
245
245
|
#
|
246
246
|
# @param [Hash{Symbol => Object}] options
|
247
247
|
# @return [void]
|
248
|
-
def initialize_xml(input, options
|
248
|
+
def initialize_xml(input, **options)
|
249
249
|
require 'rexml/document' unless defined?(::REXML)
|
250
250
|
@doc = case input
|
251
251
|
when ::REXML::Document
|
data/lib/rdf/rdfxml/writer.rb
CHANGED
@@ -46,7 +46,7 @@ module RDF::RDFXML
|
|
46
46
|
# end
|
47
47
|
# end
|
48
48
|
#
|
49
|
-
# @author [Gregg Kellogg](http://
|
49
|
+
# @author [Gregg Kellogg](http://greggkellogg.net/)
|
50
50
|
class Writer < RDF::RDFa::Writer
|
51
51
|
format RDF::RDFXML::Format
|
52
52
|
include RDF::Util::Logger
|
@@ -113,7 +113,7 @@ module RDF::RDFXML
|
|
113
113
|
# URI to use as @href for output stylesheet processing instruction.
|
114
114
|
# @yield [writer]
|
115
115
|
# @yieldparam [RDF::Writer] writer
|
116
|
-
def initialize(output = $stdout, options
|
116
|
+
def initialize(output = $stdout, **options, &block)
|
117
117
|
super
|
118
118
|
end
|
119
119
|
|
@@ -170,7 +170,7 @@ module RDF::RDFXML
|
|
170
170
|
# @return String
|
171
171
|
# The rendered document is returned as a string
|
172
172
|
# Return Haml template for document from `haml_template[:subject]`
|
173
|
-
def render_subject(subject, predicates, options
|
173
|
+
def render_subject(subject, predicates, **options, &block)
|
174
174
|
# extract those properties that can be rendered as attributes
|
175
175
|
attr_props = if [:untyped, :typed].include?(@attributes)
|
176
176
|
options[:property_values].inject({}) do |memo, (prop, values)|
|
@@ -189,7 +189,7 @@ module RDF::RDFXML
|
|
189
189
|
end
|
190
190
|
|
191
191
|
predicates -= attr_props.keys.map {|k| expand_curie(k).to_s}
|
192
|
-
super(subject, predicates, options.merge(attr_props: attr_props), &block)
|
192
|
+
super(subject, predicates, **options.merge(attr_props: attr_props), &block)
|
193
193
|
end
|
194
194
|
# See if we can serialize as attribute.
|
195
195
|
# * untyped attributes that aren't duplicated where xml:lang == @lang
|
@@ -228,8 +228,8 @@ module RDF::RDFXML
|
|
228
228
|
# @yieldreturn [:ignored]
|
229
229
|
# @return String
|
230
230
|
# The rendered document is returned as a string
|
231
|
-
def render_document(subjects, options
|
232
|
-
super(subjects, options.merge(stylesheet: @options[:stylesheet]), &block)
|
231
|
+
def render_document(subjects, **options, &block)
|
232
|
+
super(subjects, **options.merge(stylesheet: @options[:stylesheet]), &block)
|
233
233
|
end
|
234
234
|
|
235
235
|
# Render a single- or multi-valued predicate using `haml_template[:property_value]` or `haml_template[:property_values]`. Yields each object for optional rendering. The block should only render for recursive subject definitions (i.e., where the object is also a subject and is rendered underneath the first referencing subject).
|
@@ -256,7 +256,7 @@ module RDF::RDFXML
|
|
256
256
|
# The block should only return a string for recursive object definitions.
|
257
257
|
# @return String
|
258
258
|
# The rendered document is returned as a string
|
259
|
-
def render_property(predicate, objects, options
|
259
|
+
def render_property(predicate, objects, **options, &block)
|
260
260
|
log_debug {"render_property(#{predicate}): #{objects.inspect}, #{options.inspect}"}
|
261
261
|
# If there are multiple objects, and no :property_values is defined, call recursively with
|
262
262
|
# each object
|
@@ -280,7 +280,7 @@ module RDF::RDFXML
|
|
280
280
|
|
281
281
|
log_debug {"list: #{list.inspect} #{list.to_a}"}
|
282
282
|
log_depth do
|
283
|
-
render_collection(predicate, list, options) do |object|
|
283
|
+
render_collection(predicate, list, **options) do |object|
|
284
284
|
yield(object, true) if block_given?
|
285
285
|
end
|
286
286
|
end
|
@@ -290,7 +290,7 @@ module RDF::RDFXML
|
|
290
290
|
if objects.length > 1
|
291
291
|
# Render each property using property_value template
|
292
292
|
objects.map do |object|
|
293
|
-
log_depth {render_property(predicate, [object], options, &block)}
|
293
|
+
log_depth {render_property(predicate, [object], **options, &block)}
|
294
294
|
end.join(" ")
|
295
295
|
else
|
296
296
|
log_fatal("Missing property template", exception: RDF::WriterError) if template.nil?
|
@@ -301,7 +301,7 @@ module RDF::RDFXML
|
|
301
301
|
property: get_qname(predicate),
|
302
302
|
recurse: log_depth <= @max_depth
|
303
303
|
}.merge(options)
|
304
|
-
hamlify(template, options, &block)
|
304
|
+
hamlify(template, **options, &block)
|
305
305
|
end
|
306
306
|
end
|
307
307
|
|
@@ -319,7 +319,7 @@ module RDF::RDFXML
|
|
319
319
|
# The block should only return a string for recursive object definitions.
|
320
320
|
# @return String
|
321
321
|
# The rendered collection is returned as a string
|
322
|
-
def render_collection(predicate, list, options
|
322
|
+
def render_collection(predicate, list, **options, &block)
|
323
323
|
template = options[:haml] || haml_template[:collection]
|
324
324
|
|
325
325
|
options = {
|
@@ -328,7 +328,7 @@ module RDF::RDFXML
|
|
328
328
|
property: get_qname(predicate),
|
329
329
|
recurse: log_depth <= @max_depth,
|
330
330
|
}.merge(options)
|
331
|
-
hamlify(template, options) do |object|
|
331
|
+
hamlify(template, **options) do |object|
|
332
332
|
yield object
|
333
333
|
end
|
334
334
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-rdfxml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.1
|
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-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdf
|
@@ -17,42 +17,42 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '3.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '3.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name: rdf-
|
29
|
+
name: rdf-xsd
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '3.1'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '3.1'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name: rdf-
|
43
|
+
name: rdf-rdfa
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '3.1'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '3.1'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: htmlentities
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,151 +68,117 @@ dependencies:
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '4.3'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: json-ld
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "~>"
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0.0'
|
77
74
|
- - ">="
|
78
75
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
76
|
+
version: '3.1'
|
80
77
|
type: :development
|
81
78
|
prerelease: false
|
82
79
|
version_requirements: !ruby/object:Gem::Requirement
|
83
80
|
requirements:
|
84
|
-
- - "~>"
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: '0.0'
|
87
81
|
- - ">="
|
88
82
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: spira
|
92
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.0.12
|
97
|
-
type: :development
|
98
|
-
prerelease: false
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 0.0.12
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: json-ld
|
106
|
-
requirement: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '2.0'
|
111
|
-
type: :development
|
112
|
-
prerelease: false
|
113
|
-
version_requirements: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '2.0'
|
83
|
+
version: '3.1'
|
118
84
|
- !ruby/object:Gem::Dependency
|
119
85
|
name: rspec
|
120
86
|
requirement: !ruby/object:Gem::Requirement
|
121
87
|
requirements:
|
122
88
|
- - "~>"
|
123
89
|
- !ruby/object:Gem::Version
|
124
|
-
version: '3.
|
90
|
+
version: '3.10'
|
125
91
|
type: :development
|
126
92
|
prerelease: false
|
127
93
|
version_requirements: !ruby/object:Gem::Requirement
|
128
94
|
requirements:
|
129
95
|
- - "~>"
|
130
96
|
- !ruby/object:Gem::Version
|
131
|
-
version: '3.
|
97
|
+
version: '3.10'
|
132
98
|
- !ruby/object:Gem::Dependency
|
133
99
|
name: rspec-its
|
134
100
|
requirement: !ruby/object:Gem::Requirement
|
135
101
|
requirements:
|
136
102
|
- - "~>"
|
137
103
|
- !ruby/object:Gem::Version
|
138
|
-
version: '1.
|
104
|
+
version: '1.3'
|
139
105
|
type: :development
|
140
106
|
prerelease: false
|
141
107
|
version_requirements: !ruby/object:Gem::Requirement
|
142
108
|
requirements:
|
143
109
|
- - "~>"
|
144
110
|
- !ruby/object:Gem::Version
|
145
|
-
version: '1.
|
111
|
+
version: '1.3'
|
146
112
|
- !ruby/object:Gem::Dependency
|
147
113
|
name: rdf-isomorphic
|
148
114
|
requirement: !ruby/object:Gem::Requirement
|
149
115
|
requirements:
|
150
116
|
- - "~>"
|
151
117
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
118
|
+
version: '3.1'
|
153
119
|
type: :development
|
154
120
|
prerelease: false
|
155
121
|
version_requirements: !ruby/object:Gem::Requirement
|
156
122
|
requirements:
|
157
123
|
- - "~>"
|
158
124
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
125
|
+
version: '3.1'
|
160
126
|
- !ruby/object:Gem::Dependency
|
161
127
|
name: rdf-turtle
|
162
128
|
requirement: !ruby/object:Gem::Requirement
|
163
129
|
requirements:
|
164
130
|
- - "~>"
|
165
131
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
132
|
+
version: '3.1'
|
167
133
|
type: :development
|
168
134
|
prerelease: false
|
169
135
|
version_requirements: !ruby/object:Gem::Requirement
|
170
136
|
requirements:
|
171
137
|
- - "~>"
|
172
138
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
139
|
+
version: '3.1'
|
174
140
|
- !ruby/object:Gem::Dependency
|
175
141
|
name: rdf-spec
|
176
142
|
requirement: !ruby/object:Gem::Requirement
|
177
143
|
requirements:
|
178
144
|
- - "~>"
|
179
145
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
146
|
+
version: '3.1'
|
181
147
|
type: :development
|
182
148
|
prerelease: false
|
183
149
|
version_requirements: !ruby/object:Gem::Requirement
|
184
150
|
requirements:
|
185
151
|
- - "~>"
|
186
152
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
153
|
+
version: '3.1'
|
188
154
|
- !ruby/object:Gem::Dependency
|
189
155
|
name: rdf-vocab
|
190
156
|
requirement: !ruby/object:Gem::Requirement
|
191
157
|
requirements:
|
192
158
|
- - "~>"
|
193
159
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
160
|
+
version: '3.1'
|
195
161
|
type: :development
|
196
162
|
prerelease: false
|
197
163
|
version_requirements: !ruby/object:Gem::Requirement
|
198
164
|
requirements:
|
199
165
|
- - "~>"
|
200
166
|
- !ruby/object:Gem::Version
|
201
|
-
version: '
|
167
|
+
version: '3.1'
|
202
168
|
- !ruby/object:Gem::Dependency
|
203
169
|
name: yard
|
204
170
|
requirement: !ruby/object:Gem::Requirement
|
205
171
|
requirements:
|
206
172
|
- - "~>"
|
207
173
|
- !ruby/object:Gem::Version
|
208
|
-
version: '0.
|
174
|
+
version: '0.9'
|
209
175
|
type: :development
|
210
176
|
prerelease: false
|
211
177
|
version_requirements: !ruby/object:Gem::Requirement
|
212
178
|
requirements:
|
213
179
|
- - "~>"
|
214
180
|
- !ruby/object:Gem::Version
|
215
|
-
version: '0.
|
181
|
+
version: '0.9'
|
216
182
|
description: RDF::RDFXML is an RDF/XML reader and writer for the RDF.rb library suite.
|
217
183
|
email: public-rdf-ruby@w3.org
|
218
184
|
executables: []
|
@@ -232,14 +198,13 @@ files:
|
|
232
198
|
- lib/rdf/rdfxml/reader/nokogiri.rb
|
233
199
|
- lib/rdf/rdfxml/reader/rexml.rb
|
234
200
|
- lib/rdf/rdfxml/version.rb
|
235
|
-
- lib/rdf/rdfxml/vocab.rb
|
236
201
|
- lib/rdf/rdfxml/writer.rb
|
237
202
|
- lib/rdf/rdfxml/writer/haml_templates.rb
|
238
|
-
homepage:
|
203
|
+
homepage: https://github.com/ruby-rdf/rdf-rdfxml
|
239
204
|
licenses:
|
240
205
|
- Unlicense
|
241
206
|
metadata: {}
|
242
|
-
post_install_message:
|
207
|
+
post_install_message:
|
243
208
|
rdoc_options: []
|
244
209
|
require_paths:
|
245
210
|
- lib
|
@@ -247,17 +212,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
247
212
|
requirements:
|
248
213
|
- - ">="
|
249
214
|
- !ruby/object:Gem::Version
|
250
|
-
version: '2.
|
215
|
+
version: '2.4'
|
251
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
217
|
requirements:
|
253
218
|
- - ">="
|
254
219
|
- !ruby/object:Gem::Version
|
255
220
|
version: '0'
|
256
221
|
requirements: []
|
257
|
-
|
258
|
-
|
259
|
-
signing_key:
|
222
|
+
rubygems_version: 3.2.3
|
223
|
+
signing_key:
|
260
224
|
specification_version: 4
|
261
225
|
summary: RDF/XML reader/writer for RDF.rb.
|
262
226
|
test_files: []
|
263
|
-
has_rdoc: false
|
data/lib/rdf/rdfxml/vocab.rb
DELETED