rdf 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -0
- data/README +4 -1
- data/VERSION +1 -1
- data/etc/doap.nt +24 -0
- data/lib/rdf.rb +6 -1
- data/lib/rdf/mixin/durable.rb +29 -0
- data/lib/rdf/{enumerable.rb → mixin/enumerable.rb} +0 -0
- data/lib/rdf/mixin/mutable.rb +193 -0
- data/lib/rdf/mixin/queryable.rb +39 -0
- data/lib/rdf/mixin/readable.rb +13 -0
- data/lib/rdf/mixin/writable.rb +13 -0
- data/lib/rdf/model/graph.rb +11 -1
- data/lib/rdf/repository.rb +93 -228
- data/lib/rdf/spec.rb +138 -0
- data/lib/rdf/spec/enumerable.rb +248 -0
- data/lib/rdf/spec/repository.rb +77 -0
- data/lib/rdf/version.rb +1 -1
- metadata +13 -13
- data/bin/rdf-count +0 -11
- data/bin/rdf-lengths +0 -9
- data/bin/rdf-objects +0 -9
- data/bin/rdf-predicates +0 -9
- data/bin/rdf-subjects +0 -9
data/lib/rdf/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
8
|
+
- Ben Lavender
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
|
12
|
-
date: 2010-01-
|
13
|
+
date: 2010-01-10 00:00:00 +01:00
|
13
14
|
default_executable: rdf
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
@@ -46,11 +47,6 @@ description: RDF.rb is a pure-Ruby library for working with Resource Description
|
|
46
47
|
email: arto.bendiken@gmail.com
|
47
48
|
executables:
|
48
49
|
- rdf
|
49
|
-
- rdf-count
|
50
|
-
- rdf-lengths
|
51
|
-
- rdf-objects
|
52
|
-
- rdf-predicates
|
53
|
-
- rdf-subjects
|
54
50
|
extensions: []
|
55
51
|
|
56
52
|
extra_rdoc_files: []
|
@@ -61,15 +57,16 @@ files:
|
|
61
57
|
- UNLICENSE
|
62
58
|
- VERSION
|
63
59
|
- bin/rdf
|
64
|
-
-
|
65
|
-
- bin/rdf-lengths
|
66
|
-
- bin/rdf-objects
|
67
|
-
- bin/rdf-predicates
|
68
|
-
- bin/rdf-subjects
|
60
|
+
- etc/doap.nt
|
69
61
|
- lib/df.rb
|
70
62
|
- lib/rdf/cli.rb
|
71
|
-
- lib/rdf/enumerable.rb
|
72
63
|
- lib/rdf/format.rb
|
64
|
+
- lib/rdf/mixin/durable.rb
|
65
|
+
- lib/rdf/mixin/enumerable.rb
|
66
|
+
- lib/rdf/mixin/mutable.rb
|
67
|
+
- lib/rdf/mixin/queryable.rb
|
68
|
+
- lib/rdf/mixin/readable.rb
|
69
|
+
- lib/rdf/mixin/writable.rb
|
73
70
|
- lib/rdf/model/graph.rb
|
74
71
|
- lib/rdf/model/literal.rb
|
75
72
|
- lib/rdf/model/node.rb
|
@@ -87,6 +84,9 @@ files:
|
|
87
84
|
- lib/rdf/query.rb
|
88
85
|
- lib/rdf/reader.rb
|
89
86
|
- lib/rdf/repository.rb
|
87
|
+
- lib/rdf/spec/enumerable.rb
|
88
|
+
- lib/rdf/spec/repository.rb
|
89
|
+
- lib/rdf/spec.rb
|
90
90
|
- lib/rdf/version.rb
|
91
91
|
- lib/rdf/vocab/cc.rb
|
92
92
|
- lib/rdf/vocab/dc.rb
|
data/bin/rdf-count
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
|
3
|
-
require 'rdf/cli'
|
4
|
-
|
5
|
-
abort "Usage: #{RDF::CLI.basename} [files...]" if ARGV.empty?
|
6
|
-
|
7
|
-
count = 0
|
8
|
-
RDF::CLI.each_statement(*ARGV) do |statement|
|
9
|
-
count += 1
|
10
|
-
end
|
11
|
-
puts count
|
data/bin/rdf-lengths
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
|
3
|
-
require 'rdf/cli'
|
4
|
-
|
5
|
-
abort "Usage: #{RDF::CLI.basename} [files...]" if ARGV.empty?
|
6
|
-
|
7
|
-
RDF::CLI.each_statement(*ARGV) do |statement|
|
8
|
-
puts statement.to_s.size
|
9
|
-
end
|
data/bin/rdf-objects
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
|
3
|
-
require 'rdf/cli'
|
4
|
-
|
5
|
-
abort "Usage: #{RDF::CLI.basename} [files...]" if ARGV.empty?
|
6
|
-
|
7
|
-
RDF::CLI.each_statement(*ARGV) do |statement|
|
8
|
-
puts statement.object
|
9
|
-
end
|
data/bin/rdf-predicates
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
|
3
|
-
require 'rdf/cli'
|
4
|
-
|
5
|
-
abort "Usage: #{RDF::CLI.basename} [files...]" if ARGV.empty?
|
6
|
-
|
7
|
-
RDF::CLI.each_statement(*ARGV) do |statement|
|
8
|
-
puts statement.predicate
|
9
|
-
end
|
data/bin/rdf-subjects
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
|
3
|
-
require 'rdf/cli'
|
4
|
-
|
5
|
-
abort "Usage: #{RDF::CLI.basename} [files...]" if ARGV.empty?
|
6
|
-
|
7
|
-
RDF::CLI.each_statement(*ARGV) do |statement|
|
8
|
-
puts statement.subject
|
9
|
-
end
|