Skip to content

Commit

Permalink
Add #note
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaier committed Jan 17, 2014
1 parent bb697b0 commit 4d73962
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/bibtex/entry/rdf_converter.rb
Expand Up @@ -120,6 +120,17 @@ def language
graph << [entry, RDF::DC.language, bibtex[:language].to_s] if bibtex.field?(:language)
end

def note
return unless bibtex.field?(:note)

pub = RDF::Node.new
graph << [pub, RDF.type, bibo[:Note]]
graph << [pub, bibo[:content], bibtex[:note]]


graph << [entry, bibo[:annotates], pub]
end

def number
return unless bibtex.field?(:number)

Expand Down

0 comments on commit 4d73962

Please sign in to comment.