Method: RoadForest::SourceRigor::GraphStore#insert_document
- Defined in:
- lib/roadforest/source-rigor/graph-store.rb
#insert_document(document) ⇒ Object
81 82 83 84 85 86 87 88 89 90 |
# File 'lib/roadforest/source-rigor/graph-store.rb', line 81 def insert_document(document) #puts; puts "#{__FILE__}:#{__LINE__} => #{(document).inspect}" #puts document.body_string reader = RDF::Reader.for(:content_type => document.content_type) do sample = document.body.read(1000) document.body.rewind sample end.new(document.body, :base_uri => document.root_url) #consider :processor_graph insert_reader(document.source, reader) end |