rdf-n3 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/VERSION +1 -1
- data/lib/rdf/n3/algebra/str/concatenation.rb +1 -1
- data/lib/rdf/n3/reader.rb +1 -1
- data/lib/rdf/n3/refinements.rb +27 -1
- data/lib/rdf/n3/writer.rb +1 -1
- data/lib/rdf/n3.rb +1 -1
- metadata +10 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5b682c6d472f149d02a4f9d73c78478fa4cdb91d5b7594f1fb8ef7ff9fdc15f
|
4
|
+
data.tar.gz: ce493e91c72e8f952b363daa321c9672c2823888a676b495650d786736774000
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90ed9b5790afd03fae25fb075c4d3e22f19b88232783b1799a42a54ec8308f74e7dc11ff9d59254c17bb4a4c8804aa7aa1cde4c6ddb53b4d6b4b627c5e30a487
|
7
|
+
data.tar.gz: 369ad2af5732ab29bbcb11c80589c0e3f8c014a8f157381b40312ba5394238e04d569e92ad7b9cb669f221058b8373d39f6965c15f8a4844e44661a1b33f9db2
|
data/README.md
CHANGED
@@ -200,7 +200,7 @@ Blank nodes associated with rdf:List statements used as part of a built-in are m
|
|
200
200
|
* [SXP][SXP gem] (~> 1.2)
|
201
201
|
|
202
202
|
## Documentation
|
203
|
-
Full documentation available on [RubyDoc.info](https://
|
203
|
+
Full documentation available on [RubyDoc.info](https://ruby-rdf.github.io/rdf-n3)
|
204
204
|
|
205
205
|
### Principle Classes
|
206
206
|
* {RDF::N3}
|
@@ -220,7 +220,7 @@ Full documentation available on [RubyDoc.info](https://rubydoc.info/github/ruby-
|
|
220
220
|
## Resources
|
221
221
|
* [RDF.rb][RDF.rb]
|
222
222
|
* [Distiller](http://rdf.greggkellogg.net/distiller)
|
223
|
-
* [Documentation](https://
|
223
|
+
* [Documentation](https://ruby-rdf.github.io/rdf-n3/)
|
224
224
|
* [History](file:file.History.html)
|
225
225
|
* [Notation-3][N3]
|
226
226
|
* [Team Submission][]
|
@@ -262,7 +262,7 @@ see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
|
|
262
262
|
* <https://github.com/ruby-rdf/rdf-n3>
|
263
263
|
* <https://lists.w3.org/Archives/Public/public-rdf-ruby/>
|
264
264
|
|
265
|
-
[RDF::Turtle]: https://ruby-rdf.github.
|
265
|
+
[RDF::Turtle]: https://ruby-rdf.github.io/rdf-turtle/
|
266
266
|
[Design Issues]: https://www.w3.org/DesignIssues/Notation3.html "Notation-3 Design Issues"
|
267
267
|
[Team Submission]: https://www.w3.org/TeamSubmission/n3/
|
268
268
|
[Turtle]: https://www.w3.org/TR/turtle/
|
@@ -274,7 +274,7 @@ see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
|
|
274
274
|
[W3C N3 Community Group]: https://www.w3.org/community/n3-dev/
|
275
275
|
[N3]: https://w3c.github.io/N3/spec/
|
276
276
|
[PEG]: https://en.wikipedia.org/wiki/Parsing_expression_grammar
|
277
|
-
[RDF.rb]: https://ruby-rdf.github.
|
278
|
-
[EBNF gem]: https://ruby-rdf.github.
|
279
|
-
[SPARQL gem]: https://ruby-rdf.github.
|
280
|
-
[SXP gem]: https://ruby-rdf.github.
|
277
|
+
[RDF.rb]: https://ruby-rdf.github.io/rdf
|
278
|
+
[EBNF gem]: https://ruby-rdf.github.io/ebnf
|
279
|
+
[SPARQL gem]: https://ruby-rdf.github.io/sparql
|
280
|
+
[SXP gem]: https://ruby-rdf.github.io/sxp
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.1
|
@@ -11,7 +11,7 @@ module RDF::N3::Algebra::Str
|
|
11
11
|
##
|
12
12
|
# The string:concatenation operator takes a list of terms cast to strings and either binds the result of concatenating them to the output variable, removes a solution that does equal the literal object.
|
13
13
|
#
|
14
|
-
# List entries are stringified using
|
14
|
+
# List entries are stringified using [SPARQL::Algebra::Expression.cast](https://ruby-rdf.github.io/sparql/SPARQL/Algebra/Expression#cast-class_method).
|
15
15
|
#
|
16
16
|
# @param [RDF::N3::List] list
|
17
17
|
# @return [RDF::Term]
|
data/lib/rdf/n3/reader.rb
CHANGED
@@ -46,7 +46,7 @@ module RDF::N3
|
|
46
46
|
|
47
47
|
##
|
48
48
|
# N3 Reader options
|
49
|
-
# @see
|
49
|
+
# @see https://ruby-rdf.github.io/rdf/RDF/Reader#options-class_method
|
50
50
|
def self.options
|
51
51
|
super + [
|
52
52
|
RDF::CLI::Option.new(
|
data/lib/rdf/n3/refinements.rb
CHANGED
@@ -173,6 +173,32 @@ module RDF::N3::Refinements
|
|
173
173
|
|
174
174
|
refine ::RDF::Graph do
|
175
175
|
# Allow a graph to be treated as a term in a statement.
|
176
|
-
|
176
|
+
|
177
|
+
##
|
178
|
+
# @overload term?
|
179
|
+
# Returns `true` if `self` is a {RDF::Term}.
|
180
|
+
#
|
181
|
+
# @return [Boolean]
|
182
|
+
# @overload term?(name)
|
183
|
+
# Returns `true` if `self` contains the given RDF subject term.
|
184
|
+
#
|
185
|
+
# @param [RDF::Resource] value
|
186
|
+
# @return [Boolean]
|
187
|
+
def term?(*args)
|
188
|
+
case args.length
|
189
|
+
when 0 then true
|
190
|
+
when 1 then false
|
191
|
+
else raise ArgumentError("wrong number of arguments (given #{args.length}, expected 0 or 1)")
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# Returns itself.
|
197
|
+
#
|
198
|
+
# @return [RDF::Value]
|
199
|
+
def to_term
|
200
|
+
statements.map(&:terms)
|
201
|
+
self
|
202
|
+
end
|
177
203
|
end
|
178
204
|
end
|
data/lib/rdf/n3/writer.rb
CHANGED
@@ -63,7 +63,7 @@ module RDF::N3
|
|
63
63
|
|
64
64
|
##
|
65
65
|
# N3 Writer options
|
66
|
-
# @see
|
66
|
+
# @see https://ruby-rdf.github.io/rdf/RDF/Writer#options-class_method
|
67
67
|
def self.options
|
68
68
|
super + [
|
69
69
|
RDF::CLI::Option.new(
|
data/lib/rdf/n3.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-n3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ebnf
|
@@ -284,10 +284,15 @@ files:
|
|
284
284
|
- lib/rdf/n3/version.rb
|
285
285
|
- lib/rdf/n3/vocab.rb
|
286
286
|
- lib/rdf/n3/writer.rb
|
287
|
-
homepage: https://ruby-rdf.github.
|
287
|
+
homepage: https://ruby-rdf.github.io/rdf-n3
|
288
288
|
licenses:
|
289
289
|
- Unlicense
|
290
|
-
metadata:
|
290
|
+
metadata:
|
291
|
+
documentation_uri: https://ruby-rdf.github.io/rdf-n3
|
292
|
+
bug_tracker_uri: https://github.com/ruby-rdf/rdf-n3/issues
|
293
|
+
homepage_uri: https://github.com/ruby-rdf/rdf-n3
|
294
|
+
mailing_list_uri: https://lists.w3.org/Archives/Public/public-rdf-ruby/
|
295
|
+
source_code_uri: https://github.com/ruby-rdf/rdf-n3
|
291
296
|
post_install_message:
|
292
297
|
rdoc_options: []
|
293
298
|
require_paths:
|
@@ -303,7 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
303
308
|
- !ruby/object:Gem::Version
|
304
309
|
version: '0'
|
305
310
|
requirements: []
|
306
|
-
rubygems_version: 3.
|
311
|
+
rubygems_version: 3.1.4
|
307
312
|
signing_key:
|
308
313
|
specification_version: 4
|
309
314
|
summary: Notation3 reader/writer and reasoner for RDF.rb.
|