class RoadForest::Graph::SplitManager
Attributes
destination_graph[RW]
target_graph[RW]
Public Instance Methods
dup()
click to toggle source
Calls superclass method
RoadForest::Graph::ReadOnlyManager#dup
# File lib/roadforest/graph/access-manager.rb, line 89 def dup other = super other.target_graph = self.target_graph return other end
each_target() { |context, graph| ... }
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 99 def each_target destination_graph.each_context do |context| graph = ::RDF::Graph.new(context, :data => target_graph) yield(context, graph) end end
relevant_prefixes()
click to toggle source
Calls superclass method
RoadForest::Graph::ReadOnlyManager#relevant_prefixes
# File lib/roadforest/graph/access-manager.rb, line 95 def relevant_prefixes super.merge(relevant_prefixes_for_graph(destination_graph)) end
reset()
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 84 def reset @target_graph ||= ::RDF::Repository.new @target_graph.clear end