yarspg 0.0.1 → 0.1.0

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
  SHA256:
3
- metadata.gz: b2b77d4c266d555c6bd1174dee2f8b8d789126ab66cde6a5f6abcdb92e6ae676
4
- data.tar.gz: 5b1db8e4c1b65605d5aaeb285281dd1b070d90934c7dce9da0a8d2e067f57c80
3
+ metadata.gz: fc17ffde4c35bdd74a41d99e6f7f23ce9a579e2d9a7cdb130a544eaac6a50e67
4
+ data.tar.gz: 9cc6c20311fcb86f51fd31fb84030d6c2a789c99001cd1beaed333e0857fa6bc
5
5
  SHA512:
6
- metadata.gz: b561d143b1d75f9d8eed956546d77bd50a2dcaa2f37503fa0522ebfc3919c25d5d5c268493f31e3117157f14726e9d9b8f5fb601c6bd8d6c30893498bd0f2807
7
- data.tar.gz: 775e173535e0bb258ef233db97f63cf4aafa8988869bfb1264136e93314256532b2f306dd980b4859f3b9244f111a3b6e606ea920cda2ec06632fdf6a0302658
6
+ metadata.gz: 3083b6bb001c0e967503293eed8ae6a1b42843ad30cf0fd85f98a84626cd0a6e93f3c852a2be7d9c15d3901c984cd3beb5854457245889a79b8d8bab421d1ff0
7
+ data.tar.gz: 0431330ffd29e2a717c0dade42dea84c61491ddd94b01f84f41844e07e88f479135244bc844c894c736e2e7fe8c053eae414cfde671b7eb845ee49c7959659d9
data/README.md CHANGED
@@ -105,14 +105,14 @@ alternatively
105
105
  ### Principal Classes
106
106
  * {YARSPG}
107
107
  * {YARSPG::Format}
108
- * {YARSPG::Metadata}
108
+ * {YARSPG::Meta}
109
109
  * {YARSPG::Reader}
110
110
  * {YARSPG::Terminals}
111
111
 
112
112
  ## Dependencies
113
- * [Ruby](https://ruby-lang.org/) (>= 2.4)
114
- * [RDF.rb][] (~> 3.1)
115
- * [EBNF][] (~> 2.0)
113
+ * [Ruby](https://ruby-lang.org/) (>= 2.6)
114
+ * [RDF.rb][] (~> 3.2)
115
+ * [EBNF][] (~> 2.2)
116
116
 
117
117
  ## Installation
118
118
  The recommended installation method is via [RubyGems](https://rubygems.org/).
@@ -133,9 +133,13 @@ To install the latest official release of the `RDF::Tabular` gem, do:
133
133
  [tutorial][YARD-GS] or just look at the existing code for examples.
134
134
  * Don't touch the `rdf-tabular.gemspec`, `VERSION` or `AUTHORS` files. If you need to change them, do so on your private branch only.
135
135
  * Do feel free to add yourself to the `CREDITS` file and the corresponding list in the the `README`. Alphabetical order applies.
136
- * Do note that in order for us to merge any non-trivial changes (as a rule of thumb, additions larger than about 15 lines of code), we need an explicit [public domain dedication][PDD] on record from you.
136
+ * Do note that in order for us to merge any non-trivial changes (as a rule
137
+ of thumb, additions larger than about 15 lines of code), we need an
138
+ explicit [public domain dedication][PDD] on record from you,
139
+ which you will be asked to agree to on the first commit to a repo within the organization.
140
+ Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.
137
141
 
138
- ##License
142
+ ## License
139
143
 
140
144
  This is free and unencumbered public domain software. For more information,
141
145
  see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
@@ -144,7 +148,7 @@ see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
144
148
  [RDF]: https://www.w3.org/RDF/
145
149
  [YARD]: https://yardoc.org/
146
150
  [YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
147
- [PDD]: https://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
151
+ [PDD]: https://unlicense.org/#unlicensing-contributions
148
152
  [EBNF]: https://rubygems.org/gems/ebnf
149
153
  [RDF.rb]: https://rubygems.org/gems/rdf
150
154
  [RDF*]: https://lists.w3.org/Archives/Public/public-rdf-star/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
data/lib/yarspg/meta.rb CHANGED
@@ -88,7 +88,7 @@ module YARSPG::Meta
88
88
  EBNF::Rule.new(:_props_list_schema_2, "31.2", [:seq, ",", :prop_schema]).extend(EBNF::PEG::Rule),
89
89
  EBNF::Rule.new(:prop_schema, "32", [:seq, :key, ":", :value_schema]).extend(EBNF::PEG::Rule),
90
90
  EBNF::Rule.new(:value_schema, "33", [:alt, :primitive_value_schema, :complex_value_schema]).extend(EBNF::PEG::Rule),
91
- EBNF::Rule.new(:primitive_value_schema, "34", [:alt, "Decimal", "SmallInt", "Integer", "BigInt", "Float", "Real", "Double", "Bool", "Null", "String", "Date", "Timestamp", "Time"]).extend(EBNF::PEG::Rule),
91
+ EBNF::Rule.new(:primitive_value_schema, "34", [:alt, "Decimal", "SmallInt", "Integer", "BigInt", "Float", "Real", "Double", "Bool", "Null", "String", "Date", "DateTime", "Time"]).extend(EBNF::PEG::Rule),
92
92
  EBNF::Rule.new(:complex_value_schema, "35", [:alt, :set_schema, :list_schema, :struct_schema]).extend(EBNF::PEG::Rule),
93
93
  EBNF::Rule.new(:set_schema, "36", [:seq, "Set", "(", :_set_schema_1, ")"]).extend(EBNF::PEG::Rule),
94
94
  EBNF::Rule.new(:_set_schema_1, "36.1", [:alt, :primitive_value_schema, :set_schema]).extend(EBNF::PEG::Rule),
@@ -137,7 +137,7 @@ module YARSPG::Meta
137
137
  EBNF::Rule.new(:PN_CHARS, "50", [:alt, :PN_CHARS_U, :_PN_CHARS_1], kind: :terminal).extend(EBNF::PEG::Rule),
138
138
  EBNF::Rule.new(:_PN_CHARS_1, "50.1", [:range, "-0-9#xB7#x0300-#x036F#x203F-#x2040"], kind: :terminal).extend(EBNF::PEG::Rule),
139
139
  EBNF::Rule.new(:PN_CHARS_U, "51", [:alt, :PN_CHARS_BASE, "_"], kind: :terminal).extend(EBNF::PEG::Rule),
140
- EBNF::Rule.new(:DATETYPE, "52", [:alt, :TIMESTAMP, :DATE, :TIME], kind: :terminal).extend(EBNF::PEG::Rule),
140
+ EBNF::Rule.new(:DATETYPE, "52", [:alt, :DATETIME, :DATE, :TIME], kind: :terminal).extend(EBNF::PEG::Rule),
141
141
  EBNF::Rule.new(:DATE, "53", [:seq, :_DATE_1, :_DATE_2, :_DATE_3, :_DATE_4, "-", :_DATE_5, :_DATE_6, "-", :_DATE_7, :_DATE_8], kind: :terminal).extend(EBNF::PEG::Rule),
142
142
  EBNF::Rule.new(:_DATE_1, "53.1", [:range, "0-9"], kind: :terminal).extend(EBNF::PEG::Rule),
143
143
  EBNF::Rule.new(:_DATE_2, "53.2", [:range, "0-9"], kind: :terminal).extend(EBNF::PEG::Rule),
@@ -161,7 +161,7 @@ module YARSPG::Meta
161
161
  EBNF::Rule.new(:_TIMEZONE_3, "55.3", [:range, "0-9"], kind: :terminal).extend(EBNF::PEG::Rule),
162
162
  EBNF::Rule.new(:_TIMEZONE_4, "55.4", [:range, "0-9"], kind: :terminal).extend(EBNF::PEG::Rule),
163
163
  EBNF::Rule.new(:_TIMEZONE_5, "55.5", [:range, "0-9"], kind: :terminal).extend(EBNF::PEG::Rule),
164
- EBNF::Rule.new(:TIMESTAMP, "56", [:seq, :DATE, "T", :TIME], kind: :terminal).extend(EBNF::PEG::Rule),
164
+ EBNF::Rule.new(:DATETIME, "56", [:seq, :DATE, "T", :TIME], kind: :terminal).extend(EBNF::PEG::Rule),
165
165
  EBNF::Rule.new(:SIGN, "57", [:alt, "+", "-"], kind: :terminal).extend(EBNF::PEG::Rule),
166
166
  EBNF::Rule.new(:UCHAR, "58", [:seq, :_UCHAR_1, :HEX, :HEX, :HEX, :HEX], kind: :terminal).extend(EBNF::PEG::Rule),
167
167
  EBNF::Rule.new(:_UCHAR_1, "58.1", [:alt, "u", :_UCHAR_2], kind: :terminal).extend(EBNF::PEG::Rule),
data/lib/yarspg/reader.rb CHANGED
@@ -51,7 +51,7 @@ module YARSPG
51
51
  terminal(:IRI, IRI) { |value| base_uri.join(value[1..-2])}
52
52
  terminal(:DATE, DATE) {|value| RDF::Literal::Date.new(value)}
53
53
  terminal(:TIME, TIME) {|value| RDF::Literal::Time.new(value)}
54
- terminal(:TIMESTAMP, TIMESTAMP) {|value| RDF::Literal::DateTime.new(value)}
54
+ terminal(:DATETIME, DATETIME) {|value| RDF::Literal::DateTime.new(value)}
55
55
 
56
56
  # `[3] prefix_directive ::= ('::' | pname) IRI`
57
57
  production(:prefix_directive) do |value, data, callback|
@@ -24,7 +24,7 @@ module YARSPG::Terminals
24
24
  DATE = %r(\d\d\d\d-\d\d-\d\d)u.freeze
25
25
  TIMEZONE = %r((?:#{SIGN})?\d\d:\d\d)u.freeze
26
26
  TIME = %r(\d\d:\d\d:\d\d(?:#{TIMEZONE})?)u.freeze
27
- TIMESTAMP = %r((?:#{DATE})T(?:#{TIME}))u.freeze
27
+ DATETIME = %r((?:#{DATE})T(?:#{TIME}))u.freeze
28
28
  HEX = %r(\#x[0-9a-fA-F]+)u.freeze
29
29
  COMMENT = /(?:#[^\n\r\r]*)/u.freeze
30
30
  WS = /(?:\s|(?:#{COMMENT}))+/m.freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yarspg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-20 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -16,98 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.1'
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ebnf
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '2.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json-canonicalization
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.2'
47
+ version: '0.3'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.2'
54
+ version: '0.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sxp
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.1'
61
+ version: '1.2'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.1'
68
+ version: '1.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rdf-xsd
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.1'
75
+ version: '3.2'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.1'
82
+ version: '3.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rdf-spec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.1'
89
+ version: '3.2'
90
90
  type: :development
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: '3.1'
96
+ version: '3.2'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '3.9'
103
+ version: '3.10'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '3.9'
110
+ version: '3.10'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec-its
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.9.20
131
+ version: '0.9'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.9.20
138
+ version: '0.9'
139
139
  description: YARSPG is an YARS-PG reader/writer for the RDF.rb library suite.
140
140
  email: gregg@greggkellogg.net
141
141
  executables: []
@@ -156,7 +156,7 @@ homepage: https://github.com/gkellogg/yarspg
156
156
  licenses:
157
157
  - Unlicense
158
158
  metadata: {}
159
- post_install_message:
159
+ post_install_message:
160
160
  rdoc_options: []
161
161
  require_paths:
162
162
  - lib
@@ -164,15 +164,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
- version: '2.4'
167
+ version: '2.6'
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - ">="
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
- rubygems_version: 3.1.3
175
- signing_key:
174
+ rubygems_version: 3.3.3
175
+ signing_key:
176
176
  specification_version: 4
177
177
  summary: YARS-PG reader/writer for RDF.rb.
178
178
  test_files: []