lib/active_rdf/federation/federation_manager.rb in activerdf-1.2.2 vs lib/active_rdf/federation/federation_manager.rb in activerdf-1.2.3
- old
+ new
@@ -5,9 +5,10 @@
class FederationManager
# add triple s,p,o to the currently selected write-adapter
def FederationManager.add(s,p,o)
# TODO: allow addition of full graphs
+ raise ActiveRdfError, "cannot write without a write-adapter" unless ConnectionPool.write_adapter
ConnectionPool.write_adapter.add(s,p,o)
end
# executes read-only queries
# by distributing query over complete read-pool