class RoadForest::Graph::ReadOnlyManager
Attributes
destination_graph[RW]
origin_graph[RW]
resource[RW]
source_graph[RW]
Public Instance Methods
build_query() { |query| ... }
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 43 def build_query ::RDF::Query.new([], {}) do |query| yield query end end
dup()
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 20 def dup other = self.class.allocate other.resource = self.resource other.source_graph = self.source_graph return other end
each(&block)
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 39 def each(&block) origin_graph.each(&block) end
each_statement(&block)
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 35 def each_statement(&block) origin_graph.each_statement(&block) end
execute_search(search, &block)
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 57 def execute_search(search, &block) search.execute(origin_graph, &block) end
query_execute(query, &block)
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 49 def query_execute(query, &block) execute_search(query, &block) end
query_pattern(pattern, &block)
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 53 def query_pattern(pattern, &block) execute_search(pattern, &block) end
relevant_prefixes()
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 31 def relevant_prefixes relevant_prefixes_for_graph(origin_graph) end
reset()
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 17 def reset end
resource=(resource)
click to toggle source
# File lib/roadforest/graph/access-manager.rb, line 13 def resource=(resource) @resource = normalize_context(resource) end