@param [BibTeX::Entry] the bibliography to convert
# File lib/bibtex/bibliography/rdf_converter.rb, line 9 def initialize(bibtex, graph = RDF::Graph.new) @bibtex = bibtex @graph = graph @agent = {} end
@return [RDF::Graph] the RDF graph of this bibliography
# File lib/bibtex/bibliography/rdf_converter.rb, line 16 def convert! bibtex.q('@entry').each do |entry| BibTeX::Entry::RDFConverter.convert(entry, graph, agent) end graph end