Class: RoadForest::RDF::PostFocus
- Inherits:
-
GraphFocus
- Object
- GraphFocus
- RoadForest::RDF::PostFocus
- Defined in:
- lib/roadforest/rdf/post-focus.rb
Constant Summary
Constants included from Normalization
Instance Attribute Summary collapse
-
#graphs ⇒ Object
Returns the value of attribute graphs.
Attributes inherited from GraphFocus
Instance Method Summary collapse
Methods inherited from GraphFocus
#add, #add_list, #add_node, #all, #as_list, #create_node, #delete, #find_or_add, #first, #forward_properties, #get, #initialize, #inspect, #normalize_triple, #relevant_prefixes, #rev, #rev_all, #rev_first, #reverse_properties, #root_url, #root_url=, #set, #set_node, #to_context, #unwrap_value, #wrap_node
Methods included from Normalization
#expand_curie, #expand_curie_pair, #interned_uri, #literal, #normalize_context, #normalize_property, #normalize_resource, #normalize_statement, #normalize_term, #normalize_tuple, #normalize_uri, #relevant_prefixes_for_graph, #root_url, #uri, #vocabularies_in_graph
Constructor Details
This class inherits a constructor from RoadForest::RDF::GraphFocus
Instance Attribute Details
#graphs ⇒ Object
Returns the value of attribute graphs.
6 7 8 |
# File 'lib/roadforest/rdf/post-focus.rb', line 6 def graphs @graphs end |
Instance Method Details
#dup ⇒ Object
8 9 10 11 12 |
# File 'lib/roadforest/rdf/post-focus.rb', line 8 def dup other = super other.graphs = graphs other end |
#post_to {|focus| ... } ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/roadforest/rdf/post-focus.rb', line 14 def post_to graph = ::RDF::Graph.new access = WriteManager.new access.rigor = access_manager.rigor access.source_graph = graph focus = GraphFocus.new(access, subject) graphs[subject] = graph yield focus if block_given? return focus end |