Class: Trinity::Renderer::RDF

Inherits:
Trinity::Renderer show all
Includes:
RDF
Defined in:
lib/trinity/renderer/rdf.rb

Instance Method Summary

Methods inherited from Trinity::Renderer

content_type, for, #initialize, #render, #status

Constructor Details

This class inherits a constructor from Trinity::Renderer

Instance Method Details

- (Object) content



12
13
14
15
16
# File 'lib/trinity/renderer/rdf.rb', line 12

def content
  RDF::Writer.for(:ntriples).buffer do |writer| # FIXME
    resource.each { |statement| writer << statement }
  end
end

- (Object) headers



8
9
10
# File 'lib/trinity/renderer/rdf.rb', line 8

def headers
  super.merge({'Content-Type' => 'text/plain'}) # FIXME
end