rdf 3.0.11 → 3.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +88 -91
- data/UNLICENSE +1 -1
- data/VERSION +1 -1
- data/etc/doap.nt +39 -39
- data/lib/rdf/mixin/enumerable.rb +1 -1
- data/lib/rdf/mixin/transactable.rb +2 -2
- data/lib/rdf/model/graph.rb +2 -2
- data/lib/rdf/model/statement.rb +2 -2
- data/lib/rdf/model/uri.rb +9 -9
- data/lib/rdf/ntriples.rb +1 -1
- data/lib/rdf/util/uuid.rb +4 -4
- data/lib/rdf/vocabulary.rb +1 -1
- data/lib/rdf/writer.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcde96af39c44efa90ba7eaa1b32baefef595b7047289398ef7f87feff7dbb1a
|
4
|
+
data.tar.gz: d378680c75bb888ad8d079bad863309378cbd6b340061d111614d5703f17dc9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '022876050365a5ddc3f3a4e0569149583a65ba4398ed62268a4ecf7b616986fbc5662700c61d268105938fc9a3a22a7a6a73083f2a3e7e7fd7ad2fed793f9289'
|
7
|
+
data.tar.gz: b7ce7cf2f38a1a75b527534162be5b0a78bf33c96c2338185186cab4fc2bbb94d63b5281396906a445b873789721a13fc89c366338763301bb5036e0e1efeeb3
|
data/README.md
CHANGED
@@ -3,14 +3,14 @@
|
|
3
3
|
This is a pure-Ruby library for working with [Resource Description Framework
|
4
4
|
(RDF)][RDF] data.
|
5
5
|
|
6
|
-
* <
|
7
|
-
* <
|
8
|
-
* <
|
9
|
-
* <
|
10
|
-
* <
|
11
|
-
|
12
|
-
[](
|
13
|
-
[](
|
6
|
+
* <https://ruby-rdf.github.com/rdf>
|
7
|
+
* <https://blog.datagraph.org/2010/12/rdf-for-ruby>
|
8
|
+
* <https://blog.datagraph.org/2010/03/rdf-for-ruby>
|
9
|
+
* <https://blog.datagraph.org/2010/04/parsing-rdf-with-ruby>
|
10
|
+
* <https://blog.datagraph.org/2010/04/rdf-repository-howto>
|
11
|
+
|
12
|
+
[](https://badge.fury.io/rb/rdf)
|
13
|
+
[](https://travis-ci.org/ruby-rdf/rdf)
|
14
14
|
[](https://coveralls.io/r/ruby-rdf/rdf)
|
15
15
|
[](https://gitter.im/ruby-rdf/rdf?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
16
16
|
|
@@ -18,7 +18,7 @@ This is a pure-Ruby library for working with [Resource Description Framework
|
|
18
18
|
|
19
19
|
* 100% pure Ruby with minimal dependencies and no bloat.
|
20
20
|
* Fully compatible with [RDF 1.1][] specifications.
|
21
|
-
* 100% free and unencumbered [public domain](
|
21
|
+
* 100% free and unencumbered [public domain](https://unlicense.org/) software.
|
22
22
|
* Provides a clean, well-designed RDF object model and related APIs.
|
23
23
|
* Supports parsing and serializing [N-Triples][] and [N-Quads][] out of the box, with more
|
24
24
|
serialization format support available through add-on extensions.
|
@@ -50,11 +50,11 @@ the 1.1 release of RDF.rb:
|
|
50
50
|
* Introduces {RDF::IRI}, as a synonym for {RDF::URI} either {RDF::IRI} or {RDF::URI} can be used interchangeably. Versions of RDF.rb prior to the 1.1 release were already compatible with IRIs. Internationalized Resource Identifiers (see [RFC3987][]) are a super-set of URIs (see [RFC3986][]) which allow for characters other than standard US-ASCII.
|
51
51
|
* {RDF::URI} no longer uses the `Addressable` gem. As URIs typically don't need to be parsed, this provides a substantial performance improvement when enumerating or querying graphs and repositories.
|
52
52
|
* {RDF::List} no longer emits a `rdf:List` type. However, it will now recognize any subjects that are {RDF::Node} instances as being list elements, as long as they have both `rdf:first` and `rdf:rest` predicates.
|
53
|
-
* {RDF::Graph} adding a `graph_name` to a graph may only be done when the underlying storage model supports graph_names (the default {RDF::Repository} does). The notion of `graph_name` in RDF.rb is treated equivalently to [Named Graphs](
|
53
|
+
* {RDF::Graph} adding a `graph_name` to a graph may only be done when the underlying storage model supports graph_names (the default {RDF::Repository} does). The notion of `graph_name` in RDF.rb is treated equivalently to [Named Graphs](https://www.w3.org/TR/rdf11-concepts/#dfn-named-graph) within an RDF Dataset, and graphs on their own are not named.
|
54
54
|
* {RDF::Graph}, {RDF::Statement} and {RDF::List} now include {RDF::Value}, and not {RDF::Resource}. Made it clear that using {RDF::Graph} does not mean that it may be used within an {RDF::Statement}, for this see {RDF::Term}.
|
55
55
|
* {RDF::Statement} now is stricter about checking that all elements are valid when validating.
|
56
56
|
* {RDF::NTriples::Writer} and {RDF::NQuads::Writer} now default to validate output, only allowing valid statements to be emitted. This may disabled by setting the `:validate` option to `false`.
|
57
|
-
* {RDF::Dataset} is introduced as a class alias of {RDF::Repository}. This allows closer alignment to the RDF concept of [Dataset](
|
57
|
+
* {RDF::Dataset} is introduced as a class alias of {RDF::Repository}. This allows closer alignment to the RDF concept of [Dataset](https://www.w3.org/TR/rdf11-concepts/#dfn-dataset).
|
58
58
|
* The `graph_name` of a graph within a Dataset or Repository may be either an {RDF::IRI} or {RDF::Node}. Implementations of repositories may restrict this to being only {RDF::IRI}.
|
59
59
|
* There are substantial and somewhat incompatible changes to {RDF::Literal}. In [RDF 1.1][], all literals are typed, including plain literals and language tagged literals. Internally, plain literals are given the `xsd:string` datatype and language tagged literals are given the `rdf:langString` datatype. Creating a plain literal, without a datatype or language, will automatically provide the `xsd:string` datatype; similar for language tagged literals. Note that most serialization formats will remove this datatype. Code which depends on a literal having the `xsd:string` datatype being different from a plain literal (formally, without a datatype) may break. However note that the `#has\_datatype?` will continue to return `false` for plain or language-tagged literals.
|
60
60
|
* {RDF::Query#execute} now accepts a block and returns {RDF::Query::Solutions}. This allows `enumerable.query(query)` to behave like `query.execute(enumerable)` and either return an enumerable or yield each solution.
|
@@ -70,9 +70,9 @@ Notably, {RDF::Queryable#query} and {RDF::Query#execute} are now completely symm
|
|
70
70
|
|
71
71
|
## Tutorials
|
72
72
|
|
73
|
-
* [Getting data from the Semantic Web using Ruby and RDF.rb](
|
74
|
-
* [Using RDF.rb and Spira to process RDF data from the British Ordnance Survey](
|
75
|
-
* [Getting started with RDF and SPARQL using 4store and RDF.rb](
|
73
|
+
* [Getting data from the Semantic Web using Ruby and RDF.rb](https://semanticweb.org/wiki/Getting_data_from_the_Semantic_Web_%28Ruby%29)
|
74
|
+
* [Using RDF.rb and Spira to process RDF data from the British Ordnance Survey](https://stephenpope.co.uk/?p=85)
|
75
|
+
* [Getting started with RDF and SPARQL using 4store and RDF.rb](https://www.jenitennison.com/blog/node/152)
|
76
76
|
|
77
77
|
## Command Line
|
78
78
|
When installed, RDF.rb includes a `rdf` shell script which acts as a wrapper to perform a number of different
|
@@ -106,11 +106,11 @@ or
|
|
106
106
|
### Reading RDF data in the [N-Triples][] format
|
107
107
|
|
108
108
|
require 'rdf/ntriples'
|
109
|
-
graph = RDF::Graph.load("
|
109
|
+
graph = RDF::Graph.load("https://ruby-rdf.github.com/rdf/etc/doap.nt")
|
110
110
|
|
111
111
|
or
|
112
112
|
|
113
|
-
RDF::Reader.open("
|
113
|
+
RDF::Reader.open("https://ruby-rdf.github.com/rdf/etc/doap.nt") do |reader|
|
114
114
|
reader.each_statement do |statement|
|
115
115
|
puts statement.inspect
|
116
116
|
end
|
@@ -124,13 +124,13 @@ MimeType or file extension, where available.
|
|
124
124
|
|
125
125
|
require 'rdf/nquads'
|
126
126
|
|
127
|
-
graph = RDF::Graph.load("
|
127
|
+
graph = RDF::Graph.load("https://ruby-rdf.github.com/rdf/etc/doap.nq", format: :nquads)
|
128
128
|
|
129
129
|
A specific sub-type of Reader can also be invoked directly:
|
130
130
|
|
131
131
|
require 'rdf/nquads'
|
132
132
|
|
133
|
-
RDF::NQuads::Reader.open("
|
133
|
+
RDF::NQuads::Reader.open("https://ruby-rdf.github.com/rdf/etc/doap.nq") do |reader|
|
134
134
|
reader.each_statement do |statement|
|
135
135
|
puts statement.inspect
|
136
136
|
end
|
@@ -182,7 +182,7 @@ Note that no prefixes are loaded automatically, however they can be provided as
|
|
182
182
|
|
183
183
|
require 'rdf/ntriples'
|
184
184
|
|
185
|
-
graph = RDF::Graph.load("
|
185
|
+
graph = RDF::Graph.load("https://ruby-rdf.github.com/rdf/etc/doap.nt")
|
186
186
|
query = RDF::Query.new({
|
187
187
|
person: {
|
188
188
|
RDF.type => FOAF.Person,
|
@@ -203,7 +203,7 @@ The same query may also be run from the graph:
|
|
203
203
|
|
204
204
|
In general, querying from using the `queryable` instance allows a specific implementation of `queryable` to perform query optimizations specific to the datastore on which it is based.
|
205
205
|
|
206
|
-
A separate [SPARQL][SPARQL doc] gem builds on basic BGP support to provide full support for [SPARQL 1.
|
206
|
+
A separate [SPARQL][SPARQL doc] gem builds on basic BGP support to provide full support for [SPARQL 1.1][] queries.
|
207
207
|
|
208
208
|
### Using pre-defined RDF vocabularies
|
209
209
|
|
@@ -224,12 +224,10 @@ A separate [SPARQL][SPARQL doc] gem builds on basic BGP support to provide full
|
|
224
224
|
|
225
225
|
## Documentation
|
226
226
|
|
227
|
-
<
|
227
|
+
<https://rubydoc.info/github/ruby-rdf/rdf>
|
228
228
|
|
229
229
|
### RDF Object Model
|
230
230
|
|
231
|
-
<http://blog.datagraph.org/2010/03/rdf-for-ruby>
|
232
|
-
|
233
231
|
* {RDF::Value}
|
234
232
|
* {RDF::Term}
|
235
233
|
* {RDF::Literal}
|
@@ -240,7 +238,7 @@ A separate [SPARQL][SPARQL doc] gem builds on basic BGP support to provide full
|
|
240
238
|
* {RDF::Literal::Double}
|
241
239
|
* {RDF::Literal::Integer}
|
242
240
|
* {RDF::Literal::Time}
|
243
|
-
* [RDF::XSD](
|
241
|
+
* [RDF::XSD](https://rubydoc.info/github/gkellogg/rdf-xsd) (extension)
|
244
242
|
* {RDF::Resource}
|
245
243
|
* {RDF::Node}
|
246
244
|
* {RDF::URI}
|
@@ -250,7 +248,7 @@ A separate [SPARQL][SPARQL doc] gem builds on basic BGP support to provide full
|
|
250
248
|
|
251
249
|
### RDF Serialization
|
252
250
|
|
253
|
-
<
|
251
|
+
<https://blog.datagraph.org/2010/04/parsing-rdf-with-ruby>
|
254
252
|
|
255
253
|
* {RDF::Format}
|
256
254
|
* {RDF::Reader}
|
@@ -267,8 +265,8 @@ other gems:
|
|
267
265
|
* [RDF::JSON][] (extension)
|
268
266
|
* [RDF::Microdata][] (extension)
|
269
267
|
* [RDF::N3][] (extension)
|
270
|
-
* [RDF::Raptor::RDFXML](
|
271
|
-
* [RDF::Raptor::Turtle](
|
268
|
+
* [RDF::Raptor::RDFXML](https://ruby-rdf.github.io/rdf-raptor) (extension)
|
269
|
+
* [RDF::Raptor::Turtle](https://ruby-rdf.github.io/rdf-raptor) (extension)
|
272
270
|
* [RDF::RDFa][] (extension)
|
273
271
|
* [RDF::RDFXML][] (extension)
|
274
272
|
* [RDF::TriG][] (extension)
|
@@ -280,7 +278,7 @@ The meta-gem [LinkedData][LinkedData doc] includes many of these gems.
|
|
280
278
|
### RDF Datatypes
|
281
279
|
|
282
280
|
RDF.rb only implements core datatypes from the
|
283
|
-
[RDF Datatype Map](
|
281
|
+
[RDF Datatype Map](https://www.w3.org/TR/rdf11-concepts/#datatype-maps). Most other
|
284
282
|
XSD and RDF datatype implementations can be find in the following:
|
285
283
|
|
286
284
|
* {RDF::XSD}
|
@@ -296,7 +294,7 @@ from BNode identity (i.e., they each entail the other)
|
|
296
294
|
|
297
295
|
### RDF Storage
|
298
296
|
|
299
|
-
<
|
297
|
+
<https://blog.datagraph.org/2010/04/rdf-repository-howto>
|
300
298
|
|
301
299
|
* {RDF::Repository}
|
302
300
|
* {RDF::Countable}
|
@@ -306,10 +304,10 @@ from BNode identity (i.e., they each entail the other)
|
|
306
304
|
* {RDF::Mutable}
|
307
305
|
* {RDF::Durable}
|
308
306
|
* {RDF::Transaction}
|
309
|
-
* [RDF::AllegroGraph](
|
310
|
-
* [RDF::Mongo](
|
311
|
-
* [RDF::DataObjects](
|
312
|
-
* [RDF::Sesame](
|
307
|
+
* [RDF::AllegroGraph](https://rubydoc.info/github/ruby-rdf/rdf-agraph) (extension)
|
308
|
+
* [RDF::Mongo](https://rubydoc.info/github/ruby-rdf/rdf-mongo) (extension)
|
309
|
+
* [RDF::DataObjects](https://rubydoc.info/github/ruby-rdf/rdf-do) (extension)
|
310
|
+
* [RDF::Sesame](https://rubydoc.info/github/ruby-rdf/rdf-sesame) (extension)
|
313
311
|
|
314
312
|
### RDF Querying
|
315
313
|
|
@@ -319,7 +317,7 @@ from BNode identity (i.e., they each entail the other)
|
|
319
317
|
* {RDF::Query::Solution}
|
320
318
|
* {RDF::Query::Solutions}
|
321
319
|
* {RDF::Query::Variable}
|
322
|
-
* [SPARQL](
|
320
|
+
* [SPARQL](https://rubydoc.info/github/ruby-rdf/sparql) (extension)
|
323
321
|
|
324
322
|
|
325
323
|
### RDF Vocabularies
|
@@ -333,13 +331,13 @@ from BNode identity (i.e., they each entail the other)
|
|
333
331
|
|
334
332
|
## Dependencies
|
335
333
|
|
336
|
-
* [Ruby](
|
334
|
+
* [Ruby](https://ruby-lang.org/) (>= 2.2)
|
337
335
|
* [LinkHeader][] (>= 0.0.8)
|
338
336
|
* Soft dependency on [RestClient][] (>= 1.7)
|
339
337
|
|
340
338
|
## Installation
|
341
339
|
|
342
|
-
The recommended installation method is via [RubyGems](
|
340
|
+
The recommended installation method is via [RubyGems](https://rubygems.org/).
|
343
341
|
To install the latest official release of RDF.rb, do:
|
344
342
|
|
345
343
|
% [sudo] gem install rdf # Ruby 2+
|
@@ -353,39 +351,38 @@ To get a local working copy of the development repository, do:
|
|
353
351
|
Alternatively, download the latest development version as a tarball as
|
354
352
|
follows:
|
355
353
|
|
356
|
-
% wget
|
354
|
+
% wget https://github.com/ruby-rdf/rdf/tarball/master
|
357
355
|
|
358
356
|
## Resources
|
359
357
|
|
360
|
-
* <
|
361
|
-
* <
|
362
|
-
* <
|
363
|
-
* <
|
364
|
-
* <http://www.ohloh.net/p/rdf>
|
358
|
+
* <https://rubydoc.info/github/ruby-rdf/rdf>
|
359
|
+
* <https://github.com/ruby-rdf/rdf>
|
360
|
+
* <https://rubygems.org/gems/rdf>
|
361
|
+
* <https://www.ohloh.net/p/rdf>
|
365
362
|
|
366
363
|
## Mailing List
|
367
364
|
|
368
|
-
* <
|
365
|
+
* <https://lists.w3.org/Archives/Public/public-rdf-ruby/>
|
369
366
|
|
370
367
|
## Authors
|
371
368
|
|
372
|
-
* [Arto Bendiken](
|
373
|
-
* [Ben Lavender](
|
374
|
-
* [Gregg Kellogg](
|
369
|
+
* [Arto Bendiken](https://github.com/artob) - <https://ar.to/>
|
370
|
+
* [Ben Lavender](https://github.com/bhuga) - <https://bhuga.net/>
|
371
|
+
* [Gregg Kellogg](https://github.com/gkellogg) - <https://greggkellogg.net/>
|
375
372
|
|
376
373
|
## Contributors
|
377
374
|
|
378
|
-
* [Călin Ardelean](
|
379
|
-
* [Mark Borkum](
|
380
|
-
* [Danny Gagne](
|
381
|
-
* [Joey Geiger](
|
382
|
-
* [Fumihiro Kato](
|
383
|
-
* [Naoki Kawamukai](
|
375
|
+
* [Călin Ardelean](https://github.com/clnx) - <https://github.com/clnx>
|
376
|
+
* [Mark Borkum](https://github.com/markborkum) - <https://github.com/markborkum>
|
377
|
+
* [Danny Gagne](https://github.com/danny) - <http://www.dannygagne.com/>
|
378
|
+
* [Joey Geiger](https://github.com/jgeiger) - <https://github.com/jgeiger>
|
379
|
+
* [Fumihiro Kato](https://github.com/fumi) - <https://fumi.me/>
|
380
|
+
* [Naoki Kawamukai](https://github.com/kna) - <https://github.com/kna>
|
384
381
|
* [Tom Nixon](https://github.com/tomjnixon) - <https://github.com/tomjnixon>
|
385
|
-
* [Hellekin O. Wolf](
|
386
|
-
* [John Fieber](
|
387
|
-
* [Keita Urashima](
|
388
|
-
* [Pius Uzamere](
|
382
|
+
* [Hellekin O. Wolf](https://github.com/hellekin) - <https://hellekin.cepheide.org/>
|
383
|
+
* [John Fieber](https://github.com/jfieber) - <https://github.com/jfieber>
|
384
|
+
* [Keita Urashima](https://github.com/ursm) - <https://ursm.jp/>
|
385
|
+
* [Pius Uzamere](https://github.com/pius) - <http://pius.me/>
|
389
386
|
* [Judson Lester](https://github.com/nyarly) - <https://github.com/nyarly>
|
390
387
|
* [Peter Vandenabeele](https://github.com/petervandenabeele) - <https://github.com/petervandenabeele>
|
391
388
|
* [Tom Johnson](https://github.com/no-reply) - <https://github.com/no-reply>
|
@@ -412,40 +409,40 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo
|
|
412
409
|
## License
|
413
410
|
|
414
411
|
This is free and unencumbered public domain software. For more information,
|
415
|
-
see <
|
416
|
-
|
417
|
-
[RDF]:
|
418
|
-
[N-Triples]:
|
419
|
-
[N-Quads]:
|
420
|
-
[YARD]:
|
421
|
-
[YARD-GS]:
|
422
|
-
[PDD]:
|
423
|
-
[JSONLD doc]:
|
424
|
-
[LinkedData doc]:
|
425
|
-
[Microdata doc]:
|
426
|
-
[N3 doc]:
|
427
|
-
[RDFa doc]:
|
428
|
-
[RDFXML doc]:
|
429
|
-
[Turtle doc]:
|
430
|
-
[SPARQL doc]:
|
431
|
-
[RDF 1.0]:
|
432
|
-
[RDF 1.1]:
|
433
|
-
[SPARQL 1.
|
434
|
-
[RDF.rb]:
|
435
|
-
[RDF::DO]:
|
436
|
-
[RDF::Mongo]:
|
437
|
-
[RDF::Sesame]:
|
438
|
-
[RDF::JSON]:
|
439
|
-
[RDF::Microdata]:
|
440
|
-
[RDF::N3]:
|
441
|
-
[RDF::RDFa]:
|
442
|
-
[RDF::RDFXML]:
|
443
|
-
[RDF::TriG]:
|
444
|
-
[RDF::TriX]:
|
445
|
-
[RDF::Turtle]:
|
446
|
-
[RDF::Raptor]:
|
447
|
-
[LinkedData]:
|
448
|
-
[JSON::LD]:
|
412
|
+
see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
|
413
|
+
|
414
|
+
[RDF]: https://www.w3.org/RDF/
|
415
|
+
[N-Triples]: https://www.w3.org/TR/n-triples/
|
416
|
+
[N-Quads]: https://www.w3.org/TR/n-quads/
|
417
|
+
[YARD]: https://yardoc.org/
|
418
|
+
[YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
|
419
|
+
[PDD]: https://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
|
420
|
+
[JSONLD doc]: https://rubydoc.info/github/ruby-rdf/json-ld
|
421
|
+
[LinkedData doc]: https://rubydoc.info/github/datagraph/linkeddata
|
422
|
+
[Microdata doc]: https://rubydoc.info/github/ruby-rdf/rdf-microdata
|
423
|
+
[N3 doc]: https://rubydoc.info/github/ruby-rdf/rdf-n3
|
424
|
+
[RDFa doc]: https://rubydoc.info/github/ruby-rdf/rdf-rdfa
|
425
|
+
[RDFXML doc]: https://rubydoc.info/github/ruby-rdf/rdf-rdfxml
|
426
|
+
[Turtle doc]: https://rubydoc.info/github/ruby-rdf/rdf-turtle
|
427
|
+
[SPARQL doc]: https://rubydoc.info/github/ruby-rdf/sparql
|
428
|
+
[RDF 1.0]: https://www.w3.org/TR/2004/REC-rdf-concepts-20040210/
|
429
|
+
[RDF 1.1]: https://www.w3.org/TR/rdf11-concepts/
|
430
|
+
[SPARQL 1.1]: https://www.w3.org/TR/sparql11-query/
|
431
|
+
[RDF.rb]: https://ruby-rdf.github.com/
|
432
|
+
[RDF::DO]: https://ruby-rdf.github.com/rdf-do
|
433
|
+
[RDF::Mongo]: https://ruby-rdf.github.com/rdf-mongo
|
434
|
+
[RDF::Sesame]: https://ruby-rdf.github.com/rdf-sesame
|
435
|
+
[RDF::JSON]: https://ruby-rdf.github.com/rdf-json
|
436
|
+
[RDF::Microdata]: https://ruby-rdf.github.com/rdf-microdata
|
437
|
+
[RDF::N3]: https://ruby-rdf.github.com/rdf-n3
|
438
|
+
[RDF::RDFa]: https://ruby-rdf.github.com/rdf-rdfa
|
439
|
+
[RDF::RDFXML]: https://ruby-rdf.github.com/rdf-rdfxml
|
440
|
+
[RDF::TriG]: https://ruby-rdf.github.com/rdf-trig
|
441
|
+
[RDF::TriX]: https://ruby-rdf.github.com/rdf-trix
|
442
|
+
[RDF::Turtle]: https://ruby-rdf.github.com/rdf-turtle
|
443
|
+
[RDF::Raptor]: https://ruby-rdf.github.com/rdf-raptor
|
444
|
+
[LinkedData]: https://ruby-rdf.github.com/linkeddata
|
445
|
+
[JSON::LD]: https://ruby-rdf.github.com/json-ld
|
449
446
|
[RestClient]: https://rubygems.org/gems/rest-client
|
450
447
|
[RestClient Components]: https://rubygems.org/gems/rest-client-components
|
451
|
-
[Rack::Cache]:
|
448
|
+
[Rack::Cache]: https://rtomayko.github.io/rack-cache/
|
data/UNLICENSE
CHANGED
@@ -21,4 +21,4 @@ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
21
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22
22
|
OTHER DEALINGS IN THE SOFTWARE.
|
23
23
|
|
24
|
-
For more information, please refer to <
|
24
|
+
For more information, please refer to <https://unlicense.org/>
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.12
|
data/etc/doap.nt
CHANGED
@@ -1,75 +1,75 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
<
|
4
|
-
<
|
5
|
-
<
|
6
|
-
<
|
7
|
-
<
|
8
|
-
<
|
9
|
-
<
|
10
|
-
<
|
11
|
-
<
|
12
|
-
<
|
13
|
-
<
|
14
|
-
<
|
15
|
-
<
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<
|
19
|
-
<
|
20
|
-
<
|
21
|
-
<
|
22
|
-
<
|
23
|
-
<
|
24
|
-
<
|
25
|
-
<
|
26
|
-
<
|
27
|
-
<
|
1
|
+
<https://rubygems.org/gems/rdf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://usefulinc.com/ns/doap#Project> .
|
2
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#name> "RDF.rb" .
|
3
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#homepage> <https://rubygems.org/gems/rdf> .
|
4
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#license> <http://creativecommons.org/licenses/publicdomain/> .
|
5
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#shortdesc> "A Ruby library for working with Resource Description Framework (RDF) data."@en .
|
6
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#description> "RDF.rb is a pure-Ruby library for working with Resource Description Framework (RDF) data."@en .
|
7
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#created> "2007-10-23" .
|
8
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#platform> "Ruby" .
|
9
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#category> <http://dbpedia.org/resource/Resource_Description_Framework> .
|
10
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#category> <http://dbpedia.org/resource/Ruby_(programming_language)> .
|
11
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#implements> <http://www.w3.org/TR/rdf11-concepts/> .
|
12
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#implements> <http://www.w3.org/TR/n-quads/> .
|
13
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#implements> <http://www.w3.org/TR/n-triples/> .
|
14
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#download-page> <https://rubygems.org/gems/rdf/> .
|
15
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#bug-database> <http://github.com/ruby-rdf/rdf/issues> .
|
16
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#blog> <http://ar.to/> .
|
17
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#blog> <http://blog.datagraph.org/> .
|
18
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#vendor> <http://datagraph.org/> .
|
19
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#developer> <http://ar.to/#self> .
|
20
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#developer> <http://bhuga.net/#ben> .
|
21
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#developer> <http://greggkellogg.net/foaf#me> .
|
22
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#maintainer> <http://ar.to/#self> .
|
23
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#maintainer> <http://bhuga.net/#ben> .
|
24
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#maintainer> <http://greggkellogg.net/foaf#me> .
|
25
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#documenter> <http://ar.to/#self> .
|
26
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#documenter> <http://bhuga.net/#ben> .
|
27
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#documenter> <http://greggkellogg.net/foaf#me> .
|
28
28
|
_:g70186318075540 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
29
29
|
_:g70186318075540 <http://xmlns.com/foaf/0.1/name> "Călin Ardelean" .
|
30
30
|
_:g70186318075540 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "274bd18402fc773ffc0606996aa1fb90b603aa29" .
|
31
|
-
<
|
31
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:g70186318075540 .
|
32
32
|
_:g70186318591960 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
33
33
|
_:g70186318591960 <http://xmlns.com/foaf/0.1/name> "Danny Gagne" .
|
34
34
|
_:g70186318591960 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "6de43e9cf7de53427fea9765706703e4d957c17b" .
|
35
|
-
<
|
35
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:g70186318591960 .
|
36
36
|
_:g70186318228820 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
37
37
|
_:g70186318228820 <http://xmlns.com/foaf/0.1/name> "Joey Geiger" .
|
38
38
|
_:g70186318228820 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "f412d743150d7b27b8468d56e69ca147917ea6fc" .
|
39
|
-
<
|
39
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:g70186318228820 .
|
40
40
|
_:g70186318408440 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
41
41
|
_:g70186318408440 <http://xmlns.com/foaf/0.1/name> "Fumihiro Kato" .
|
42
42
|
_:g70186318408440 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "d31fdd6af7a279a89bf09fdc9f7c44d9d08bb930" .
|
43
|
-
<
|
43
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:g70186318408440 .
|
44
44
|
_:g70186318725620 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
45
45
|
_:g70186318725620 <http://xmlns.com/foaf/0.1/name> "Naoki Kawamukai" .
|
46
46
|
_:g70186318725620 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "5bdcd8e2af4f5952aaeeffbdd371c41525ec761d" .
|
47
|
-
<
|
47
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:g70186318725620 .
|
48
48
|
_:g70186319866820 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
49
49
|
_:g70186319866820 <http://xmlns.com/foaf/0.1/name> "Hellekin O. Wolf" .
|
50
50
|
_:g70186319866820 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "c69f3255ff0639543cc5edfd8116eac8df16fab8" .
|
51
|
-
<
|
51
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:g70186319866820 .
|
52
52
|
_:g70186321042840 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
53
53
|
_:g70186321042840 <http://xmlns.com/foaf/0.1/name> "John Fieber" .
|
54
54
|
_:g70186321042840 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "f7653fc1ac0e82ebb32f092389bd5fc728eaae12" .
|
55
|
-
<
|
55
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:g70186321042840 .
|
56
56
|
_:g70186319319640 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
57
57
|
_:g70186319319640 <http://xmlns.com/foaf/0.1/name> "Keita Urashima" .
|
58
58
|
_:g70186319319640 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "2b4247b6fd5bb4a1383378f325784318680d5ff9" .
|
59
|
-
<
|
59
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:g70186319319640 .
|
60
60
|
_:g70186321063140 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
61
61
|
_:g70186321063140 <http://xmlns.com/foaf/0.1/name> "Pius Uzamere" .
|
62
62
|
_:g70186321063140 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "bedbbf2451e5beb38d59687c0460032aff92cd3c" .
|
63
|
-
<
|
64
|
-
<
|
65
|
-
<
|
63
|
+
<https://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:g70186321063140 .
|
64
|
+
<https://rubygems.org/gems/rdf> <http://xmlns.com/foaf/0.1/maker> <http://ar.to/#self> .
|
65
|
+
<https://rubygems.org/gems/rdf> <http://purl.org/dc/terms/creator> <http://ar.to/#self> .
|
66
66
|
<http://ar.to/#self> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
67
67
|
<http://ar.to/#self> <http://xmlns.com/foaf/0.1/name> "Arto Bendiken" .
|
68
68
|
<http://ar.to/#self> <http://xmlns.com/foaf/0.1/mbox> <mailto:arto@bendiken.net> .
|
69
69
|
<http://ar.to/#self> <http://xmlns.com/foaf/0.1/mbox_sha1sum> "a033f652c84a4d73b8c26d318c2395699dd2bdfb" .
|
70
70
|
<http://ar.to/#self> <http://xmlns.com/foaf/0.1/mbox_sha1sum> "d0737cceb55eb7d740578d2db1bc0727e3ed49ce" .
|
71
71
|
<http://ar.to/#self> <http://xmlns.com/foaf/0.1/homepage> <http://ar.to/> .
|
72
|
-
<http://ar.to/#self> <http://xmlns.com/foaf/0.1/made> <
|
72
|
+
<http://ar.to/#self> <http://xmlns.com/foaf/0.1/made> <https://rubygems.org/gems/rdf> .
|
73
73
|
<http://ar.to/#self> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <http://datagraph.org/bendiken/foaf> .
|
74
74
|
<http://bhuga.net/#ben> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
75
75
|
<http://bhuga.net/#ben> <http://xmlns.com/foaf/0.1/name> "Ben Lavender" .
|
data/lib/rdf/mixin/enumerable.rb
CHANGED
@@ -17,7 +17,7 @@ module RDF
|
|
17
17
|
# enumerable.has_quad?([subject, predicate, object, graph_name])
|
18
18
|
#
|
19
19
|
# @example Checking whether a specific value exists
|
20
|
-
# enumerable.has_subject?(RDF::URI("
|
20
|
+
# enumerable.has_subject?(RDF::URI("https://rubygems.org/gems/rdf"))
|
21
21
|
# enumerable.has_predicate?(RDF::RDFS.label)
|
22
22
|
# enumerable.has_object?(RDF::Literal("A Ruby library for working with Resource Description Framework (RDF) data.", language: :en))
|
23
23
|
# enumerable.has_graph?(RDF::URI("http://ar.to/#self"))
|
@@ -21,14 +21,14 @@ module RDF
|
|
21
21
|
#
|
22
22
|
# @example running a transaction
|
23
23
|
# repository.transaction(mutable: true) do |tx|
|
24
|
-
# tx.insert [RDF::URI("
|
24
|
+
# tx.insert [RDF::URI("https://rubygems.org/gems/rdf"), RDF::RDFS.label, "RDF.rb"]
|
25
25
|
# end
|
26
26
|
#
|
27
27
|
# Raising an error within the transaction block causes automatic rollback.
|
28
28
|
#
|
29
29
|
# @example manipulating a live transaction
|
30
30
|
# tx = repository.transaction(mutable: true)
|
31
|
-
# tx.insert [RDF::URI("
|
31
|
+
# tx.insert [RDF::URI("https://rubygems.org/gems/rdf"), RDF::RDFS.label, "RDF.rb"]
|
32
32
|
# tx.execute
|
33
33
|
#
|
34
34
|
# @overload transaction(mutable: false)
|
data/lib/rdf/model/graph.rb
CHANGED
@@ -259,11 +259,11 @@ module RDF
|
|
259
259
|
##
|
260
260
|
# Graph equivalence based on the contents of each graph being _exactly_
|
261
261
|
# the same. To determine if the have the same _meaning_, consider
|
262
|
-
# [rdf-isomorphic](
|
262
|
+
# [rdf-isomorphic](https://rubygems.org/gems/rdf-isomorphic).
|
263
263
|
#
|
264
264
|
# @param [RDF::Graph] other
|
265
265
|
# @return [Boolean]
|
266
|
-
# @see
|
266
|
+
# @see https://rubygems.org/gems/rdf-isomorphic
|
267
267
|
def ==(other)
|
268
268
|
other.is_a?(RDF::Graph) &&
|
269
269
|
graph_name == other.graph_name &&
|
data/lib/rdf/model/statement.rb
CHANGED
@@ -3,7 +3,7 @@ module RDF
|
|
3
3
|
# An RDF statement.
|
4
4
|
#
|
5
5
|
# @example Creating an RDF statement
|
6
|
-
# s = RDF::URI.new("
|
6
|
+
# s = RDF::URI.new("https://rubygems.org/gems/rdf")
|
7
7
|
# p = RDF::Vocab::DC.creator
|
8
8
|
# o = RDF::URI.new("http://ar.to/#self")
|
9
9
|
# RDF::Statement(s, p, o)
|
@@ -14,7 +14,7 @@ module RDF
|
|
14
14
|
#
|
15
15
|
# @example Creating an RDF statement from a `Hash`
|
16
16
|
# RDF::Statement({
|
17
|
-
# subject: RDF::URI.new("
|
17
|
+
# subject: RDF::URI.new("https://rubygems.org/gems/rdf"),
|
18
18
|
# predicate: RDF::Vocab::DC.creator,
|
19
19
|
# object: RDF::URI.new("http://ar.to/#self"),
|
20
20
|
# })
|
data/lib/rdf/model/uri.rb
CHANGED
@@ -7,23 +7,23 @@ module RDF
|
|
7
7
|
# Also compatible with International Resource Identifier (IRI)
|
8
8
|
#
|
9
9
|
# @example Creating a URI reference (1)
|
10
|
-
# uri = RDF::URI.new("
|
10
|
+
# uri = RDF::URI.new("https://rubygems.org/gems/rdf")
|
11
11
|
#
|
12
12
|
# @example Creating a URI reference (2)
|
13
13
|
# uri = RDF::URI.new(scheme: 'http', host: 'rubygems.org', path: '/gems/rdf')
|
14
|
-
# #=> RDF::URI.new("
|
14
|
+
# #=> RDF::URI.new("https://rubygems.org/gems/rdf")
|
15
15
|
#
|
16
16
|
# @example Creating an interned URI reference
|
17
|
-
# uri = RDF::URI.intern("
|
17
|
+
# uri = RDF::URI.intern("https://rubygems.org/gems/rdf")
|
18
18
|
#
|
19
19
|
# @example Getting the string representation of a URI
|
20
|
-
# uri.to_s #=> "
|
20
|
+
# uri.to_s #=> "https://rubygems.org/gems/rdf"
|
21
21
|
#
|
22
|
-
#
|
23
|
-
# @see
|
24
|
-
# @see
|
25
|
-
# @see
|
26
|
-
# @see
|
22
|
+
# @see https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier
|
23
|
+
# @see https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
|
24
|
+
# @see https://www.ietf.org/rfc/rfc3986.txt
|
25
|
+
# @see https://www.ietf.org/rfc/rfc3987.txt
|
26
|
+
# @see https://rubydoc.info/gems/addressable
|
27
27
|
class URI
|
28
28
|
include RDF::Resource
|
29
29
|
|
data/lib/rdf/ntriples.rb
CHANGED
@@ -13,7 +13,7 @@ module RDF
|
|
13
13
|
#
|
14
14
|
# An example of an RDF statement in N-Triples format:
|
15
15
|
#
|
16
|
-
# <
|
16
|
+
# <https://rubygems.org/gems/rdf> <http://purl.org/dc/terms/title> "rdf" .
|
17
17
|
#
|
18
18
|
# Installation
|
19
19
|
# ------------
|
data/lib/rdf/util/uuid.rb
CHANGED
@@ -10,14 +10,14 @@ module RDF; module Util
|
|
10
10
|
# This will make use of either the [UUID][] gem or the [UUIDTools][]
|
11
11
|
# gem, whichever of the two happens to be available.
|
12
12
|
#
|
13
|
-
# [UUID]:
|
14
|
-
# [UUIDTools]:
|
13
|
+
# [UUID]: https://rubygems.org/gems/uuid
|
14
|
+
# [UUIDTools]: https://rubygems.org/gems/uuidtools
|
15
15
|
#
|
16
16
|
# @param [:default, :compact, :urn] format (:default)
|
17
17
|
# @return [String] a UUID string
|
18
18
|
# @raise [LoadError] if no UUID library is available
|
19
|
-
# @see
|
20
|
-
# @see
|
19
|
+
# @see https://rubygems.org/gems/uuid
|
20
|
+
# @see https://rubygems.org/gems/uuidtools
|
21
21
|
def self.generate(format: :default)
|
22
22
|
begin
|
23
23
|
require 'uuid'
|
data/lib/rdf/vocabulary.rb
CHANGED
@@ -16,7 +16,7 @@ module RDF
|
|
16
16
|
# * {RDF::RDFS} - RDF Schema (RDFS)
|
17
17
|
# * {RDF::XSD} - XML Schema (XSD)
|
18
18
|
#
|
19
|
-
# Other vocabularies are defined in the [rdf-vocab](
|
19
|
+
# Other vocabularies are defined in the [rdf-vocab](https://rubygems.org/gems/rdf-vocab) gem
|
20
20
|
#
|
21
21
|
# @example Using pre-defined RDF vocabularies
|
22
22
|
# include RDF
|
data/lib/rdf/writer.rb
CHANGED
@@ -37,7 +37,7 @@ module RDF
|
|
37
37
|
# logger = Logger.new([])
|
38
38
|
# RDF::Writer.for(:ntriples).buffer(logger: logger) do |writer|
|
39
39
|
# statement = RDF::Statement.new(
|
40
|
-
# RDF::URI("
|
40
|
+
# RDF::URI("https://rubygems.org/gems/rdf"),
|
41
41
|
# RDF::URI("http://purl.org/dc/terms/creator"),
|
42
42
|
# nil)
|
43
43
|
# writer << statement
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-04-
|
13
|
+
date: 2019-04-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: link_header
|
@@ -278,10 +278,11 @@ files:
|
|
278
278
|
- lib/rdf/vocab/xsd.rb
|
279
279
|
- lib/rdf/vocabulary.rb
|
280
280
|
- lib/rdf/writer.rb
|
281
|
-
homepage:
|
281
|
+
homepage: https://ruby-rdf.github.com/
|
282
282
|
licenses:
|
283
283
|
- Unlicense
|
284
|
-
metadata:
|
284
|
+
metadata:
|
285
|
+
documentation_uri: https://rubydoc.info/github/ruby-rdf/rdf
|
285
286
|
post_install_message:
|
286
287
|
rdoc_options: []
|
287
288
|
require_paths:
|