rdf-trig 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -4
  3. data/VERSION +1 -1
  4. data/lib/rdf/trig/reader.rb +27 -2
  5. metadata +12 -26
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1d8dbbc7d4a803a805ddb7dfe29359490d16ceef967164a28272cc9644f27aa
4
- data.tar.gz: 839cf54eed3bd0f495719d153d01279e715166eeb5a3c4801426928493cc54f8
3
+ metadata.gz: f72dbe26e686e91519169554116b88ab44c8203c947a2d8e55fac50e611951ab
4
+ data.tar.gz: ff314a298fe3c0f4a29d48d200288865178fc6766dc6fb73dfc7601807bc883d
5
5
  SHA512:
6
- metadata.gz: 376e7606927e27df2fcf047397641128979a6929cad69a1e164f70fa95ba3b98a4e24bc436bb8a7168aac10eeb5d1ef45abaff6df332cf0d93c18818a7f6c198
7
- data.tar.gz: 1e4aa2e7619f1d78aa5e7584d1dffdcea6492a32a03784319db88fecd4534ef1fb0578d82426c84c34c44511efa5573d2cbf896aca3801773e2d7668ebc5a135
6
+ metadata.gz: f85f92259ef67c8af2f4d5f8fc808ede0153642d13407b343f41ebf18c6a5ba6606ca3c631453e30d5bd46c180c835835febf3956156cc125095f5a722a15ba8
7
+ data.tar.gz: 735aeeeae7e05bfd889201669c6148df7b6ff65d273146712214e4bea0231e47b6a0330fe590bf80885ebe3f30e7d7cf4aa37bcee9f910da9c3a2aac8bdf94ef
data/README.md CHANGED
@@ -3,8 +3,9 @@
3
3
  [TriG][] reader/writer for [RDF.rb][RDF.rb] .
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/rdf-trig.png)](https://badge.fury.io/rb/rdf-trig)
6
- [![Build Status](https://travis-ci.org/ruby-rdf/rdf-trig.png?branch=master)](https://travis-ci.org/ruby-rdf/rdf-trig)
7
- [![Coverage Status](https://coveralls.io/repos/ruby-rdf/rdf-trig/badge.svg)](https://coveralls.io/r/ruby-rdf/rdf-trig)
6
+ [![Build Status](https://github.com/ruby-rdf/rdf-trig/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/rdf-trig/actions?query=workflow%3ACI)
7
+ [![Coverage Status](https://coveralls.io/repos/ruby-rdf/rdf-trig/badge.svg?branch=develop)](https://coveralls.io/github/ruby-rdf/rdf-trig?branch=develop)
8
+ [![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
8
9
 
9
10
  ## Description
10
11
  This is a [Ruby][] implementation of a [TriG][] reader and writer for [RDF.rb][].
@@ -85,7 +86,9 @@ To install the latest official release of the `RDF::TriG` gem, do:
85
86
  list in the the `README`. Alphabetical order applies.
86
87
  * Do note that in order for us to merge any non-trivial changes (as a rule
87
88
  of thumb, additions larger than about 15 lines of code), we need an
88
- 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.
89
92
 
90
93
  ## License
91
94
  This is free and unencumbered public domain software. For more information,
@@ -97,7 +100,7 @@ A copy of the [TriG EBNF][] and derived parser files are included in the reposit
97
100
  [RDF]: https://www.w3.org/RDF/
98
101
  [YARD]: https://yardoc.org/
99
102
  [YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
100
- [PDD]: https://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
103
+ [PDD]: https://unlicense.org/#unlicensing-contributions
101
104
  [RDF.rb]: https://rubydoc.info/github/ruby-rdf/rdf/master/frames
102
105
  [Backports]: https://rubygems.org/gems/backports
103
106
  [TriG]: https://www.w3.org/TR/trig/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.1
1
+ 3.1.2
@@ -23,7 +23,15 @@ module RDF::TriG
23
23
  terminal(:STRING_LITERAL_SINGLE_QUOTE, STRING_LITERAL_SINGLE_QUOTE, unescape: true)
24
24
 
25
25
  # String terminals
26
- terminal(nil, %r([\{\}\(\),.;\[\]a]|\^\^|true|false))
26
+ terminal(nil, %r(
27
+ [\(\),.;\[\]Aa]
28
+ | \^\^
29
+ | \{\|
30
+ | \|\}
31
+ | [\{\}]
32
+ | true|false
33
+ | <<|>>
34
+ )x)
27
35
 
28
36
  terminal(:GRAPH, /graph/i)
29
37
  terminal(:PREFIX, PREFIX)
@@ -112,7 +120,7 @@ module RDF::TriG
112
120
  read_triplesOrGraph || error("Expected triplesOrGraph", production: :block, token: @lexer.first)
113
121
  when '{'
114
122
  read_wrappedGraph || error("Expected wrappedGraph", production: :block, token: @lexer.first)
115
- when '(', '['
123
+ when '(', '[', '<<'
116
124
  read_triples2 || error("Expected collection or blankNodePropertyList", production: :block, token: @lexer.first)
117
125
  when nil
118
126
  # End of input
@@ -183,6 +191,23 @@ module RDF::TriG
183
191
  end
184
192
  true
185
193
  end
194
+ when '<<'
195
+ prod(:triples2) do
196
+ subject = read_embTriple || error("Failed to parse embedded triple", production: :triples2, token: @lexer.first)
197
+ token = @lexer.first
198
+ case token && (token.type || token.value)
199
+ when 'a', :IRIREF, :PNAME_LN, :PNAME_NS then read_predicateObjectList(subject)
200
+ else error("Expected predicateObjectList after collection subject", production: :triples2, token: token)
201
+ end
202
+ if !@recovering || @lexer.first === '.'
203
+ # If recovering, we will have eaten the closing '.'
204
+ token = @lexer.shift
205
+ unless token && token.value == '.'
206
+ error("Expected '.' following triple", production: :triples2, token: token)
207
+ end
208
+ end
209
+ true
210
+ end
186
211
  end
187
212
  end
188
213
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-trig
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
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-07-10 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '2.1'
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.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdf-turtle
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.9'
75
+ version: '3.10'
76
76
  type: :development
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.9'
82
+ version: '3.10'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-its
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.9.20
117
+ version: '0.9'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.9.20
124
+ version: '0.9'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rdf-spec
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -136,20 +136,6 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '3.1'
139
- - !ruby/object:Gem::Dependency
140
- name: rake
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '13.0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '13.0'
153
139
  description: RDF::TriG is an TriG reader/writer for the RDF.rb library suite.
154
140
  email: public-rdf-ruby@w3.org
155
141
  executables: []
@@ -171,7 +157,7 @@ homepage: https://github.com/ruby-rdf/rdf-trig
171
157
  licenses:
172
158
  - Unlicense
173
159
  metadata: {}
174
- post_install_message:
160
+ post_install_message:
175
161
  rdoc_options: []
176
162
  require_paths:
177
163
  - lib
@@ -186,8 +172,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
172
  - !ruby/object:Gem::Version
187
173
  version: '0'
188
174
  requirements: []
189
- rubygems_version: 3.1.3
190
- signing_key:
175
+ rubygems_version: 3.2.3
176
+ signing_key:
191
177
  specification_version: 4
192
178
  summary: TriG reader/writer for Ruby.
193
179
  test_files: []