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 +4 -4
- data/README.md +11 -7
- data/VERSION +1 -1
- data/lib/yarspg/meta.rb +3 -3
- data/lib/yarspg/reader.rb +1 -1
- data/lib/yarspg/terminals.rb +1 -1
- metadata +23 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc17ffde4c35bdd74a41d99e6f7f23ce9a579e2d9a7cdb130a544eaac6a50e67
|
4
|
+
data.tar.gz: 9cc6c20311fcb86f51fd31fb84030d6c2a789c99001cd1beaed333e0857fa6bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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::
|
108
|
+
* {YARSPG::Meta}
|
109
109
|
* {YARSPG::Reader}
|
110
110
|
* {YARSPG::Terminals}
|
111
111
|
|
112
112
|
## Dependencies
|
113
|
-
* [Ruby](https://ruby-lang.org/) (>= 2.
|
114
|
-
* [RDF.rb][] (~> 3.
|
115
|
-
* [EBNF][] (~> 2.
|
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
|
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]:
|
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
|
+
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", "
|
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, :
|
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(:
|
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(:
|
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|
|
data/lib/yarspg/terminals.rb
CHANGED
@@ -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
|
-
|
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
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
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
|
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.
|
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.
|
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: []
|