dbd 0.0.5 → 0.0.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.
- checksums.yaml +4 -4
- data/Guardfile +3 -2
- data/HISTORY.txt +5 -0
- data/dbd.gemspec +1 -1
- data/docs/stories/013_read_graph_from_CSV.txt +10 -0
- data/lib/dbd.rb +1 -1
- data/lib/dbd/fact.rb +23 -1
- data/lib/dbd/fact/id.rb +3 -3
- data/lib/dbd/fact/subject.rb +3 -3
- data/lib/dbd/graph.rb +25 -4
- data/lib/dbd/provenance_fact.rb +5 -8
- data/lib/dbd/provenance_resource.rb +21 -13
- data/lib/dbd/{rdf.rb → rdf_base.rb} +0 -0
- data/lib/dbd/resource.rb +25 -23
- data/lib/dbd/time_stamp.rb +13 -2
- data/lib/dbd/version.rb +1 -1
- data/spec/factories/fact.rb +23 -0
- data/spec/factories/fact/id.rb +14 -0
- data/spec/factories/fact/subject.rb +18 -0
- data/spec/factories/graph.rb +23 -0
- data/spec/factories/provenance_resource.rb +3 -3
- data/spec/factories/time_stamp.rb +12 -0
- data/spec/lib/dbd/fact/{collection_spec.rb → collection/collection_spec.rb} +0 -0
- data/spec/lib/dbd/fact/factory_spec.rb +82 -0
- data/spec/lib/dbd/fact/id/factory_spec.rb +20 -0
- data/spec/lib/dbd/fact/id/id_spec.rb +27 -0
- data/spec/lib/dbd/fact/methods_spec.rb +117 -0
- data/spec/lib/dbd/fact/new_spec.rb +91 -0
- data/spec/lib/dbd/fact/subject/factory_spec.rb +33 -0
- data/spec/lib/dbd/fact/subject/subject_spec.rb +27 -0
- data/spec/lib/dbd/graph/add_to_graph_spec.rb +139 -0
- data/spec/lib/dbd/graph/factory_spec.rb +33 -0
- data/spec/lib/dbd/graph/from_csv_spec.rb +29 -0
- data/spec/lib/dbd/{graph_spec.rb → graph/to_csv_spec.rb} +0 -120
- data/spec/lib/dbd/helpers/{ordered_set_collection_spec.rb → ordered_set_collection/ordered_set_collection_spec.rb} +0 -0
- data/spec/lib/dbd/helpers/{uuid_spec.rb → uuid/uuid_spec.rb} +0 -0
- data/spec/lib/dbd/performance_spec.rb +3 -1
- data/spec/lib/dbd/provenance_fact/factory_spec.rb +24 -0
- data/spec/lib/dbd/provenance_fact/methods_spec.rb +78 -0
- data/spec/lib/dbd/provenance_fact/new_spec.rb +51 -0
- data/spec/lib/dbd/{provenance_resource_spec.rb → provenance_resource/provenance_resource_spec.rb} +6 -10
- data/spec/lib/dbd/{rdf_base_spec.rb → rdf_base/rdf_base_spec.rb} +0 -0
- data/spec/lib/dbd/{resource_spec.rb → resource/collection_spec.rb} +8 -47
- data/spec/lib/dbd/resource/factory_spec.rb +14 -0
- data/spec/lib/dbd/resource/new_spec.rb +44 -0
- data/spec/lib/dbd/time_stamp/comparisons_spec.rb +64 -0
- data/spec/lib/dbd/time_stamp/factory_spec.rb +17 -0
- data/spec/lib/dbd/time_stamp/methods_spec.rb +37 -0
- data/spec/lib/dbd/time_stamp/new_spec.rb +38 -0
- metadata +66 -29
- data/spec/lib/dbd/fact/id_spec.rb +0 -19
- data/spec/lib/dbd/fact/subject_spec.rb +0 -19
- data/spec/lib/dbd/fact_spec.rb +0 -216
- data/spec/lib/dbd/provenance_fact_spec.rb +0 -120
- data/spec/lib/dbd/time_stamp_spec.rb +0 -115
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Dbd
|
4
|
+
describe ProvenanceFact do
|
5
|
+
|
6
|
+
let(:subject) { described_class.new_subject }
|
7
|
+
let(:id_class) { described_class.new_id.class }
|
8
|
+
|
9
|
+
let(:provenance_fact_1) do
|
10
|
+
Factories::ProvenanceFact.context(subject)
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:provenance_fact_2) do
|
14
|
+
Factories::ProvenanceFact.created_by(subject)
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#new" do
|
18
|
+
it "has a unique id (new_id.class)" do
|
19
|
+
provenance_fact_1.id.should be_a(id_class)
|
20
|
+
end
|
21
|
+
|
22
|
+
it "two provenance_facts have different id" do
|
23
|
+
provenance_fact_1.id.should_not == provenance_fact_2.id
|
24
|
+
end
|
25
|
+
|
26
|
+
it "has nil provenance_subject" do
|
27
|
+
provenance_fact_1.provenance_subject.should be_nil
|
28
|
+
end
|
29
|
+
|
30
|
+
it "has correct subject" do
|
31
|
+
provenance_fact_1.subject.should == subject
|
32
|
+
end
|
33
|
+
|
34
|
+
it "has correct predicate" do
|
35
|
+
provenance_fact_1.predicate.should == "https://data.vandenabeele.com/ontologies/provenance#context"
|
36
|
+
end
|
37
|
+
|
38
|
+
it "has correct object" do
|
39
|
+
provenance_fact_1.object.should == "public"
|
40
|
+
end
|
41
|
+
|
42
|
+
it "raises an ProvenanceError when provenance_subject is present in options hash" do
|
43
|
+
lambda { described_class.new(
|
44
|
+
provenance_subject: described_class.new_subject,
|
45
|
+
predicate: "test",
|
46
|
+
object: "test") } .
|
47
|
+
should raise_error ProvenanceError
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/spec/lib/dbd/{provenance_resource_spec.rb → provenance_resource/provenance_resource_spec.rb}
RENAMED
@@ -15,14 +15,15 @@ module Dbd
|
|
15
15
|
|
16
16
|
describe "with a subject argument" do
|
17
17
|
it "has stored the resource_subject" do
|
18
|
-
described_class.new(subject: provenance_resource_subject).subject.
|
18
|
+
described_class.new(subject: provenance_resource_subject).subject.
|
19
|
+
should == provenance_resource_subject
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
22
23
|
describe "with a provenance_subject argument" do
|
23
24
|
it "raises an ProvenanceError" do
|
24
25
|
lambda{ described_class.new(provenance_subject: provenance_resource_subject) }.
|
25
|
-
should raise_error(
|
26
|
+
should raise_error(ArgumentError)
|
26
27
|
end
|
27
28
|
end
|
28
29
|
end
|
@@ -46,13 +47,13 @@ module Dbd
|
|
46
47
|
let(:provenance_fact_context_with_correct_subject) { Factories::ProvenanceFact.context(provenance_resource_subject) }
|
47
48
|
let(:fact_1) { Factories::Fact.fact_1(provenance_resource_subject) }
|
48
49
|
|
49
|
-
describe "
|
50
|
+
describe "adding provenance facts with << " do
|
50
51
|
it "with correct subject it works" do
|
51
52
|
provenance_resource << provenance_fact_context_with_correct_subject
|
52
53
|
provenance_resource.first.subject.should == provenance_resource_subject
|
53
54
|
end
|
54
55
|
|
55
|
-
it "with incorrect subject it raises
|
56
|
+
it "with incorrect subject it raises SetOnceError" do
|
56
57
|
lambda{ provenance_resource << provenance_fact_context_with_incorrect_subject }.
|
57
58
|
should raise_error(RubyPeterV::SetOnceError),
|
58
59
|
"Value of subject was #{provenance_fact_context_with_incorrect_subject.subject}, " \
|
@@ -64,15 +65,10 @@ module Dbd
|
|
64
65
|
provenance_resource.first.subject.should == provenance_resource_subject
|
65
66
|
end
|
66
67
|
|
67
|
-
it "with nil (=correct) provenance_subject" do
|
68
|
+
it "with nil (=correct) provenance_subject it is a noop" do
|
68
69
|
provenance_resource << provenance_fact_context
|
69
70
|
provenance_resource.first.provenance_subject.should be_nil
|
70
71
|
end
|
71
|
-
|
72
|
-
it "with incorrect provenance_subject it raises ProvenanceError" do
|
73
|
-
lambda{ provenance_resource << fact_1 }.
|
74
|
-
should raise_error ProvenanceError
|
75
|
-
end
|
76
72
|
end
|
77
73
|
end
|
78
74
|
end
|
File without changes
|
@@ -5,46 +5,10 @@ module Dbd
|
|
5
5
|
|
6
6
|
let(:provenance_subject) { Factories::ProvenanceResource.provenance_resource.subject }
|
7
7
|
|
8
|
-
let(:resource)
|
9
|
-
described_class.new(provenance_subject: provenance_subject)
|
10
|
-
end
|
8
|
+
let(:resource) { described_class.new(provenance_subject: provenance_subject) }
|
11
9
|
|
12
10
|
let(:resource_subject) { resource.subject }
|
13
11
|
|
14
|
-
describe ".new_subject" do
|
15
|
-
it "returns a Fact#new_subject" do
|
16
|
-
described_class.new_subject.should be_a(Fact.new_subject.class)
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
describe ".new" do
|
21
|
-
describe "with a provenance_subject argument" do
|
22
|
-
it "has created a subject" do
|
23
|
-
resource.subject.should be_a(described_class.new_subject.class)
|
24
|
-
end
|
25
|
-
|
26
|
-
it "has stored the provenance_subject" do
|
27
|
-
resource.provenance_subject.should == provenance_subject
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
describe "with an explicit subject argument" do
|
32
|
-
it "has stored the given subject" do
|
33
|
-
explicit_subject = described_class.new_subject
|
34
|
-
described_class.new(
|
35
|
-
subject: explicit_subject,
|
36
|
-
provenance_subject: provenance_subject).subject.should == explicit_subject
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
describe "with a nil provenance_subject argument" do
|
41
|
-
it "raises a ProvenanceError" do
|
42
|
-
lambda { described_class.new(provenance_subject: nil) } .
|
43
|
-
should raise_error ProvenanceError
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
12
|
describe "the fact collection" do
|
49
13
|
|
50
14
|
let(:fact_2_with_subject) { Factories::Fact.fact_2_with_subject }
|
@@ -68,6 +32,12 @@ module Dbd
|
|
68
32
|
resource.size.should == 2
|
69
33
|
end
|
70
34
|
|
35
|
+
it "complains if a provenance_subject is added" do
|
36
|
+
lambda{ resource << provenance_fact_context }.should raise_error(
|
37
|
+
ArgumentError,
|
38
|
+
"Trying to add a ProvenanceFact to a Resource.")
|
39
|
+
end
|
40
|
+
|
71
41
|
describe "checks and sets subject :" do
|
72
42
|
describe "adding a fact with subject :" do
|
73
43
|
describe "when the subject of the fact is equal to the resource_subject" do
|
@@ -138,9 +108,7 @@ module Dbd
|
|
138
108
|
resource << fact_with_resource_subject
|
139
109
|
end
|
140
110
|
|
141
|
-
let(:fact_in_resource)
|
142
|
-
resource.single
|
143
|
-
end
|
111
|
+
let(:fact_in_resource) { resource.single }
|
144
112
|
|
145
113
|
it "inserts the same instance" do
|
146
114
|
fact_in_resource.should be_equal(fact_with_resource_subject)
|
@@ -150,15 +118,8 @@ module Dbd
|
|
150
118
|
fact_in_resource.provenance_subject.should == provenance_subject
|
151
119
|
end
|
152
120
|
end
|
153
|
-
|
154
121
|
end
|
155
122
|
end
|
156
123
|
end
|
157
|
-
|
158
|
-
describe "Factories::Resource" do
|
159
|
-
it ".facts_resource works" do
|
160
|
-
Factories::Resource.facts_resource(provenance_subject)
|
161
|
-
end
|
162
|
-
end
|
163
124
|
end
|
164
125
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Dbd
|
4
|
+
describe Resource do
|
5
|
+
|
6
|
+
let(:provenance_subject) { Factories::ProvenanceResource.provenance_resource.subject }
|
7
|
+
|
8
|
+
describe "Factories::Resource" do
|
9
|
+
it ".facts_resource works" do
|
10
|
+
Factories::Resource.facts_resource(provenance_subject)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Dbd
|
4
|
+
describe Resource do
|
5
|
+
|
6
|
+
let(:provenance_subject) { Factories::ProvenanceResource.provenance_resource.subject }
|
7
|
+
|
8
|
+
let(:resource) { described_class.new(provenance_subject: provenance_subject) }
|
9
|
+
|
10
|
+
describe ".new_subject" do
|
11
|
+
it "returns a Fact#new_subject" do
|
12
|
+
described_class.new_subject.should be_a(Fact.new_subject.class)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe ".new" do
|
17
|
+
describe "with a provenance_subject argument" do
|
18
|
+
it "has created a subject" do
|
19
|
+
resource.subject.should be_a(described_class.new_subject.class)
|
20
|
+
end
|
21
|
+
|
22
|
+
it "has stored the provenance_subject" do
|
23
|
+
resource.provenance_subject.should == provenance_subject
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe "with an explicit subject argument" do
|
28
|
+
it "has stored the given subject" do
|
29
|
+
explicit_subject = described_class.new_subject
|
30
|
+
described_class.new(
|
31
|
+
subject: explicit_subject,
|
32
|
+
provenance_subject: provenance_subject).subject.should == explicit_subject
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe "with a nil provenance_subject argument" do
|
37
|
+
it "raises a ProvenanceError" do
|
38
|
+
lambda { described_class.new(provenance_subject: nil) } .
|
39
|
+
should raise_error ProvenanceError
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Dbd
|
4
|
+
describe TimeStamp do
|
5
|
+
|
6
|
+
let(:time_stamp_0) { described_class.new(time: Time.new(2013,5,18,12,0,0)) }
|
7
|
+
let(:time_stamp_1) { described_class.new(time: Time.new(2013,5,18,12,0,0)) }
|
8
|
+
let(:time_stamp_2) { described_class.new(time: Time.new(2013,5,18,12,0,1)) }
|
9
|
+
|
10
|
+
describe "==" do
|
11
|
+
it "should be ==" do
|
12
|
+
time_stamp_0.should == time_stamp_1
|
13
|
+
end
|
14
|
+
|
15
|
+
it "hash should also be equal" do
|
16
|
+
time_stamp_0.hash.should == time_stamp_1.hash
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe ">" do
|
21
|
+
it "is true if time_stamp is really larger" do
|
22
|
+
time_stamp_2.should > time_stamp_1
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "<" do
|
27
|
+
it "is true if time_stamp is really smaller" do
|
28
|
+
time_stamp_1.should < time_stamp_2
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe ">=" do
|
33
|
+
it "is true if time_stamp_2 is really larger" do
|
34
|
+
time_stamp_2.should >= time_stamp_1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe "<=" do
|
39
|
+
it "is true if time_stamp_1 is really smaller" do
|
40
|
+
time_stamp_1.should <= time_stamp_2
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe "+" do
|
45
|
+
it "returns a larger time_stamp" do
|
46
|
+
(subject + 1).should > subject
|
47
|
+
end
|
48
|
+
|
49
|
+
it "sees a difference of 1 nanosecond" do
|
50
|
+
(subject + Rational('1/1000_000_000')).should > subject
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe "-" do
|
55
|
+
it "returns the time difference" do
|
56
|
+
((subject + 1) - subject).should == 1
|
57
|
+
end
|
58
|
+
|
59
|
+
it "sees a difference of 1 nanosecond" do
|
60
|
+
((subject + Rational('1/1000_000_000')) - subject).should == Rational('1/1_000_000_000')
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Dbd
|
4
|
+
describe TimeStamp do
|
5
|
+
let(:fixed_time_stamp) { Factories::TimeStamp.fixed_time_stamp }
|
6
|
+
|
7
|
+
describe "factory works" do
|
8
|
+
it "is a TimeStamp" do
|
9
|
+
fixed_time_stamp.should be_a(TimeStamp)
|
10
|
+
end
|
11
|
+
|
12
|
+
it "has an exact time" do
|
13
|
+
fixed_time_stamp.to_s.should == "2013-06-17 21:55:09.967653012 UTC"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Dbd
|
4
|
+
describe TimeStamp do
|
5
|
+
|
6
|
+
let(:a_time_stamp) { "2013-05-16 23:52:38.123456789 UTC" }
|
7
|
+
|
8
|
+
describe ".time_format_regexp" do
|
9
|
+
it "matches an example string" do
|
10
|
+
a_time_stamp.should match(described_class.to_s_regexp)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe "#time to allow comparison" do
|
15
|
+
it "responds with a time" do
|
16
|
+
described_class.new.time.should be_a(Time)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe "#to_s" do
|
21
|
+
it "returns a Time format string" do
|
22
|
+
subject.to_s.should match(described_class.to_s_regexp)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe ".from_s" do
|
27
|
+
it "returns a TimeStamp" do
|
28
|
+
described_class.from_s(a_time_stamp).should be_a(described_class)
|
29
|
+
end
|
30
|
+
|
31
|
+
it "round trips with to_s" do
|
32
|
+
time_stamp = described_class.from_s(a_time_stamp)
|
33
|
+
time_stamp.to_s.should == a_time_stamp
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Dbd
|
4
|
+
describe TimeStamp do
|
5
|
+
describe ".new" do
|
6
|
+
|
7
|
+
let(:time) { Time.now.utc }
|
8
|
+
|
9
|
+
before(:each) do
|
10
|
+
time
|
11
|
+
Time.stub(:now).and_return(time)
|
12
|
+
end
|
13
|
+
|
14
|
+
it "creates a new (random) time_stamp" do
|
15
|
+
subject # should_not raise_error
|
16
|
+
end
|
17
|
+
|
18
|
+
it "with :time option, sets that to time" do
|
19
|
+
near_future = time + 100
|
20
|
+
time_stamp = described_class.new(time: near_future)
|
21
|
+
time_stamp.time.should == near_future
|
22
|
+
end
|
23
|
+
|
24
|
+
it "with :larger_than, sets a time that is strictly and slightly larger than this" do
|
25
|
+
larger_than = described_class.new(time: time + Rational('500/1000_000')) # 0.5 ms
|
26
|
+
time_stamp = described_class.new(larger_than: larger_than)
|
27
|
+
time_stamp.time.should > larger_than.time
|
28
|
+
(time_stamp.time - larger_than.time).should < Rational('1/1000_000') # 1 us
|
29
|
+
end
|
30
|
+
|
31
|
+
it "without :larger_than adds some random time to the generated time" do
|
32
|
+
time_stamp = described_class.new
|
33
|
+
time_stamp.time.should > time
|
34
|
+
(time_stamp.time - time).should < Rational('1/1000_000') # 1 us
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dbd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Vandenabeele
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - '>='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.0.
|
131
|
+
version: 0.0.9
|
132
132
|
type: :runtime
|
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: 0.0.
|
138
|
+
version: 0.0.9
|
139
139
|
description: A data store that (almost) never forgets
|
140
140
|
email:
|
141
141
|
- peter@vandenabeele.com
|
@@ -167,6 +167,7 @@ files:
|
|
167
167
|
- docs/stories/010_time_class.txt
|
168
168
|
- docs/stories/011_store_resource_in_graph.txt
|
169
169
|
- docs/stories/012_provenance_fact_properties_from_provenance_ontology.txt
|
170
|
+
- docs/stories/013_read_graph_from_CSV.txt
|
170
171
|
- docs/test.rb
|
171
172
|
- lib/dbd.rb
|
172
173
|
- lib/dbd/errors.rb
|
@@ -179,7 +180,7 @@ files:
|
|
179
180
|
- lib/dbd/helpers/uuid.rb
|
180
181
|
- lib/dbd/provenance_fact.rb
|
181
182
|
- lib/dbd/provenance_resource.rb
|
182
|
-
- lib/dbd/
|
183
|
+
- lib/dbd/rdf_base.rb
|
183
184
|
- lib/dbd/repo.rb
|
184
185
|
- lib/dbd/repo/neo4j_repo.rb
|
185
186
|
- lib/dbd/repo/neo4j_repo/base.rb
|
@@ -187,24 +188,42 @@ files:
|
|
187
188
|
- lib/dbd/time_stamp.rb
|
188
189
|
- lib/dbd/version.rb
|
189
190
|
- spec/factories/fact.rb
|
191
|
+
- spec/factories/fact/id.rb
|
192
|
+
- spec/factories/fact/subject.rb
|
193
|
+
- spec/factories/graph.rb
|
190
194
|
- spec/factories/provenance_fact.rb
|
191
195
|
- spec/factories/provenance_resource.rb
|
192
196
|
- spec/factories/resource.rb
|
193
|
-
- spec/
|
194
|
-
- spec/lib/dbd/fact/
|
195
|
-
- spec/lib/dbd/fact/
|
196
|
-
- spec/lib/dbd/
|
197
|
-
- spec/lib/dbd/
|
198
|
-
- spec/lib/dbd/
|
199
|
-
- spec/lib/dbd/
|
197
|
+
- spec/factories/time_stamp.rb
|
198
|
+
- spec/lib/dbd/fact/collection/collection_spec.rb
|
199
|
+
- spec/lib/dbd/fact/factory_spec.rb
|
200
|
+
- spec/lib/dbd/fact/id/factory_spec.rb
|
201
|
+
- spec/lib/dbd/fact/id/id_spec.rb
|
202
|
+
- spec/lib/dbd/fact/methods_spec.rb
|
203
|
+
- spec/lib/dbd/fact/new_spec.rb
|
204
|
+
- spec/lib/dbd/fact/subject/factory_spec.rb
|
205
|
+
- spec/lib/dbd/fact/subject/subject_spec.rb
|
206
|
+
- spec/lib/dbd/graph/add_to_graph_spec.rb
|
207
|
+
- spec/lib/dbd/graph/factory_spec.rb
|
208
|
+
- spec/lib/dbd/graph/from_csv_spec.rb
|
209
|
+
- spec/lib/dbd/graph/to_csv_spec.rb
|
210
|
+
- spec/lib/dbd/helpers/ordered_set_collection/ordered_set_collection_spec.rb
|
211
|
+
- spec/lib/dbd/helpers/uuid/uuid_spec.rb
|
200
212
|
- spec/lib/dbd/performance_spec.rb
|
201
|
-
- spec/lib/dbd/
|
202
|
-
- spec/lib/dbd/
|
203
|
-
- spec/lib/dbd/
|
213
|
+
- spec/lib/dbd/provenance_fact/factory_spec.rb
|
214
|
+
- spec/lib/dbd/provenance_fact/methods_spec.rb
|
215
|
+
- spec/lib/dbd/provenance_fact/new_spec.rb
|
216
|
+
- spec/lib/dbd/provenance_resource/provenance_resource_spec.rb
|
217
|
+
- spec/lib/dbd/rdf_base/rdf_base_spec.rb
|
204
218
|
- spec/lib/dbd/repo/neo4j_repo/base_spec.rb
|
205
219
|
- spec/lib/dbd/repo/neo4j_repo/performance_spec.rb
|
206
|
-
- spec/lib/dbd/
|
207
|
-
- spec/lib/dbd/
|
220
|
+
- spec/lib/dbd/resource/collection_spec.rb
|
221
|
+
- spec/lib/dbd/resource/factory_spec.rb
|
222
|
+
- spec/lib/dbd/resource/new_spec.rb
|
223
|
+
- spec/lib/dbd/time_stamp/comparisons_spec.rb
|
224
|
+
- spec/lib/dbd/time_stamp/factory_spec.rb
|
225
|
+
- spec/lib/dbd/time_stamp/methods_spec.rb
|
226
|
+
- spec/lib/dbd/time_stamp/new_spec.rb
|
208
227
|
- spec/spec_helper.rb
|
209
228
|
homepage: ''
|
210
229
|
licenses:
|
@@ -232,23 +251,41 @@ specification_version: 4
|
|
232
251
|
summary: A data store that (almost) never forgets
|
233
252
|
test_files:
|
234
253
|
- spec/factories/fact.rb
|
254
|
+
- spec/factories/fact/id.rb
|
255
|
+
- spec/factories/fact/subject.rb
|
256
|
+
- spec/factories/graph.rb
|
235
257
|
- spec/factories/provenance_fact.rb
|
236
258
|
- spec/factories/provenance_resource.rb
|
237
259
|
- spec/factories/resource.rb
|
238
|
-
- spec/
|
239
|
-
- spec/lib/dbd/fact/
|
240
|
-
- spec/lib/dbd/fact/
|
241
|
-
- spec/lib/dbd/
|
242
|
-
- spec/lib/dbd/
|
243
|
-
- spec/lib/dbd/
|
244
|
-
- spec/lib/dbd/
|
260
|
+
- spec/factories/time_stamp.rb
|
261
|
+
- spec/lib/dbd/fact/collection/collection_spec.rb
|
262
|
+
- spec/lib/dbd/fact/factory_spec.rb
|
263
|
+
- spec/lib/dbd/fact/id/factory_spec.rb
|
264
|
+
- spec/lib/dbd/fact/id/id_spec.rb
|
265
|
+
- spec/lib/dbd/fact/methods_spec.rb
|
266
|
+
- spec/lib/dbd/fact/new_spec.rb
|
267
|
+
- spec/lib/dbd/fact/subject/factory_spec.rb
|
268
|
+
- spec/lib/dbd/fact/subject/subject_spec.rb
|
269
|
+
- spec/lib/dbd/graph/add_to_graph_spec.rb
|
270
|
+
- spec/lib/dbd/graph/factory_spec.rb
|
271
|
+
- spec/lib/dbd/graph/from_csv_spec.rb
|
272
|
+
- spec/lib/dbd/graph/to_csv_spec.rb
|
273
|
+
- spec/lib/dbd/helpers/ordered_set_collection/ordered_set_collection_spec.rb
|
274
|
+
- spec/lib/dbd/helpers/uuid/uuid_spec.rb
|
245
275
|
- spec/lib/dbd/performance_spec.rb
|
246
|
-
- spec/lib/dbd/
|
247
|
-
- spec/lib/dbd/
|
248
|
-
- spec/lib/dbd/
|
276
|
+
- spec/lib/dbd/provenance_fact/factory_spec.rb
|
277
|
+
- spec/lib/dbd/provenance_fact/methods_spec.rb
|
278
|
+
- spec/lib/dbd/provenance_fact/new_spec.rb
|
279
|
+
- spec/lib/dbd/provenance_resource/provenance_resource_spec.rb
|
280
|
+
- spec/lib/dbd/rdf_base/rdf_base_spec.rb
|
249
281
|
- spec/lib/dbd/repo/neo4j_repo/base_spec.rb
|
250
282
|
- spec/lib/dbd/repo/neo4j_repo/performance_spec.rb
|
251
|
-
- spec/lib/dbd/
|
252
|
-
- spec/lib/dbd/
|
283
|
+
- spec/lib/dbd/resource/collection_spec.rb
|
284
|
+
- spec/lib/dbd/resource/factory_spec.rb
|
285
|
+
- spec/lib/dbd/resource/new_spec.rb
|
286
|
+
- spec/lib/dbd/time_stamp/comparisons_spec.rb
|
287
|
+
- spec/lib/dbd/time_stamp/factory_spec.rb
|
288
|
+
- spec/lib/dbd/time_stamp/methods_spec.rb
|
289
|
+
- spec/lib/dbd/time_stamp/new_spec.rb
|
253
290
|
- spec/spec_helper.rb
|
254
291
|
has_rdoc:
|