activerdf_sesame 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ desc "test and package gem"
14
14
  task :default => [:test, :package]
15
15
 
16
16
  # get @VERSION from commandline
17
- @VERSION = '0.1'
17
+ @VERSION = '0.2'
18
18
  NAME="activerdf_sesame"
19
19
  GEMNAME="#{NAME}-#{@VERSION}.gem"
20
20
 
@@ -3,7 +3,7 @@
3
3
  # License:: LGPL
4
4
 
5
5
  require 'active_rdf'
6
- require 'federation/connection_pool'
6
+ #require 'federation/connection_pool'
7
7
 
8
8
  $activerdflog.info "loading Sesame adapter"
9
9
 
@@ -93,14 +93,14 @@ class SesameAdapter < ActiveRdfAdapter
93
93
 
94
94
  # define the finalizer, which will call close on the sesame triple store
95
95
  # recipie for this, is from: http://wiki.rubygarden.org/Ruby/page/show/GCAndMemoryManagement
96
- ObjectSpace.define_finalizer(self, SesameAdapter.create_finalizer(@db))
96
+ # ObjectSpace.define_finalizer(self, SesameAdapter.create_finalizer(@db))
97
97
  end
98
98
 
99
99
  # TODO: this does not work, but it is also not caused by jruby.
100
- def SesameAdapter.create_finalizer(db)
101
- # we have to call close on the sesame triple store, because otherwise some of the iterators are not closed properly
102
- proc { puts "die"; db.close }
103
- end
100
+ # def SesameAdapter.create_finalizer(db)
101
+ # # we have to call close on the sesame triple store, because otherwise some of the iterators are not closed properly
102
+ # proc { puts "die"; db.close }
103
+ # end
104
104
 
105
105
 
106
106
 
@@ -4,11 +4,8 @@
4
4
 
5
5
  require 'test/unit'
6
6
  require 'rubygems'
7
- require '../../lib/active_rdf.rb'
8
7
  require 'pp'
9
- #require 'active_rdf'
10
- #require 'federation/federation_manager'
11
- #require 'queryengine/query'
8
+ require 'active_rdf'
12
9
 
13
10
 
14
11
  class TestSesameAdapter < Test::Unit::TestCase
@@ -178,7 +175,9 @@ class TestSesameAdapter < Test::Unit::TestCase
178
175
  def test_load
179
176
  adapter = ConnectionPool.add_data_source(:type => :sesame)
180
177
 
181
- adapter.load("/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.nt")
178
+ this_dir = File.dirname(File.expand_path(__FILE__))
179
+
180
+ adapter.load(this_dir + "/eyal-foaf.nt")
182
181
 
183
182
  assert_not_equal 0, adapter.size
184
183
 
@@ -278,24 +277,31 @@ class TestSesameAdapter < Test::Unit::TestCase
278
277
  end
279
278
 
280
279
  def test_persistence_basic
281
- adapter1 = ConnectionPool.add_data_source(:type => :sesame, :location => "/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2")
280
+ this_dir = File.dirname(File.expand_path(__FILE__))
281
+
282
+ adapter1 = ConnectionPool.add_data_source(:type => :sesame,
283
+ :location => this_dir + "/sesame-persistence.s2")
282
284
  assert_instance_of SesameAdapter, adapter1
283
285
  adapter1.close
284
- `rm /home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2`
286
+ File.delete(this_dir + "/sesame-persistence.s2")
285
287
 
286
- adapter1 = ConnectionPool.add_data_source(:type => :sesame, :inferencing => false, :location => "/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2")
288
+ adapter1 = ConnectionPool.add_data_source(:type => :sesame, :inferencing => false,
289
+ :location => this_dir + "/sesame-persistence.s2")
287
290
  assert_instance_of SesameAdapter, adapter1
288
291
  adapter1.close
289
- `rm /home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2`
292
+ File.delete(this_dir + "/sesame-persistence.s2")
290
293
 
291
- adapter2 = ConnectionPool.add_data_source(:type => :sesame, :inferencing => true, :location => "/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2")
294
+ adapter2 = ConnectionPool.add_data_source(:type => :sesame, :inferencing => true,
295
+ :location => this_dir + "/sesame-persistence.s2")
292
296
  assert_instance_of SesameAdapter, adapter2
293
297
  adapter2.close
294
- `rm /home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2`
298
+ File.delete(this_dir + "/sesame-persistence.s2")
295
299
  end
296
300
 
297
301
  def test_persistence_reloading
298
- adapter = ConnectionPool.add_data_source(:type => :sesame, :location => "/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2")
302
+ this_dir = File.dirname(File.expand_path(__FILE__))
303
+ adapter = ConnectionPool.add_data_source(:type => :sesame,
304
+ :location => this_dir + "/sesame-persistence.s2")
299
305
 
300
306
  eyal = RDFS::Resource.new 'http://eyaloren.org'
301
307
  age = RDFS::Resource.new 'foaf:age'
@@ -310,13 +316,15 @@ class TestSesameAdapter < Test::Unit::TestCase
310
316
  adapter.close
311
317
  ConnectionPool.clear
312
318
 
313
- adapter2 = ConnectionPool.add_data_source(:name => :second_one, :type => :sesame, :location => "/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2")
319
+ adapter2 = ConnectionPool.add_data_source(:name => :second_one, :type => :sesame,
320
+ :location => this_dir + "/sesame-persistence.s2")
314
321
 
315
322
  result = Query.new.distinct(:o).where(eyal, :p, :o).execute
316
323
  # sesame does rdfs inferencing and writes into the store that eyal is a resource
317
324
  assert_equal 2, result.flatten.size
318
325
 
319
326
  adapter2.close
327
+ File.delete(this_dir + "/sesame-persistence.s2")
320
328
  end
321
329
 
322
- end
330
+ end
metadata CHANGED
@@ -8,14 +8,8 @@ files:
8
8
  - Rakefile
9
9
  - lib/activerdf_sesame/init.rb
10
10
  - lib/activerdf_sesame/sesame.rb
11
- - test/activerdf.log
12
11
  - test/eyal-foaf.nt
13
12
  - test/eyal-foaf.rdf
14
- - test/finalize-test.rb
15
- - test/pathname.rb
16
- - test/sesame-init-test.rb
17
- - test/sesame-persistence.s2
18
- - test/test_URLClassLoader.rb
19
13
  - test/test_sesame_adapter.rb
20
14
  required_ruby_version: !ruby/object:Gem::Version::Requirement
21
15
  requirements:
@@ -30,7 +24,7 @@ authors:
30
24
  executables: []
31
25
  description: an RDF database for usage in ActiveRDF (based on sesame2)
32
26
  summary: an RDF database for usage in ActiveRDF (based on sesame2)
33
- date: 2007-02-06 00:00:00 +00:00
27
+ date: 2007-02-08 00:00:00 +00:00
34
28
  dependencies:
35
29
  - !ruby/object:Gem::Dependency
36
30
  version_requirement:
@@ -59,7 +53,7 @@ signing_key:
59
53
  rubyforge_project:
60
54
  test_files: []
61
55
  version: !ruby/object:Gem::Version
62
- version: !str 0.1
56
+ version: !str 0.2
63
57
  require_paths:
64
58
  - lib
65
59
  has_rdoc: true
data/test/activerdf.log DELETED
@@ -1,355 +0,0 @@
1
- # Logfile created on Tue Feb 06 17:03:04 GMT 2007 by /
2
- I, [2007-02-06T17:03:04.472000 #5718203] INFO -- : ActiveRDF started, logging level: 0
3
- I, [2007-02-06T17:03:04.506000 #5718203] INFO -- : ActiveRDF started, logging level: 0
4
- I, [2007-02-06T17:03:04.514000 #5718203] INFO -- : Namespace: registering http://www.w3.org/1999/02/22-rdf-syntax-ns# to rdf
5
- I, [2007-02-06T17:03:04.516000 #5718203] INFO -- : Namespace: registering http://www.w3.org/2000/01/rdf-schema# to rdfs
6
- I, [2007-02-06T17:03:04.524000 #5718203] INFO -- : Namespace: registering http://www.w3.org/2002/07/owl# to owl
7
- I, [2007-02-06T17:03:05.986000 #5718203] INFO -- : ActiveRDF is NOT installed as a Gem
8
- I, [2007-02-06T17:03:06.002000 #5718203] INFO -- : loading Sesame adapter
9
- I, [2007-02-06T17:03:06.548000 #5718203] INFO -- : ConnectionPool: registering adapter of type sesame for class SesameAdapter
10
- I, [2007-02-06T17:03:06.562000 #5718203] INFO -- : ActiveRDF is NOT installed as a Gem
11
- I, [2007-02-06T17:03:28.571000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
12
- D, [2007-02-06T17:03:28.606000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
13
- I, [2007-02-06T17:03:28.608000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
14
- I, [2007-02-06T17:03:47.296000 #5718203] INFO -- : ActiveRDF started, logging level: 0
15
- I, [2007-02-06T17:03:47.358000 #5718203] INFO -- : ActiveRDF started, logging level: 0
16
- I, [2007-02-06T17:03:47.372000 #5718203] INFO -- : Namespace: registering http://www.w3.org/1999/02/22-rdf-syntax-ns# to rdf
17
- I, [2007-02-06T17:03:47.375000 #5718203] INFO -- : Namespace: registering http://www.w3.org/2000/01/rdf-schema# to rdfs
18
- I, [2007-02-06T17:03:47.381000 #5718203] INFO -- : Namespace: registering http://www.w3.org/2002/07/owl# to owl
19
- I, [2007-02-06T17:03:47.486000 #5718203] INFO -- : ActiveRDF is NOT installed as a Gem
20
- I, [2007-02-06T17:03:47.498000 #5718203] INFO -- : loading Sesame adapter
21
- I, [2007-02-06T17:03:48.109000 #5718203] INFO -- : ConnectionPool: registering adapter of type sesame for class SesameAdapter
22
- I, [2007-02-06T17:03:48.127000 #5718203] INFO -- : ActiveRDF is NOT installed as a Gem
23
- I, [2007-02-06T17:03:48.331000 #5718203] INFO -- : ConnectionPool: clear called
24
- I, [2007-02-06T17:03:48.334000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
25
- D, [2007-02-06T17:03:48.335000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
26
- I, [2007-02-06T17:03:48.357000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
27
- D, [2007-02-06T17:03:48.607000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
28
- D, [2007-02-06T17:03:48.791000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p ?o WHERE { <http://eyaloren.org> ?p ?o . }
29
- D, [2007-02-06T17:03:48.798000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> <foaf:age> ?o . }
30
- D, [2007-02-06T17:03:48.802000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?s WHERE { ?s <foaf:age> "23" . }
31
- D, [2007-02-06T17:03:48.810000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p WHERE { <http://eyaloren.org> ?p "23" . }
32
- I, [2007-02-06T17:03:48.829000 #5718203] INFO -- : ConnectionPool: clear called
33
- I, [2007-02-06T17:03:48.831000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
34
- D, [2007-02-06T17:03:48.841000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
35
- I, [2007-02-06T17:03:48.853000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
36
- D, [2007-02-06T17:03:48.942000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
37
- D, [2007-02-06T17:03:48.957000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p ?o WHERE { <http://eyaloren.org> ?p ?o . }
38
- D, [2007-02-06T17:03:48.966000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> <foaf:age> ?o . }
39
- D, [2007-02-06T17:03:48.981000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?s WHERE { ?s <foaf:age> "23" . }
40
- D, [2007-02-06T17:03:49.016000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p WHERE { <http://eyaloren.org> ?p "23" . }
41
- I, [2007-02-06T17:03:49.020000 #5718203] INFO -- : ConnectionPool: clear called
42
- I, [2007-02-06T17:03:49.033000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
43
- D, [2007-02-06T17:03:49.039000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
44
- I, [2007-02-06T17:03:49.049000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
45
- D, [2007-02-06T17:03:49.081000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
46
- D, [2007-02-06T17:03:49.096000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p ?o WHERE { <http://eyaloren.org> ?p ?o . }
47
- D, [2007-02-06T17:03:49.103000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> <foaf:age> ?o . }
48
- D, [2007-02-06T17:03:49.125000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?s WHERE { ?s <foaf:age> <test:test> . }
49
- D, [2007-02-06T17:03:49.132000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p WHERE { <http://eyaloren.org> ?p <test:test> . }
50
- I, [2007-02-06T17:03:49.149000 #5718203] INFO -- : ConnectionPool: clear called
51
- I, [2007-02-06T17:03:49.161000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
52
- D, [2007-02-06T17:03:49.174000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
53
- I, [2007-02-06T17:03:49.186000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
54
- I, [2007-02-06T17:03:49.279000 #5718203] INFO -- : ConnectionPool: clear called
55
- I, [2007-02-06T17:03:49.281000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
56
- D, [2007-02-06T17:03:49.293000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
57
- I, [2007-02-06T17:03:49.305000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
58
- I, [2007-02-06T17:03:49.348000 #5718203] INFO -- : ConnectionPool: clear called
59
- I, [2007-02-06T17:03:49.350000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :name=>:funky}
60
- D, [2007-02-06T17:03:49.361000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :name=>:funky}
61
- I, [2007-02-06T17:03:49.374000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamenamefunky
62
- I, [2007-02-06T17:03:49.403000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :name=>:groovy}
63
- D, [2007-02-06T17:03:49.405000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :name=>:groovy}
64
- I, [2007-02-06T17:03:49.418000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamenamegroovy
65
- I, [2007-02-06T17:03:49.472000 #5718203] INFO -- : ConnectionPool: clear called
66
- I, [2007-02-06T17:03:49.475000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
67
- D, [2007-02-06T17:03:49.486000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
68
- I, [2007-02-06T17:03:49.498000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
69
- I, [2007-02-06T17:03:49.542000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>true, :type=>:sesame}
70
- D, [2007-02-06T17:03:49.544000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>true, :type=>:sesame}
71
- I, [2007-02-06T17:03:49.558000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingtruetypesesame
72
- I, [2007-02-06T17:03:49.602000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>false, :type=>:sesame}
73
- D, [2007-02-06T17:03:49.605000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>false, :type=>:sesame}
74
- I, [2007-02-06T17:03:49.607000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingfalsetypesesame
75
- I, [2007-02-06T17:03:49.655000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>:memory}
76
- D, [2007-02-06T17:03:49.670000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>:memory}
77
- I, [2007-02-06T17:03:49.682000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocationmemory
78
- I, [2007-02-06T17:03:49.722000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>true, :type=>:sesame, :location=>:memory}
79
- D, [2007-02-06T17:03:49.724000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>true, :type=>:sesame, :location=>:memory}
80
- I, [2007-02-06T17:03:49.738000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingtruetypesesamelocationmemory
81
- I, [2007-02-06T17:03:49.785000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>false, :type=>:sesame, :location=>:memory}
82
- D, [2007-02-06T17:03:49.799000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>false, :type=>:sesame, :location=>:memory}
83
- I, [2007-02-06T17:03:49.814000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingfalsetypesesamelocationmemory
84
- I, [2007-02-06T17:03:49.861000 #5718203] INFO -- : ConnectionPool: clear called
85
- I, [2007-02-06T17:03:49.864000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
86
- D, [2007-02-06T17:03:49.877000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
87
- I, [2007-02-06T17:03:49.890000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
88
- I, [2007-02-06T17:03:50.012000 #5718203] INFO -- : ConnectionPool: clear called
89
- I, [2007-02-06T17:03:50.014000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
90
- D, [2007-02-06T17:03:50.025000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
91
- I, [2007-02-06T17:03:50.037000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
92
- I, [2007-02-06T17:03:50.071000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>false, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
93
- D, [2007-02-06T17:03:50.075000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>false, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
94
- I, [2007-02-06T17:03:50.085000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingfalsetypesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
95
- I, [2007-02-06T17:03:50.130000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>true, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
96
- D, [2007-02-06T17:03:50.258000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>true, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
97
- I, [2007-02-06T17:03:50.269000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingtruetypesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
98
- I, [2007-02-06T17:03:50.312000 #5718203] INFO -- : ConnectionPool: clear called
99
- I, [2007-02-06T17:03:50.314000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
100
- D, [2007-02-06T17:03:50.326000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
101
- I, [2007-02-06T17:03:50.337000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
102
- D, [2007-02-06T17:03:50.379000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
103
- I, [2007-02-06T17:03:50.398000 #5718203] INFO -- : ConnectionPool: clear called
104
- I, [2007-02-06T17:03:50.400000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2", :name=>:second_one}
105
- D, [2007-02-06T17:03:50.413000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2", :name=>:second_one}
106
- I, [2007-02-06T17:03:50.425000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2namesecond_one
107
- D, [2007-02-06T17:03:50.448000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
108
- I, [2007-02-06T17:03:50.455000 #5718203] INFO -- : ConnectionPool: clear called
109
- I, [2007-02-06T17:03:50.466000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
110
- D, [2007-02-06T17:03:50.478000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
111
- I, [2007-02-06T17:03:50.490000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
112
- I, [2007-02-06T17:03:50.527000 #5718203] INFO -- : ConnectionPool: clear called
113
- I, [2007-02-06T17:03:50.539000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
114
- D, [2007-02-06T17:03:50.542000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
115
- I, [2007-02-06T17:03:50.562000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
116
- I, [2007-02-06T17:03:50.660000 #5718203] INFO -- : ConnectionPool: clear called
117
- I, [2007-02-06T17:03:50.662000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
118
- D, [2007-02-06T17:03:50.674000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
119
- I, [2007-02-06T17:03:50.686000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
120
- I, [2007-02-06T17:03:50.834000 #5718203] INFO -- : ConnectionPool: clear called
121
- I, [2007-02-06T17:03:50.836000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
122
- D, [2007-02-06T17:03:50.850000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
123
- I, [2007-02-06T17:03:50.861000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
124
- I, [2007-02-06T17:03:51.012000 #5718203] INFO -- : ConnectionPool: clear called
125
- I, [2007-02-06T17:03:51.014000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
126
- D, [2007-02-06T17:03:51.029000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
127
- I, [2007-02-06T17:03:51.046000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
128
- I, [2007-02-06T17:04:30.991000 #5718203] INFO -- : ActiveRDF started, logging level: 0
129
- I, [2007-02-06T17:04:31.056000 #5718203] INFO -- : ActiveRDF started, logging level: 0
130
- I, [2007-02-06T17:04:31.070000 #5718203] INFO -- : Namespace: registering http://www.w3.org/1999/02/22-rdf-syntax-ns# to rdf
131
- I, [2007-02-06T17:04:31.072000 #5718203] INFO -- : Namespace: registering http://www.w3.org/2000/01/rdf-schema# to rdfs
132
- I, [2007-02-06T17:04:31.079000 #5718203] INFO -- : Namespace: registering http://www.w3.org/2002/07/owl# to owl
133
- I, [2007-02-06T17:04:31.215000 #5718203] INFO -- : ActiveRDF is NOT installed as a Gem
134
- I, [2007-02-06T17:04:31.233000 #5718203] INFO -- : loading Sesame adapter
135
- I, [2007-02-06T17:04:31.851000 #5718203] INFO -- : ConnectionPool: registering adapter of type sesame for class SesameAdapter
136
- I, [2007-02-06T17:04:31.869000 #5718203] INFO -- : ActiveRDF is NOT installed as a Gem
137
- I, [2007-02-06T17:04:32.072000 #5718203] INFO -- : ConnectionPool: clear called
138
- I, [2007-02-06T17:04:32.075000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
139
- D, [2007-02-06T17:04:32.077000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
140
- I, [2007-02-06T17:04:32.097000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
141
- D, [2007-02-06T17:04:32.339000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
142
- D, [2007-02-06T17:04:32.518000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p ?o WHERE { <http://eyaloren.org> ?p ?o . }
143
- D, [2007-02-06T17:04:32.532000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> <foaf:age> ?o . }
144
- D, [2007-02-06T17:04:32.539000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?s WHERE { ?s <foaf:age> "23" . }
145
- D, [2007-02-06T17:04:32.548000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p WHERE { <http://eyaloren.org> ?p "23" . }
146
- I, [2007-02-06T17:04:32.557000 #5718203] INFO -- : ConnectionPool: clear called
147
- I, [2007-02-06T17:04:32.567000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
148
- D, [2007-02-06T17:04:32.579000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
149
- I, [2007-02-06T17:04:32.591000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
150
- D, [2007-02-06T17:04:32.665000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
151
- D, [2007-02-06T17:04:32.671000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p ?o WHERE { <http://eyaloren.org> ?p ?o . }
152
- D, [2007-02-06T17:04:32.695000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> <foaf:age> ?o . }
153
- D, [2007-02-06T17:04:32.702000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?s WHERE { ?s <foaf:age> "23" . }
154
- D, [2007-02-06T17:04:32.751000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p WHERE { <http://eyaloren.org> ?p "23" . }
155
- I, [2007-02-06T17:04:32.756000 #5718203] INFO -- : ConnectionPool: clear called
156
- I, [2007-02-06T17:04:32.760000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
157
- D, [2007-02-06T17:04:32.779000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
158
- I, [2007-02-06T17:04:32.791000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
159
- D, [2007-02-06T17:04:32.835000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
160
- D, [2007-02-06T17:04:32.841000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p ?o WHERE { <http://eyaloren.org> ?p ?o . }
161
- D, [2007-02-06T17:04:32.862000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> <foaf:age> ?o . }
162
- D, [2007-02-06T17:04:32.886000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?s WHERE { ?s <foaf:age> <test:test> . }
163
- D, [2007-02-06T17:04:32.892000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p WHERE { <http://eyaloren.org> ?p <test:test> . }
164
- I, [2007-02-06T17:04:32.900000 #5718203] INFO -- : ConnectionPool: clear called
165
- I, [2007-02-06T17:04:32.911000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
166
- D, [2007-02-06T17:04:32.923000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
167
- I, [2007-02-06T17:04:32.935000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
168
- I, [2007-02-06T17:04:33.033000 #5718203] INFO -- : ConnectionPool: clear called
169
- I, [2007-02-06T17:04:33.035000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
170
- D, [2007-02-06T17:04:33.047000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
171
- I, [2007-02-06T17:04:33.059000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
172
- I, [2007-02-06T17:04:33.101000 #5718203] INFO -- : ConnectionPool: clear called
173
- I, [2007-02-06T17:04:33.103000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :name=>:funky}
174
- D, [2007-02-06T17:04:33.115000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :name=>:funky}
175
- I, [2007-02-06T17:04:33.127000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamenamefunky
176
- I, [2007-02-06T17:04:33.160000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :name=>:groovy}
177
- D, [2007-02-06T17:04:33.171000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :name=>:groovy}
178
- I, [2007-02-06T17:04:33.184000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamenamegroovy
179
- I, [2007-02-06T17:04:33.236000 #5718203] INFO -- : ConnectionPool: clear called
180
- I, [2007-02-06T17:04:33.239000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
181
- D, [2007-02-06T17:04:33.251000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
182
- I, [2007-02-06T17:04:33.263000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
183
- I, [2007-02-06T17:04:33.307000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>true, :type=>:sesame}
184
- D, [2007-02-06T17:04:33.310000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>true, :type=>:sesame}
185
- I, [2007-02-06T17:04:33.324000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingtruetypesesame
186
- I, [2007-02-06T17:04:33.368000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>false, :type=>:sesame}
187
- D, [2007-02-06T17:04:33.371000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>false, :type=>:sesame}
188
- I, [2007-02-06T17:04:33.383000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingfalsetypesesame
189
- I, [2007-02-06T17:04:33.430000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>:memory}
190
- D, [2007-02-06T17:04:33.433000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>:memory}
191
- I, [2007-02-06T17:04:33.443000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocationmemory
192
- I, [2007-02-06T17:04:33.495000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>true, :type=>:sesame, :location=>:memory}
193
- D, [2007-02-06T17:04:33.497000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>true, :type=>:sesame, :location=>:memory}
194
- I, [2007-02-06T17:04:33.511000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingtruetypesesamelocationmemory
195
- I, [2007-02-06T17:04:33.556000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>false, :type=>:sesame, :location=>:memory}
196
- D, [2007-02-06T17:04:33.585000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>false, :type=>:sesame, :location=>:memory}
197
- I, [2007-02-06T17:04:33.587000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingfalsetypesesamelocationmemory
198
- I, [2007-02-06T17:04:33.634000 #5718203] INFO -- : ConnectionPool: clear called
199
- I, [2007-02-06T17:04:33.637000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
200
- D, [2007-02-06T17:04:33.651000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
201
- I, [2007-02-06T17:04:33.663000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
202
- I, [2007-02-06T17:04:33.779000 #5718203] INFO -- : ConnectionPool: clear called
203
- I, [2007-02-06T17:04:33.781000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
204
- D, [2007-02-06T17:04:33.791000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
205
- I, [2007-02-06T17:04:33.803000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
206
- I, [2007-02-06T17:04:33.837000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>false, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
207
- D, [2007-02-06T17:04:33.841000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>false, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
208
- I, [2007-02-06T17:04:33.851000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingfalsetypesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
209
- I, [2007-02-06T17:04:34.017000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>true, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
210
- D, [2007-02-06T17:04:34.033000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>true, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
211
- I, [2007-02-06T17:04:34.043000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingtruetypesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
212
- I, [2007-02-06T17:04:34.091000 #5718203] INFO -- : ConnectionPool: clear called
213
- I, [2007-02-06T17:04:34.094000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
214
- D, [2007-02-06T17:04:34.107000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
215
- I, [2007-02-06T17:04:34.119000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
216
- D, [2007-02-06T17:04:34.177000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
217
- I, [2007-02-06T17:04:34.190000 #5718203] INFO -- : ConnectionPool: clear called
218
- I, [2007-02-06T17:04:34.192000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2", :name=>:second_one}
219
- D, [2007-02-06T17:04:34.203000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2", :name=>:second_one}
220
- I, [2007-02-06T17:04:34.215000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2namesecond_one
221
- D, [2007-02-06T17:04:34.240000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
222
- I, [2007-02-06T17:04:34.255000 #5718203] INFO -- : ConnectionPool: clear called
223
- I, [2007-02-06T17:04:34.257000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
224
- D, [2007-02-06T17:04:34.271000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
225
- I, [2007-02-06T17:04:34.283000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
226
- I, [2007-02-06T17:04:34.323000 #5718203] INFO -- : ConnectionPool: clear called
227
- I, [2007-02-06T17:04:34.325000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
228
- D, [2007-02-06T17:04:34.339000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
229
- I, [2007-02-06T17:04:34.359000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
230
- I, [2007-02-06T17:04:34.441000 #5718203] INFO -- : ConnectionPool: clear called
231
- I, [2007-02-06T17:04:34.444000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
232
- D, [2007-02-06T17:04:34.469000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
233
- I, [2007-02-06T17:04:34.471000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
234
- I, [2007-02-06T17:04:34.575000 #5718203] INFO -- : ConnectionPool: clear called
235
- I, [2007-02-06T17:04:34.577000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
236
- D, [2007-02-06T17:04:34.597000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
237
- I, [2007-02-06T17:04:34.605000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
238
- I, [2007-02-06T17:04:34.745000 #5718203] INFO -- : ConnectionPool: clear called
239
- I, [2007-02-06T17:04:34.746000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
240
- D, [2007-02-06T17:04:34.759000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
241
- I, [2007-02-06T17:04:34.774000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
242
- I, [2007-02-06T17:05:11.166000 #5718203] INFO -- : ActiveRDF started, logging level: 0
243
- I, [2007-02-06T17:05:11.233000 #5718203] INFO -- : ActiveRDF started, logging level: 0
244
- I, [2007-02-06T17:05:11.247000 #5718203] INFO -- : Namespace: registering http://www.w3.org/1999/02/22-rdf-syntax-ns# to rdf
245
- I, [2007-02-06T17:05:11.250000 #5718203] INFO -- : Namespace: registering http://www.w3.org/2000/01/rdf-schema# to rdfs
246
- I, [2007-02-06T17:05:11.260000 #5718203] INFO -- : Namespace: registering http://www.w3.org/2002/07/owl# to owl
247
- I, [2007-02-06T17:05:11.372000 #5718203] INFO -- : ActiveRDF is NOT installed as a Gem
248
- I, [2007-02-06T17:05:11.384000 #5718203] INFO -- : loading Sesame adapter
249
- I, [2007-02-06T17:05:11.999000 #5718203] INFO -- : ConnectionPool: registering adapter of type sesame for class SesameAdapter
250
- I, [2007-02-06T17:05:12.017000 #5718203] INFO -- : ActiveRDF is NOT installed as a Gem
251
- I, [2007-02-06T17:05:12.347000 #5718203] INFO -- : ConnectionPool: clear called
252
- I, [2007-02-06T17:05:12.552000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
253
- D, [2007-02-06T17:05:12.772000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
254
- I, [2007-02-06T17:05:12.980000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
255
- D, [2007-02-06T17:05:13.249000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
256
- D, [2007-02-06T17:05:13.431000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p ?o WHERE { <http://eyaloren.org> ?p ?o . }
257
- D, [2007-02-06T17:05:13.437000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> <foaf:age> ?o . }
258
- D, [2007-02-06T17:05:13.441000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?s WHERE { ?s <foaf:age> "23" . }
259
- D, [2007-02-06T17:05:13.449000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p WHERE { <http://eyaloren.org> ?p "23" . }
260
- I, [2007-02-06T17:05:13.459000 #5718203] INFO -- : ConnectionPool: clear called
261
- I, [2007-02-06T17:05:13.490000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
262
- D, [2007-02-06T17:05:13.492000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
263
- I, [2007-02-06T17:05:13.504000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
264
- D, [2007-02-06T17:05:13.564000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
265
- D, [2007-02-06T17:05:13.569000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p ?o WHERE { <http://eyaloren.org> ?p ?o . }
266
- D, [2007-02-06T17:05:13.588000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> <foaf:age> ?o . }
267
- D, [2007-02-06T17:05:13.593000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?s WHERE { ?s <foaf:age> "23" . }
268
- D, [2007-02-06T17:05:13.628000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p WHERE { <http://eyaloren.org> ?p "23" . }
269
- I, [2007-02-06T17:05:13.632000 #5718203] INFO -- : ConnectionPool: clear called
270
- I, [2007-02-06T17:05:13.644000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
271
- D, [2007-02-06T17:05:13.660000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
272
- I, [2007-02-06T17:05:13.672000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
273
- D, [2007-02-06T17:05:13.710000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
274
- D, [2007-02-06T17:05:13.716000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p ?o WHERE { <http://eyaloren.org> ?p ?o . }
275
- D, [2007-02-06T17:05:13.735000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> <foaf:age> ?o . }
276
- D, [2007-02-06T17:05:13.746000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?s WHERE { ?s <foaf:age> <test:test> . }
277
- D, [2007-02-06T17:05:13.761000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?p WHERE { <http://eyaloren.org> ?p <test:test> . }
278
- I, [2007-02-06T17:05:13.765000 #5718203] INFO -- : ConnectionPool: clear called
279
- I, [2007-02-06T17:05:13.776000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
280
- D, [2007-02-06T17:05:13.788000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
281
- I, [2007-02-06T17:05:13.800000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
282
- I, [2007-02-06T17:05:13.875000 #5718203] INFO -- : ConnectionPool: clear called
283
- I, [2007-02-06T17:05:13.877000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
284
- D, [2007-02-06T17:05:13.888000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
285
- I, [2007-02-06T17:05:13.926000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
286
- I, [2007-02-06T17:05:13.995000 #5718203] INFO -- : ConnectionPool: clear called
287
- I, [2007-02-06T17:05:13.997000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :name=>:funky}
288
- D, [2007-02-06T17:05:14.008000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :name=>:funky}
289
- I, [2007-02-06T17:05:14.020000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamenamefunky
290
- I, [2007-02-06T17:05:14.048000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :name=>:groovy}
291
- D, [2007-02-06T17:05:14.051000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :name=>:groovy}
292
- I, [2007-02-06T17:05:14.065000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamenamegroovy
293
- I, [2007-02-06T17:05:14.105000 #5718203] INFO -- : ConnectionPool: clear called
294
- I, [2007-02-06T17:05:14.107000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
295
- D, [2007-02-06T17:05:14.120000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
296
- I, [2007-02-06T17:05:14.132000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
297
- I, [2007-02-06T17:05:14.177000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>true, :type=>:sesame}
298
- D, [2007-02-06T17:05:14.180000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>true, :type=>:sesame}
299
- I, [2007-02-06T17:05:14.192000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingtruetypesesame
300
- I, [2007-02-06T17:05:14.237000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>false, :type=>:sesame}
301
- D, [2007-02-06T17:05:14.240000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>false, :type=>:sesame}
302
- I, [2007-02-06T17:05:14.252000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingfalsetypesesame
303
- I, [2007-02-06T17:05:14.402000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>:memory}
304
- D, [2007-02-06T17:05:14.406000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>:memory}
305
- I, [2007-02-06T17:05:14.416000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocationmemory
306
- I, [2007-02-06T17:05:14.478000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>true, :type=>:sesame, :location=>:memory}
307
- D, [2007-02-06T17:05:14.480000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>true, :type=>:sesame, :location=>:memory}
308
- I, [2007-02-06T17:05:14.492000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingtruetypesesamelocationmemory
309
- I, [2007-02-06T17:05:14.521000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>false, :type=>:sesame, :location=>:memory}
310
- D, [2007-02-06T17:05:14.528000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>false, :type=>:sesame, :location=>:memory}
311
- I, [2007-02-06T17:05:14.540000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingfalsetypesesamelocationmemory
312
- I, [2007-02-06T17:05:14.583000 #5718203] INFO -- : ConnectionPool: clear called
313
- I, [2007-02-06T17:05:14.585000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
314
- D, [2007-02-06T17:05:14.596000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
315
- I, [2007-02-06T17:05:14.608000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
316
- I, [2007-02-06T17:05:14.731000 #5718203] INFO -- : ConnectionPool: clear called
317
- I, [2007-02-06T17:05:14.744000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
318
- D, [2007-02-06T17:05:14.756000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
319
- I, [2007-02-06T17:05:14.768000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
320
- I, [2007-02-06T17:05:14.810000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>false, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
321
- D, [2007-02-06T17:05:14.820000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>false, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
322
- I, [2007-02-06T17:05:14.838000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingfalsetypesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
323
- I, [2007-02-06T17:05:15.042000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:inferencing=>true, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
324
- D, [2007-02-06T17:05:15.046000 #5718203] DEBUG -- : Create a new adapter for parameters {:inferencing=>true, :type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
325
- I, [2007-02-06T17:05:15.047000 #5718203] INFO -- : initializing Sesame Adapter with params inferencingtruetypesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
326
- I, [2007-02-06T17:05:15.090000 #5718203] INFO -- : ConnectionPool: clear called
327
- I, [2007-02-06T17:05:15.093000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
328
- D, [2007-02-06T17:05:15.130000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2"}
329
- I, [2007-02-06T17:05:15.132000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2
330
- D, [2007-02-06T17:05:15.173000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
331
- I, [2007-02-06T17:05:15.186000 #5718203] INFO -- : ConnectionPool: clear called
332
- I, [2007-02-06T17:05:15.196000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2", :name=>:second_one}
333
- D, [2007-02-06T17:05:15.208000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame, :location=>"/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2", :name=>:second_one}
334
- I, [2007-02-06T17:05:15.220000 #5718203] INFO -- : initializing Sesame Adapter with params typesesamelocation/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/sesame-persistence.s2namesecond_one
335
- D, [2007-02-06T17:05:15.239000 #5718203] DEBUG -- : Query2SPARQL: translated the query to SELECT DISTINCT ?o WHERE { <http://eyaloren.org> ?p ?o . }
336
- I, [2007-02-06T17:05:15.246000 #5718203] INFO -- : ConnectionPool: clear called
337
- I, [2007-02-06T17:05:15.256000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
338
- D, [2007-02-06T17:05:15.268000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
339
- I, [2007-02-06T17:05:15.280000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
340
- I, [2007-02-06T17:05:15.319000 #5718203] INFO -- : ConnectionPool: clear called
341
- I, [2007-02-06T17:05:15.322000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
342
- D, [2007-02-06T17:05:15.336000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
343
- I, [2007-02-06T17:05:15.352000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
344
- I, [2007-02-06T17:05:15.474000 #5718203] INFO -- : ConnectionPool: clear called
345
- I, [2007-02-06T17:05:15.476000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
346
- D, [2007-02-06T17:05:15.488000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
347
- I, [2007-02-06T17:05:15.500000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
348
- I, [2007-02-06T17:05:15.619000 #5718203] INFO -- : ConnectionPool: clear called
349
- I, [2007-02-06T17:05:15.620000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
350
- D, [2007-02-06T17:05:15.632000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
351
- I, [2007-02-06T17:05:15.648000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
352
- I, [2007-02-06T17:05:15.757000 #5718203] INFO -- : ConnectionPool: clear called
353
- I, [2007-02-06T17:05:15.759000 #5718203] INFO -- : ConnectionPool: add_data_source with params: {:type=>:sesame}
354
- D, [2007-02-06T17:05:15.772000 #5718203] DEBUG -- : Create a new adapter for parameters {:type=>:sesame}
355
- I, [2007-02-06T17:05:15.784000 #5718203] INFO -- : initializing Sesame Adapter with params typesesame
@@ -1,37 +0,0 @@
1
-
2
- require 'java'
3
-
4
- WrapperForSesame2 = org.activerdf.minced.sesame2.WrapperForSesame2
5
-
6
- class SimpleLog
7
- def initialize(where)
8
- @db = WrapperForSesame2.new
9
- @logfile = File.new(where, "w+")
10
- ObjectSpace.define_finalizer (self, SimpleLog.create_finalizer(@logfile,@db))
11
- end
12
- def write(msg)
13
- @logfile.puts msg
14
- end
15
- def SimpleLog.create_finalizer(logfile,db)
16
- proc {|id| puts "Finalizer on #{id}"
17
- logfile.puts "Closed properly"
18
- logfile.close
19
- db.getSesameConnection.close
20
- }
21
- end
22
- end
23
- a=SimpleLog.new("/tmp/aa")
24
- a.write("HI")
25
- a=nil
26
- puts "Listing instances of SimpleLog:"
27
- ObjectSpace.each_object(SimpleLog){|obj|
28
- p obj
29
- }
30
- puts "DONE"
31
- puts "Running the garbage collector"
32
- #GC.start
33
- puts "Listing remaining instances of SimpleLog:"
34
- ObjectSpace.each_object(SimpleLog){|obj|
35
- p obj
36
- }
37
- puts "DONE"
data/test/pathname.rb DELETED
@@ -1,3 +0,0 @@
1
-
2
- puts File.dirname(__FILE__)
3
- puts File.dirname(File.expand_path(__FILE__))
@@ -1,31 +0,0 @@
1
-
2
- require 'java'
3
-
4
-
5
-
6
- MemoryStore = org.openrdf.sail.memory.MemoryStore
7
-
8
- maybeASail = MemoryStore.new
9
-
10
- include_class 'org.openrdf.sail.memory.MemoryStore'
11
-
12
-
13
-
14
-
15
- #---
16
- require "java"
17
- MemoryStore = org.openrdf.sail.memory.MemoryStore
18
- JClass = java.lang.Class
19
- JArray = java.lang.reflect.Array
20
-
21
-
22
- # 1.)
23
- mstore = JClass.forName("org.openrdf.sail.memory.MemoryStore").newInstance
24
-
25
- # 2.)
26
- rdfsStoreArgsClasses = JArray.newInstance(MemoryStore.class)
27
- rdfsStoreArgsClasses
28
- rdfsStoreArgsClasses = [ MemoryStore ]
29
- rdfsStoreArgsArguments = [mstore]
30
- rdfsStoreConstructor = JClass.forName("org.openrdf.sail.inferencer.MemoryStoreRDFSInferencer").getConstructor(rdfsStoreArgsClasses)
31
- rdfsstore = rdfsStoreConstructor.newInstance(rdfsStoreArgsArguments)
Binary file
@@ -1,60 +0,0 @@
1
-
2
- require "java"
3
-
4
- URLClassLoader = java.net.URLClassLoader
5
- JFile = java.io.File
6
- JURL = java.net.URL
7
- JClass = java.lang.Class
8
- JObject = java.lang.Object
9
-
10
- # make file objects out of strings
11
- jFile1 = JFile.new("/someplace/wrapper-sesame2.jar")
12
- jFile2 = JFile.new("/someplace/openrdf-sesame-2.0-alpha4-onejar.jar")
13
-
14
- #jFile1 = JFile.new("/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/ext/wrapper-sesame2.jar")
15
- #jFile2 = JFile.new("/home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/ext/openrdf-sesame-2.0-alpha4-onejar.jar")
16
-
17
- # make an array of URL, which contains the URLs corresponding to the files
18
- uris = JURL[].new(2)
19
- uris[0] = jFile1.toURL
20
- uris[1] = jFile2.toURL
21
-
22
- # this is our custom class loader, yay!
23
- myClassLoader = URLClassLoader.new(uris)
24
-
25
- # and now we want our custom class loader to actually do some work
26
- # --> fetch us the class object for the specified class name,
27
- # intialize that class object, and use the specified class loader for it
28
- classWrapper = JClass.forName("org.activerdf.wrapper.sesame2.WrapperForSesame2", true, myClassLoader)
29
-
30
- # cool, so we got that class object, and it seems pretty valid:
31
- puts classWrapper.java_class
32
- # => java.lang.Class
33
-
34
- # put this does not work !
35
- myWrapperInstance = classWrapper.new
36
-
37
- # instead we have to do this. this points to the guess that this is in fact
38
- # not a class object but a constuctor object
39
- # maybe this is the first bug here?
40
- myWrapperInstance = classWrapper.new_instance
41
-
42
- # okay, so far so good. the real problem is constructing the class with an
43
- # argument
44
-
45
- constructorArgs = JObject[].new(1)
46
- constructorArgs[0] = "/someplace/sesame-rep.s2"
47
- #constuctorArgs[0] = "/home/metaman/workspaces/deri-workspace/sioc-playground/data/sesame-rep.s2"
48
-
49
- myWrapperInstance = classWrapper.new_instance(constructorArgs)
50
- # NameError: no method 'newInstance' with arguments matching [[Ljava.lang.Object;]
51
- # from /mnt/small/jruby-workspace/jruby-trunk/src/builtin/javasupport.rb:433:in `matching_method'
52
- # from (irb):1:in `binding'
53
-
54
- # If I would have just said this:
55
- # WrapperForSesame2 = org.activerdf.wrapper.sesame2.WrapperForSesame2
56
- # then I could say:
57
- # myWrapperInstance = WrapperForSesame2.new("/someplace/sesame-rep.s2")
58
- # no problem there.
59
-
60
- # --> this seems to be the second bug?