rdf-trig 3.1.2 → 3.2.0

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 +14 -3
  3. data/VERSION +1 -1
  4. data/lib/rdf/trig/reader.rb +1 -1
  5. metadata +16 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f72dbe26e686e91519169554116b88ab44c8203c947a2d8e55fac50e611951ab
4
- data.tar.gz: ff314a298fe3c0f4a29d48d200288865178fc6766dc6fb73dfc7601807bc883d
3
+ metadata.gz: 8e185cf7243d6450f4e9ebc54137797b79bfd1aeddfb88361e8115dfe057f6d4
4
+ data.tar.gz: dbfd7c7bbbfd975294aa99bb347ae036ba23411a95667d1970eeaa3cd673a9a4
5
5
  SHA512:
6
- metadata.gz: f85f92259ef67c8af2f4d5f8fc808ede0153642d13407b343f41ebf18c6a5ba6606ca3c631453e30d5bd46c180c835835febf3956156cc125095f5a722a15ba8
7
- data.tar.gz: 735aeeeae7e05bfd889201669c6148df7b6ff65d273146712214e4bea0231e47b6a0330fe590bf80885ebe3f30e7d7cf4aa37bcee9f910da9c3a2aac8bdf94ef
6
+ metadata.gz: 060503d61035a8c95ea8d893dac559a6b964e89a299ed53aa4d07ba834c6dd38e7524b581555234c5a7fd13007f9ef4f54ab7f5df49790441a58dd5417bfbd29
7
+ data.tar.gz: 30e4b8c72c0518251d737ca85b7b8dcc57ff3259c5b9ef8bde5002e06943c38322e364e11c9b656ff189922456997f24601da62b49def2fe1a17f6daab882830
data/README.md CHANGED
@@ -38,6 +38,16 @@ Write a repository to a file:
38
38
  Note that reading and writing of graphs is also possible, but as graphs have only a single context,
39
39
  it is not particularly interesting for TriG.
40
40
 
41
+ ## RDF-star
42
+
43
+ Both reader and writer include provisional support for [RDF-star][].
44
+
45
+ Internally, an `RDF::Statement` is treated as another resource, along with `RDF::URI` and `RDF::Node`, which allows an `RDF::Statement` to have a `#subject` or `#object` which is also an `RDF::Statement`.
46
+
47
+ Note that this requires the `rdfstar` option to be se.
48
+
49
+ **Note: This feature is subject to change or elimination as the standards process progresses.**
50
+
41
51
  ## Documentation
42
52
  Full documentation available on [Rubydoc.info][TriG doc].
43
53
 
@@ -58,9 +68,9 @@ There is a new `:stream` option to {RDF::TriG::Writer} which is more efficient f
58
68
 
59
69
  ## Dependencies
60
70
 
61
- * [Ruby](https://ruby-lang.org/) (>= 2.2.2)
62
- * [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.0)
63
- * [rdf-turtle](https://rubygems.org/gems/rdf-turtle) (~> 3.0)
71
+ * [Ruby](https://ruby-lang.org/) (>= 2.6)
72
+ * [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.2)
73
+ * [rdf-turtle](https://rubygems.org/gems/rdf-turtle) (~> 3.2)
64
74
 
65
75
  ## Installation
66
76
 
@@ -103,6 +113,7 @@ A copy of the [TriG EBNF][] and derived parser files are included in the reposit
103
113
  [PDD]: https://unlicense.org/#unlicensing-contributions
104
114
  [RDF.rb]: https://rubydoc.info/github/ruby-rdf/rdf/master/frames
105
115
  [Backports]: https://rubygems.org/gems/backports
116
+ [RDF-star]: https://w3c.github.io/rdf-star/rdf-star-cg-spec.html
106
117
  [TriG]: https://www.w3.org/TR/trig/
107
118
  [TriG doc]: https://rubydoc.info/github/ruby-rdf/rdf-trig/master/file/README.markdown
108
119
  [TriG EBNF]: https://dvcs.w3.org/hg/rdf/raw-file/default/trig/trig.bnf
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.2.0
@@ -193,7 +193,7 @@ module RDF::TriG
193
193
  end
194
194
  when '<<'
195
195
  prod(:triples2) do
196
- subject = read_embTriple || error("Failed to parse embedded triple", production: :triples2, token: @lexer.first)
196
+ subject = read_quotedTriple || error("Failed to parse embedded triple", production: :triples2, token: @lexer.first)
197
197
  token = @lexer.first
198
198
  case token && (token.type || token.value)
199
199
  when 'a', :IRIREF, :PNAME_LN, :PNAME_NS then read_predicateObjectList(subject)
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.2
4
+ version: 3.2.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: 2021-02-02 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,56 +16,56 @@ 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.1'
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.1'
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdf-turtle
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.1'
47
+ version: '3.2'
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: '3.1'
54
+ version: '3.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: json-ld
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.1'
61
+ version: '3.2'
62
62
  type: :development
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: '3.1'
68
+ version: '3.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '3.1'
103
+ version: '3.2'
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.1'
110
+ version: '3.2'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: yard
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: '3.1'
131
+ version: '3.2'
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: '3.1'
138
+ version: '3.2'
139
139
  description: RDF::TriG is an TriG reader/writer for the RDF.rb library suite.
140
140
  email: public-rdf-ruby@w3.org
141
141
  executables: []
@@ -165,14 +165,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - ">="
167
167
  - !ruby/object:Gem::Version
168
- version: '2.4'
168
+ version: '2.6'
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  requirements: []
175
- rubygems_version: 3.2.3
175
+ rubygems_version: 3.3.3
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: TriG reader/writer for Ruby.