SparqlAdapter not enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ActiveRDF |
New
|
Undecided
|
Unassigned |
Bug Description
The following code fails for activerdf_
>> ConnectionPool.
=> #<SparqlAdapter
>> ObjectManager.
ActiveRdfError: cannot execute query without data sources
from /home/nfelger/
from /home/nfelger/
from /home/nfelger/
from (irb):4
The root cause seems to be the SparqlAdapter not calling its parent's constructor in initialize. This patch fixes it for me:
--- /var/lib/
+++ vendor/
@@ -27,6 +27,7 @@
# * :timeout => timeout in seconds to wait for endpoint response
# * :auth => [user, pass]
def initialize(params = {})
+ super()
@reads = true
@writes = false
Cheers,
Niko