openlogic-rdf 0.3.6
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.
- data/AUTHORS +3 -0
- data/CREDITS +9 -0
- data/README +361 -0
- data/UNLICENSE +24 -0
- data/VERSION +1 -0
- data/bin/rdf +18 -0
- data/etc/doap.nt +62 -0
- data/lib/df.rb +1 -0
- data/lib/rdf/cli.rb +200 -0
- data/lib/rdf/format.rb +383 -0
- data/lib/rdf/mixin/countable.rb +39 -0
- data/lib/rdf/mixin/durable.rb +31 -0
- data/lib/rdf/mixin/enumerable.rb +637 -0
- data/lib/rdf/mixin/indexable.rb +26 -0
- data/lib/rdf/mixin/inferable.rb +5 -0
- data/lib/rdf/mixin/mutable.rb +191 -0
- data/lib/rdf/mixin/queryable.rb +265 -0
- data/lib/rdf/mixin/readable.rb +15 -0
- data/lib/rdf/mixin/type_check.rb +21 -0
- data/lib/rdf/mixin/writable.rb +152 -0
- data/lib/rdf/model/graph.rb +263 -0
- data/lib/rdf/model/list.rb +731 -0
- data/lib/rdf/model/literal/boolean.rb +121 -0
- data/lib/rdf/model/literal/date.rb +73 -0
- data/lib/rdf/model/literal/datetime.rb +72 -0
- data/lib/rdf/model/literal/decimal.rb +86 -0
- data/lib/rdf/model/literal/double.rb +189 -0
- data/lib/rdf/model/literal/integer.rb +126 -0
- data/lib/rdf/model/literal/numeric.rb +184 -0
- data/lib/rdf/model/literal/time.rb +87 -0
- data/lib/rdf/model/literal/token.rb +47 -0
- data/lib/rdf/model/literal/xml.rb +39 -0
- data/lib/rdf/model/literal.rb +373 -0
- data/lib/rdf/model/node.rb +156 -0
- data/lib/rdf/model/resource.rb +28 -0
- data/lib/rdf/model/statement.rb +296 -0
- data/lib/rdf/model/term.rb +77 -0
- data/lib/rdf/model/uri.rb +570 -0
- data/lib/rdf/model/value.rb +133 -0
- data/lib/rdf/nquads.rb +152 -0
- data/lib/rdf/ntriples/format.rb +48 -0
- data/lib/rdf/ntriples/reader.rb +239 -0
- data/lib/rdf/ntriples/writer.rb +219 -0
- data/lib/rdf/ntriples.rb +104 -0
- data/lib/rdf/query/pattern.rb +329 -0
- data/lib/rdf/query/solution.rb +252 -0
- data/lib/rdf/query/solutions.rb +237 -0
- data/lib/rdf/query/variable.rb +221 -0
- data/lib/rdf/query.rb +404 -0
- data/lib/rdf/reader.rb +511 -0
- data/lib/rdf/repository.rb +389 -0
- data/lib/rdf/transaction.rb +161 -0
- data/lib/rdf/util/aliasing.rb +63 -0
- data/lib/rdf/util/cache.rb +139 -0
- data/lib/rdf/util/file.rb +38 -0
- data/lib/rdf/util/uuid.rb +36 -0
- data/lib/rdf/util.rb +6 -0
- data/lib/rdf/version.rb +19 -0
- data/lib/rdf/vocab/cc.rb +18 -0
- data/lib/rdf/vocab/cert.rb +13 -0
- data/lib/rdf/vocab/dc.rb +63 -0
- data/lib/rdf/vocab/dc11.rb +23 -0
- data/lib/rdf/vocab/doap.rb +45 -0
- data/lib/rdf/vocab/exif.rb +168 -0
- data/lib/rdf/vocab/foaf.rb +69 -0
- data/lib/rdf/vocab/geo.rb +13 -0
- data/lib/rdf/vocab/http.rb +26 -0
- data/lib/rdf/vocab/owl.rb +59 -0
- data/lib/rdf/vocab/rdfs.rb +17 -0
- data/lib/rdf/vocab/rsa.rb +12 -0
- data/lib/rdf/vocab/rss.rb +14 -0
- data/lib/rdf/vocab/sioc.rb +93 -0
- data/lib/rdf/vocab/skos.rb +36 -0
- data/lib/rdf/vocab/wot.rb +21 -0
- data/lib/rdf/vocab/xhtml.rb +9 -0
- data/lib/rdf/vocab/xsd.rb +58 -0
- data/lib/rdf/vocab.rb +215 -0
- data/lib/rdf/writer.rb +475 -0
- data/lib/rdf.rb +192 -0
- metadata +173 -0
data/AUTHORS
ADDED
data/CREDITS
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
* Călin Ardelean <calinucs@gmail.com>
|
2
|
+
* Danny Gagne <danny@dannygagne.com>
|
3
|
+
* Joey Geiger <jgeiger@gmail.com>
|
4
|
+
* Fumihiro Kato <fumi@fumi.me>
|
5
|
+
* Naoki Kawamukai <kna@slis.tsukuba.ac.jp>
|
6
|
+
* Hellekin O. Wolf <hellekin@cepheide.org>
|
7
|
+
* John Fieber <jrf@ursamaris.org>
|
8
|
+
* Keita Urashima <ursm@ursm.jp>
|
9
|
+
* Pius Uzamere <pius@alum.mit.edu>
|
data/README
ADDED
@@ -0,0 +1,361 @@
|
|
1
|
+
RDF.rb: Linked Data for Ruby
|
2
|
+
============================
|
3
|
+
|
4
|
+
This is a pure-Ruby library for working with [Resource Description Framework
|
5
|
+
(RDF)][RDF] data.
|
6
|
+
|
7
|
+
* <http://github.com/bendiken/rdf>
|
8
|
+
* <http://blog.datagraph.org/2010/12/rdf-for-ruby>
|
9
|
+
* <http://blog.datagraph.org/2010/03/rdf-for-ruby>
|
10
|
+
* <http://blog.datagraph.org/2010/04/parsing-rdf-with-ruby>
|
11
|
+
* <http://blog.datagraph.org/2010/04/rdf-repository-howto>
|
12
|
+
|
13
|
+
Features
|
14
|
+
--------
|
15
|
+
|
16
|
+
* 100% pure Ruby with minimal dependencies and no bloat.
|
17
|
+
* 100% free and unencumbered [public domain](http://unlicense.org/) software.
|
18
|
+
* Provides a clean, well-designed RDF object model and related APIs.
|
19
|
+
* Supports parsing and serializing N-Triples out of the box, with more
|
20
|
+
serialization format support available through add-on plugins.
|
21
|
+
* Includes in-memory graph and repository implementations, with more storage
|
22
|
+
adapter support available through add-on plugins.
|
23
|
+
* Implements basic graph pattern (BGP) query evaluation.
|
24
|
+
* Plays nice with others: entirely contained in the `RDF` module, and does
|
25
|
+
not modify any of Ruby's core classes or standard library.
|
26
|
+
* Based entirely on Ruby's autoloading, meaning that you can generally make
|
27
|
+
use of any one part of the library without needing to load up the rest.
|
28
|
+
* Compatible with Ruby 1.8.7+, Ruby 1.9.x, and JRuby 1.4/1.5.
|
29
|
+
* Compatible with older Ruby versions with the help of the [Backports][] gem.
|
30
|
+
* Performs auto-detection of input to select appropriate Reader class if one
|
31
|
+
cannot be determined from file characteristics.
|
32
|
+
|
33
|
+
Tutorials
|
34
|
+
---------
|
35
|
+
|
36
|
+
* [Getting data from the Semantic Web using Ruby and RDF.rb](http://semanticweb.org/wiki/Getting_data_from_the_Semantic_Web_%28Ruby%29)
|
37
|
+
* [Using RDF.rb and Spira to process RDF data from the British Ordnance Survey](http://stephenpope.co.uk/?p=85)
|
38
|
+
* [Getting started with RDF and SPARQL using 4store and RDF.rb](http://www.jenitennison.com/blog/node/152)
|
39
|
+
|
40
|
+
Command Line
|
41
|
+
------------
|
42
|
+
When installed, RDF.rb includes a `rdf` shell script which acts as a wrapper to perform a number of different
|
43
|
+
operations on RDF files using available readers and writers.
|
44
|
+
|
45
|
+
* `serialize`: Parse an RDF input and re-serializing to N-Triples or another available format using `--output-format` option.
|
46
|
+
* `count`: Parse and RDF input and count the number of statements.
|
47
|
+
* `subjects`: Returns unique subjects from parsed input.
|
48
|
+
* `objects`: Returns unique objects from parsed input.
|
49
|
+
* `predicates`: Returns unique objects from parsed input.
|
50
|
+
|
51
|
+
Examples
|
52
|
+
--------
|
53
|
+
|
54
|
+
require 'rdf'
|
55
|
+
include RDF
|
56
|
+
|
57
|
+
### Writing RDF data using the N-Triples format
|
58
|
+
|
59
|
+
require 'rdf/ntriples'
|
60
|
+
graph = RDF::Graph.new << [:hello, RDF::DC.title, "Hello, world!"]
|
61
|
+
graph.dump(:ntriples)
|
62
|
+
|
63
|
+
or
|
64
|
+
|
65
|
+
RDF::Writer.open("hello.nt") { |writer| writer << graph }
|
66
|
+
|
67
|
+
### Reading RDF data in the N-Triples format
|
68
|
+
|
69
|
+
require 'rdf/ntriples'
|
70
|
+
graph = RDF::Graph.load("http://rdf.rubyforge.org/doap.nt")
|
71
|
+
|
72
|
+
or
|
73
|
+
|
74
|
+
RDF::Reader.open("http://rdf.rubyforge.org/doap.nt") do |reader|
|
75
|
+
reader.each_statement do |statement|
|
76
|
+
puts statement.inspect
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
### Reading RDF data in other formats
|
81
|
+
{RDF::Reader.open} and {RDF::Repository.load} use a number of mechanisms to determine the appropriate reader
|
82
|
+
to use when loading a file. The specific format to use can be forced using, e.g. `:format => :ntriples`
|
83
|
+
option where the specific format symbol is determined by the available readers. Both also use
|
84
|
+
MimeType or file extension, where available.
|
85
|
+
|
86
|
+
require 'linkeddata'
|
87
|
+
|
88
|
+
graph = RDF::Graph.load("etc/doap.nq", :format => :nquads)
|
89
|
+
|
90
|
+
A specific sub-type of Reader can also be invoked directly:
|
91
|
+
|
92
|
+
require 'rdf/nquads'
|
93
|
+
|
94
|
+
RDF::NQuads::Reader.open("http://rdf.rubyforge.org/doap.nq") do |reader|
|
95
|
+
reader.each_statement do |statement|
|
96
|
+
puts statement.inspect
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
Reader/Writer implementations may override {RDF::Format.detect}, which takes a small sample if input
|
101
|
+
and return a boolean indicating if it matches that specific format. In the case that a format cannot
|
102
|
+
be detected from filename or other options, or that more than one format is identified,
|
103
|
+
{RDF::Format.for} will query each loaded format by invoking it's `detect` method, and the first successful
|
104
|
+
match will be used to read the input.
|
105
|
+
|
106
|
+
### Writing RDF data using other formats
|
107
|
+
{RDF::Writer.open}, {RDF::Enumerable#dump}, {RDF::Writer.dump} take similar options to {RDF::Reader.open} to determine the
|
108
|
+
appropriate writer to use.
|
109
|
+
|
110
|
+
require 'linkeddata'
|
111
|
+
|
112
|
+
RDF::Writer.open("hello.nq", :format => :nquads) do |writer|
|
113
|
+
writer << RDF::Repository.new do |repo|
|
114
|
+
repo << RDF::Statement.new(:hello, RDF::DC.title, "Hello, world!", :context => RDF::URI("context"))
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
A specific sub-type of Writer can also be invoked directly:
|
119
|
+
|
120
|
+
graph.dump(:nq)
|
121
|
+
|
122
|
+
### Querying RDF data using basic graph patterns (BGPs)
|
123
|
+
|
124
|
+
require 'rdf/ntriples'
|
125
|
+
|
126
|
+
graph = RDF::Graph.load("http://rdf.rubyforge.org/doap.nt")
|
127
|
+
query = RDF::Query.new({
|
128
|
+
:person => {
|
129
|
+
RDF.type => FOAF.Person,
|
130
|
+
FOAF.name => :name,
|
131
|
+
FOAF.mbox => :email,
|
132
|
+
}
|
133
|
+
})
|
134
|
+
|
135
|
+
query.execute(graph).each do |solution|
|
136
|
+
puts "name=#{solution.name} email=#{solution.email}"
|
137
|
+
end
|
138
|
+
|
139
|
+
A separate [SPARQL][SPARQL doc] gem builds on basic BGP support to provide full support for [SPARQL 1.0](http://www.w3.org/TR/rdf-sparql-query/) queries.
|
140
|
+
|
141
|
+
### Using pre-defined RDF vocabularies
|
142
|
+
|
143
|
+
DC.title #=> RDF::URI("http://purl.org/dc/terms/title")
|
144
|
+
FOAF.knows #=> RDF::URI("http://xmlns.com/foaf/0.1/knows")
|
145
|
+
RDF.type #=> RDF::URI("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")
|
146
|
+
RDFS.seeAlso #=> RDF::URI("http://www.w3.org/2000/01/rdf-schema#seeAlso")
|
147
|
+
RSS.title #=> RDF::URI("http://purl.org/rss/1.0/title")
|
148
|
+
OWL.sameAs #=> RDF::URI("http://www.w3.org/2002/07/owl#sameAs")
|
149
|
+
XSD.dateTime #=> RDF::URI("http://www.w3.org/2001/XMLSchema#dateTime")
|
150
|
+
|
151
|
+
### Using ad-hoc RDF vocabularies
|
152
|
+
|
153
|
+
foaf = RDF::Vocabulary.new("http://xmlns.com/foaf/0.1/")
|
154
|
+
foaf.knows #=> RDF::URI("http://xmlns.com/foaf/0.1/knows")
|
155
|
+
foaf[:name] #=> RDF::URI("http://xmlns.com/foaf/0.1/name")
|
156
|
+
foaf['mbox'] #=> RDF::URI("http://xmlns.com/foaf/0.1/mbox")
|
157
|
+
|
158
|
+
Documentation
|
159
|
+
-------------
|
160
|
+
|
161
|
+
<http://rdf.rubyforge.org/>
|
162
|
+
|
163
|
+
### RDF Object Model
|
164
|
+
|
165
|
+
<http://blog.datagraph.org/2010/03/rdf-for-ruby>
|
166
|
+
|
167
|
+
* {RDF::Value}
|
168
|
+
* {RDF::Term}
|
169
|
+
* {RDF::Literal}
|
170
|
+
* {RDF::Literal::Boolean}
|
171
|
+
* {RDF::Literal::Date}
|
172
|
+
* {RDF::Literal::DateTime}
|
173
|
+
* {RDF::Literal::Decimal}
|
174
|
+
* {RDF::Literal::Double}
|
175
|
+
* {RDF::Literal::Integer}
|
176
|
+
* {RDF::Literal::Time}
|
177
|
+
* [RDF::XSD](http://rubydoc.info/github/gkellogg/rdf-xsd/master/frames) (plugin)
|
178
|
+
* {RDF::Resource}
|
179
|
+
* {RDF::List}
|
180
|
+
* {RDF::Node}
|
181
|
+
* {RDF::URI}
|
182
|
+
* {RDF::Graph}
|
183
|
+
* {RDF::Statement}
|
184
|
+
|
185
|
+
### RDF Serialization
|
186
|
+
|
187
|
+
<http://blog.datagraph.org/2010/04/parsing-rdf-with-ruby>
|
188
|
+
|
189
|
+
* {RDF::Format}
|
190
|
+
* {RDF::Reader}
|
191
|
+
* {RDF::Writer}
|
192
|
+
|
193
|
+
### RDF Serialization Formats
|
194
|
+
|
195
|
+
The following is a partial list of RDF formats implemented either natively, or through the inclusion of
|
196
|
+
other gems:
|
197
|
+
|
198
|
+
* {RDF::NTriples}
|
199
|
+
* {RDF::NQuads}
|
200
|
+
* [JSON::LD][JSONLD doc] (plugin)
|
201
|
+
* [RDF::JSON](http://rdf.rubyforge.org/json/) (plugin)
|
202
|
+
* [RDF::Microdata][Microdata doc] (plugin)
|
203
|
+
* [RDF::N3][N3 doc] (plugin)
|
204
|
+
* [RDF::Raptor::RDFXML](http://rdf.rubyforge.org/raptor/) (plugin)
|
205
|
+
* [RDF::Raptor::Turtle](http://rdf.rubyforge.org/raptor/) (plugin)
|
206
|
+
* [RDF::RDFa][RDFa doc] (plugin)
|
207
|
+
* [RDF::RDFXML][RDFXML doc] (plugin)
|
208
|
+
* [RDF::Trix](http://rdf.rubyforge.org/trix/) (plugin)
|
209
|
+
* [RDF::Turtle][Turtle doc] (plugin)
|
210
|
+
|
211
|
+
The meta-gem [LinkedData][LinkedData doc] includes many of these gems.
|
212
|
+
|
213
|
+
### RDF Storage
|
214
|
+
|
215
|
+
<http://blog.datagraph.org/2010/04/rdf-repository-howto>
|
216
|
+
|
217
|
+
* {RDF::Repository}
|
218
|
+
* {RDF::Countable}
|
219
|
+
* {RDF::Enumerable}
|
220
|
+
* {RDF::Indexable}
|
221
|
+
* {RDF::Inferable}
|
222
|
+
* {RDF::Queryable}
|
223
|
+
* {RDF::Mutable}
|
224
|
+
* {RDF::Durable}
|
225
|
+
* {RDF::Transaction}
|
226
|
+
* [RDF::AllegroGraph](http://rubydoc.info/github/emk/rdf-agraph/master/frames) (plugin)
|
227
|
+
* [RDF::Mongo](http://rubydoc.info/github/pius/rdf-mongo/master/frames) (plugin)
|
228
|
+
* [RDF::DataObjects](http://rdf.rubyforge.org/do/) (plugin)
|
229
|
+
* [RDF::Sesame](http://rdf.rubyforge.org/sesame/) (plugin)
|
230
|
+
|
231
|
+
### RDF Querying
|
232
|
+
|
233
|
+
* {RDF::Query}
|
234
|
+
* {RDF::Query::Pattern}
|
235
|
+
* {RDF::Query::Solution}
|
236
|
+
* {RDF::Query::Solutions}
|
237
|
+
* {RDF::Query::Variable}
|
238
|
+
* [SPARQL](http://rubydoc.info/github/gkellogg/sparql/frames) (plugin)
|
239
|
+
|
240
|
+
|
241
|
+
### RDF Vocabularies
|
242
|
+
|
243
|
+
* {RDF} - Resource Description Framework (RDF)
|
244
|
+
* {RDF::CC} - Creative Commons (CC)
|
245
|
+
* {RDF::CERT} - W3 Authentication Certificate (CERT)
|
246
|
+
* {RDF::DC} - Dublin Core (DC)
|
247
|
+
* {RDF::DC11} - Dublin Core 1.1 (DC11) _deprecated_
|
248
|
+
* {RDF::DOAP} - Description of a Project (DOAP)
|
249
|
+
* {RDF::EXIF} - Exchangeable Image File Format (EXIF)
|
250
|
+
* {RDF::FOAF} - Friend of a Friend (FOAF)
|
251
|
+
* {RDF::GEO} - WGS84 Geo Positioning (GEO)
|
252
|
+
* {RDF::HTTP} - Hypertext Transfer Protocol (HTTP)
|
253
|
+
* {RDF::OWL} - Web Ontology Language (OWL)
|
254
|
+
* {RDF::RDFS} - RDF Schema (RDFS)
|
255
|
+
* {RDF::RSA} - W3 RSA Keys (RSA)
|
256
|
+
* {RDF::RSS} - RDF Site Summary (RSS)
|
257
|
+
* {RDF::SIOC} - Semantically-Interlinked Online Communities (SIOC)
|
258
|
+
* {RDF::SKOS} - Simple Knowledge Organization System (SKOS)
|
259
|
+
* {RDF::WOT} - Web of Trust (WOT)
|
260
|
+
* {RDF::XHTML} - Extensible HyperText Markup Language (XHTML)
|
261
|
+
* {RDF::XSD} - XML Schema (XSD)
|
262
|
+
|
263
|
+
Dependencies
|
264
|
+
------------
|
265
|
+
|
266
|
+
* [Ruby](http://ruby-lang.org/) (>= 1.8.7) or (>= 1.8.1 with [Backports][])
|
267
|
+
* [Addressable](http://rubygems.org/gems/addressable) (>= 2.2.0)
|
268
|
+
|
269
|
+
Installation
|
270
|
+
------------
|
271
|
+
|
272
|
+
The recommended installation method is via [RubyGems](http://rubygems.org/).
|
273
|
+
To install the latest official release of RDF.rb, do:
|
274
|
+
|
275
|
+
% [sudo] gem install rdf # Ruby 1.8.7+ or 1.9.x
|
276
|
+
% [sudo] gem install backports rdf # Ruby 1.8.1+
|
277
|
+
|
278
|
+
Download
|
279
|
+
--------
|
280
|
+
|
281
|
+
To get a local working copy of the development repository, do:
|
282
|
+
|
283
|
+
% git clone git://github.com/bendiken/rdf.git
|
284
|
+
|
285
|
+
Alternatively, download the latest development version as a tarball as
|
286
|
+
follows:
|
287
|
+
|
288
|
+
% wget http://github.com/bendiken/rdf/tarball/master
|
289
|
+
|
290
|
+
Resources
|
291
|
+
---------
|
292
|
+
|
293
|
+
* <http://rdf.rubyforge.org/>
|
294
|
+
* <http://github.com/bendiken/rdf>
|
295
|
+
* <http://rubygems.org/gems/rdf>
|
296
|
+
* <http://rubyforge.org/projects/rdf/>
|
297
|
+
* <http://raa.ruby-lang.org/project/rdf/>
|
298
|
+
* <http://www.ohloh.net/p/rdf>
|
299
|
+
|
300
|
+
Mailing List
|
301
|
+
------------
|
302
|
+
|
303
|
+
* <http://lists.w3.org/Archives/Public/public-rdf-ruby/>
|
304
|
+
|
305
|
+
Authors
|
306
|
+
-------
|
307
|
+
|
308
|
+
* [Arto Bendiken](http://github.com/bendiken) - <http://ar.to/>
|
309
|
+
* [Ben Lavender](http://github.com/bhuga) - <http://bhuga.net/>
|
310
|
+
* [Gregg Kellogg](http://github.com/gkellogg) - <http://kellogg-assoc.com/>
|
311
|
+
|
312
|
+
Contributors
|
313
|
+
------------
|
314
|
+
|
315
|
+
* [Călin Ardelean](http://github.com/clnx) - <http://github.com/clnx>
|
316
|
+
* [Danny Gagne](http://github.com/danny) - <http://www.dannygagne.com/>
|
317
|
+
* [Joey Geiger](http://github.com/jgeiger) - <http://github.com/jgeiger>
|
318
|
+
* [Fumihiro Kato](http://github.com/fumi) - <http://fumi.me/>
|
319
|
+
* [Naoki Kawamukai](http://github.com/kna) - <http://github.com/kna>
|
320
|
+
* [Hellekin O. Wolf](http://github.com/hellekin) - <http://hellekin.cepheide.org/>
|
321
|
+
* [John Fieber](http://github.com/jfieber) - <http://github.com/jfieber>
|
322
|
+
* [Keita Urashima](http://github.com/ursm) - <http://ursm.jp/>
|
323
|
+
* [Pius Uzamere](http://github.com/pius) - <http://pius.me/>
|
324
|
+
|
325
|
+
Contributing
|
326
|
+
------------
|
327
|
+
|
328
|
+
* Do your best to adhere to the existing coding conventions and idioms.
|
329
|
+
* Don't use hard tabs, and don't leave trailing whitespace on any line.
|
330
|
+
* Do document every method you add using [YARD][] annotations. Read the
|
331
|
+
[tutorial][YARD-GS] or just look at the existing code for examples.
|
332
|
+
* Don't touch the `.gemspec` or `VERSION` files. If you need to change them,
|
333
|
+
do so on your private branch only.
|
334
|
+
* Do feel free to add yourself to the `CREDITS` file and the
|
335
|
+
corresponding list in the the `README`. Alphabetical order applies.
|
336
|
+
* Don't touch the `AUTHORS` file. If your contributions are significant
|
337
|
+
enough, be assured we will eventually add you in there.
|
338
|
+
* Do note that in order for us to merge any non-trivial changes (as a rule
|
339
|
+
of thumb, additions larger than about 15 lines of code), we need an
|
340
|
+
explicit [public domain dedication][PDD] on record from you.
|
341
|
+
|
342
|
+
License
|
343
|
+
-------
|
344
|
+
|
345
|
+
This is free and unencumbered public domain software. For more information,
|
346
|
+
see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
|
347
|
+
|
348
|
+
[RDF]: http://www.w3.org/RDF/
|
349
|
+
[YARD]: http://yardoc.org/
|
350
|
+
[YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md
|
351
|
+
[PDD]: http://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
|
352
|
+
[Backports]: http://rubygems.org/gems/backports
|
353
|
+
[JSONLD doc]: http://rubydoc.info/github/gkellogg/json-ld/frames
|
354
|
+
[LinkedData doc]: http://rubydoc.info/github/datagraph/linkeddata/master/frames
|
355
|
+
[Microdata doc]: http://rubydoc.info/github/gkellogg/rdf-microdata/frames
|
356
|
+
[N3 doc]: http://rubydoc.info/github/gkellogg/rdf-n3/master/frames
|
357
|
+
[RDFa doc]: http://rubydoc.info/github/gkellogg/rdf-rdfa/master/frames
|
358
|
+
[RDFXML doc]: http://rubydoc.info/github/gkellogg/rdf-rdfxml/master/frames
|
359
|
+
[Turtle doc]: http://rubydoc.info/github/gkellogg/rdf-turtle/master/frames
|
360
|
+
[SPARQL doc]: http://rubydoc.info/github/gkellogg/sparql/frames
|
361
|
+
[SPARQL 1.0]: http://www.w3.org/TR/rdf-sparql-query/
|
data/UNLICENSE
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
2
|
+
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
4
|
+
distribute this software, either in source code form or as a compiled
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
6
|
+
means.
|
7
|
+
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
9
|
+
of this software dedicate any and all copyright interest in the
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
11
|
+
of the public at large and to the detriment of our heirs and
|
12
|
+
successors. We intend this dedication to be an overt act of
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
14
|
+
software under copyright law.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
|
24
|
+
For more information, please refer to <http://unlicense.org/>
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.3.6
|
data/bin/rdf
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
|
3
|
+
require 'rubygems'
|
4
|
+
require 'rdf/cli'
|
5
|
+
|
6
|
+
options = RDF::CLI.options do
|
7
|
+
self.on('-v', '--verbose', 'Enable verbose output. May be given more than once.') do
|
8
|
+
$VERBOSE = true
|
9
|
+
end
|
10
|
+
|
11
|
+
self.on('-V', '--version', 'Display the RDF.rb version and exit.') do
|
12
|
+
puts RDF::VERSION; exit
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
abort options.banner if ARGV.empty? && !options.has_key?(:evaluate)
|
17
|
+
|
18
|
+
RDF::CLI.exec_command(command = ARGV.shift, ARGV, options.options)
|
data/etc/doap.nt
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
<http://rubygems.org/gems/rdf> <http://purl.org/dc/terms/creator> <http://ar.to/#self> .
|
2
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#blog> <http://ar.to/> .
|
3
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#blog> <http://blog.datagraph.org/> .
|
4
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#bug-database> <http://github.com/bendiken/rdf/issues> .
|
5
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#category> <http://dbpedia.org/resource/Resource_Description_Framework> .
|
6
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#category> <http://dbpedia.org/resource/Ruby_(programming_language)> .
|
7
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#created> "2007-10-23" .
|
8
|
+
<http://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 .
|
9
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#developer> <http://ar.to/#self> .
|
10
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#developer> <http://bhuga.net/#ben> .
|
11
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#developer> <http://greggkellogg.net/foaf#me> .
|
12
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#documenter> <http://ar.to/#self> .
|
13
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#documenter> <http://bhuga.net/#ben> .
|
14
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#documenter> <http://greggkellogg.net/foaf#me> .
|
15
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#download-page> <http://rubyforge.org/projects/rdf/> .
|
16
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:genid1 .
|
17
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:genid2 .
|
18
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:genid3 .
|
19
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:genid4 .
|
20
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:genid5 .
|
21
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:genid6 .
|
22
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:genid7 .
|
23
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:genid8 .
|
24
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#helper> _:genid9 .
|
25
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#homepage> <http://rdf.rubyforge.org/> .
|
26
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#license> <http://creativecommons.org/licenses/publicdomain/> .
|
27
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#maintainer> <http://ar.to/#self> .
|
28
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#maintainer> <http://bhuga.net/#ben> .
|
29
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#maintainer> <http://greggkellogg.net/foaf#me> .
|
30
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#name> "RDF.rb" .
|
31
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#platform> "Ruby" .
|
32
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#shortdesc> "A Ruby library for working with Resource Description Framework (RDF) data."@en .
|
33
|
+
<http://rubygems.org/gems/rdf> <http://usefulinc.com/ns/doap#vendor> <http://datagraph.org/> .
|
34
|
+
<http://rubygems.org/gems/rdf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://usefulinc.com/ns/doap#Project> .
|
35
|
+
<http://rubygems.org/gems/rdf> <http://xmlns.com/foaf/0.1/maker> <http://ar.to/#self> .
|
36
|
+
_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
37
|
+
_:genid1 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "274bd18402fc773ffc0606996aa1fb90b603aa29" .
|
38
|
+
_:genid1 <http://xmlns.com/foaf/0.1/name> "C\u0103lin Ardelean" .
|
39
|
+
_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
40
|
+
_:genid2 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "6de43e9cf7de53427fea9765706703e4d957c17b" .
|
41
|
+
_:genid2 <http://xmlns.com/foaf/0.1/name> "Danny Gagne" .
|
42
|
+
_:genid3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
43
|
+
_:genid3 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "f412d743150d7b27b8468d56e69ca147917ea6fc" .
|
44
|
+
_:genid3 <http://xmlns.com/foaf/0.1/name> "Joey Geiger" .
|
45
|
+
_:genid4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
46
|
+
_:genid4 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "d31fdd6af7a279a89bf09fdc9f7c44d9d08bb930" .
|
47
|
+
_:genid4 <http://xmlns.com/foaf/0.1/name> "Fumihiro Kato" .
|
48
|
+
_:genid5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
49
|
+
_:genid5 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "5bdcd8e2af4f5952aaeeffbdd371c41525ec761d" .
|
50
|
+
_:genid5 <http://xmlns.com/foaf/0.1/name> "Naoki Kawamukai" .
|
51
|
+
_:genid6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
52
|
+
_:genid6 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "c69f3255ff0639543cc5edfd8116eac8df16fab8" .
|
53
|
+
_:genid6 <http://xmlns.com/foaf/0.1/name> "Hellekin O. Wolf" .
|
54
|
+
_:genid7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
55
|
+
_:genid7 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "f7653fc1ac0e82ebb32f092389bd5fc728eaae12" .
|
56
|
+
_:genid7 <http://xmlns.com/foaf/0.1/name> "John Fieber" .
|
57
|
+
_:genid8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
58
|
+
_:genid8 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "2b4247b6fd5bb4a1383378f325784318680d5ff9" .
|
59
|
+
_:genid8 <http://xmlns.com/foaf/0.1/name> "Keita Urashima" .
|
60
|
+
_:genid9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
|
61
|
+
_:genid9 <http://xmlns.com/foaf/0.1/mbox_sha1sum> "bedbbf2451e5beb38d59687c0460032aff92cd3c" .
|
62
|
+
_:genid9 <http://xmlns.com/foaf/0.1/name> "Pius Uzamere" .
|
data/lib/df.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'rdf'
|