rdf-normalize 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +3 -3
- data/VERSION +1 -1
- data/lib/rdf/normalize.rb +2 -2
- data/lib/rdf/normalize/carroll2001.rb +1 -1
- data/lib/rdf/normalize/urdna2015.rb +1 -1
- data/lib/rdf/normalize/writer.rb +2 -2
- metadata +22 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4228bee01dba3de0d611ae8431824ebf1f6f09ae6039a5570ea3e86f4cb8c467
|
4
|
+
data.tar.gz: c932b23a352bf3771a5e426c0976050b128f41473a8ea6cea675c1a7bc26ef5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d5995bdc3c593385a74ba69bf367c01a2d5b44fd7d0b5aab9f8495ebc14d16c3b709ceff21c2294c951613726190c49eab41098feaac0c2ba350afd25552fc4
|
7
|
+
data.tar.gz: e0e70f5aa3bdfb49bc0679cae8e362fa3191d9452a2ca3aaa004b995622837865dca6d61aaa264407c8fc0d4197fadfbfee6dd91a19cf9e46f399b57e587634c
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ Algorithms implemented:
|
|
20
20
|
Install with `gem install rdf-normalize`
|
21
21
|
|
22
22
|
* 100% free and unencumbered [public domain](http://unlicense.org/) software.
|
23
|
-
* Compatible with Ruby >= 2.
|
23
|
+
* Compatible with Ruby >= 2.4.
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
@@ -38,8 +38,8 @@ Full documentation available on [Rubydoc.info][Normalize doc]
|
|
38
38
|
|
39
39
|
## Dependencies
|
40
40
|
|
41
|
-
* [Ruby](http://ruby-lang.org/) (>= 2.
|
42
|
-
* [RDF.rb](http://rubygems.org/gems/rdf) (~>
|
41
|
+
* [Ruby](http://ruby-lang.org/) (>= 2.4)
|
42
|
+
* [RDF.rb](http://rubygems.org/gems/rdf) (~> 3.1)
|
43
43
|
|
44
44
|
## Installation
|
45
45
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/rdf/normalize.rb
CHANGED
@@ -53,11 +53,11 @@ module RDF
|
|
53
53
|
# One of `:carroll2001`, `:urgna2012`, or `:urdna2015`
|
54
54
|
# @return [RDF::Normalize::Base]
|
55
55
|
# @raise [ArgumentError] selected algorithm not defined
|
56
|
-
def new(enumerable, options
|
56
|
+
def new(enumerable, **options)
|
57
57
|
algorithm = options.fetch(:algorithm, :urdna2015)
|
58
58
|
raise ArgumentError, "No algoritm defined for #{algorithm.to_sym}" unless ALGORITHMS.has_key?(algorithm)
|
59
59
|
algorithm_class = const_get(ALGORITHMS[algorithm])
|
60
|
-
algorithm_class.new(enumerable, options)
|
60
|
+
algorithm_class.new(enumerable, **options)
|
61
61
|
end
|
62
62
|
module_function :new
|
63
63
|
|
data/lib/rdf/normalize/writer.rb
CHANGED
@@ -23,7 +23,7 @@ module RDF::Normalize
|
|
23
23
|
# @yieldreturn [void]
|
24
24
|
# @yield [writer]
|
25
25
|
# @yieldparam [RDF::Writer] writer
|
26
|
-
def initialize(output = $stdout, options
|
26
|
+
def initialize(output = $stdout, **options, &block)
|
27
27
|
super do
|
28
28
|
@repo = RDF::Repository.new
|
29
29
|
if block_given?
|
@@ -53,7 +53,7 @@ module RDF::Normalize
|
|
53
53
|
#
|
54
54
|
# @return [void]
|
55
55
|
def write_epilogue
|
56
|
-
statements = RDF::Normalize.new(@repo,
|
56
|
+
statements = RDF::Normalize.new(@repo, **@options).
|
57
57
|
statements.
|
58
58
|
reject(&:variable?).
|
59
59
|
map {|s| format_statement(s)}.
|
metadata
CHANGED
@@ -1,55 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-normalize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '2.2'
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
19
|
+
version: '3.1'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '2.2'
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
26
|
+
version: '3.1'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: rdf-spec
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - "
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.2'
|
40
|
-
- - "<"
|
31
|
+
- - "~>"
|
41
32
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
33
|
+
version: '3.1'
|
43
34
|
type: :development
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
46
37
|
requirements:
|
47
|
-
- - "
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '2.2'
|
50
|
-
- - "<"
|
38
|
+
- - "~>"
|
51
39
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
40
|
+
version: '3.1'
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: open-uri-cached
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,62 +64,56 @@ dependencies:
|
|
76
64
|
requirements:
|
77
65
|
- - "~>"
|
78
66
|
- !ruby/object:Gem::Version
|
79
|
-
version: '3.
|
67
|
+
version: '3.9'
|
80
68
|
type: :development
|
81
69
|
prerelease: false
|
82
70
|
version_requirements: !ruby/object:Gem::Requirement
|
83
71
|
requirements:
|
84
72
|
- - "~>"
|
85
73
|
- !ruby/object:Gem::Version
|
86
|
-
version: '3.
|
74
|
+
version: '3.9'
|
87
75
|
- !ruby/object:Gem::Dependency
|
88
76
|
name: webmock
|
89
77
|
requirement: !ruby/object:Gem::Requirement
|
90
78
|
requirements:
|
91
79
|
- - "~>"
|
92
80
|
- !ruby/object:Gem::Version
|
93
|
-
version: '3.
|
81
|
+
version: '3.7'
|
94
82
|
type: :development
|
95
83
|
prerelease: false
|
96
84
|
version_requirements: !ruby/object:Gem::Requirement
|
97
85
|
requirements:
|
98
86
|
- - "~>"
|
99
87
|
- !ruby/object:Gem::Version
|
100
|
-
version: '3.
|
88
|
+
version: '3.7'
|
101
89
|
- !ruby/object:Gem::Dependency
|
102
90
|
name: json-ld
|
103
91
|
requirement: !ruby/object:Gem::Requirement
|
104
92
|
requirements:
|
105
|
-
- - "
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
version: '2.1'
|
108
|
-
- - "<"
|
93
|
+
- - "~>"
|
109
94
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
95
|
+
version: '3.1'
|
111
96
|
type: :development
|
112
97
|
prerelease: false
|
113
98
|
version_requirements: !ruby/object:Gem::Requirement
|
114
99
|
requirements:
|
115
|
-
- - "
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '2.1'
|
118
|
-
- - "<"
|
100
|
+
- - "~>"
|
119
101
|
- !ruby/object:Gem::Version
|
120
|
-
version: '
|
102
|
+
version: '3.1'
|
121
103
|
- !ruby/object:Gem::Dependency
|
122
104
|
name: yard
|
123
105
|
requirement: !ruby/object:Gem::Requirement
|
124
106
|
requirements:
|
125
107
|
- - "~>"
|
126
108
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
109
|
+
version: 0.9.20
|
128
110
|
type: :development
|
129
111
|
prerelease: false
|
130
112
|
version_requirements: !ruby/object:Gem::Requirement
|
131
113
|
requirements:
|
132
114
|
- - "~>"
|
133
115
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
116
|
+
version: 0.9.20
|
135
117
|
description: RDF::Normalize is a Graph normalizer for the RDF.rb library suite.
|
136
118
|
email: public-rdf-ruby@w3.org
|
137
119
|
executables: []
|
@@ -162,15 +144,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
144
|
requirements:
|
163
145
|
- - ">="
|
164
146
|
- !ruby/object:Gem::Version
|
165
|
-
version: 2.
|
147
|
+
version: '2.4'
|
166
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
149
|
requirements:
|
168
150
|
- - ">="
|
169
151
|
- !ruby/object:Gem::Version
|
170
152
|
version: '0'
|
171
153
|
requirements: []
|
172
|
-
|
173
|
-
rubygems_version: 2.6.14
|
154
|
+
rubygems_version: 3.0.6
|
174
155
|
signing_key:
|
175
156
|
specification_version: 4
|
176
157
|
summary: RDF Graph normalizer for Ruby.
|