owmeta.bibtex module

owmeta.bibtex.bibtex_to_document(bibtex_entry, context=None)[source]

Takes a single BibTeX entry and translates it into a Document object

owmeta.bibtex.load(bibtex_file)[source]

Load BibTeX records from a file

Parameters
bibtex_filefile object

File containing one or more BibTex records

Returns
bibtexparser.bibdatabase.BibDatabase

Records represented in the string

owmeta.bibtex.load_from_file_named(file_name)[source]

Loads from a file with the given name

Parameters
file_namestr

Name of the bibtex file to open

Returns
bibtexparser.bibdatabase.BibDatabase

Records from the named file

owmeta.bibtex.loads(bibtex_string)[source]

Load BibTeX records from a string

Parameters
bibtex_stringstr

Text of one or more BibTex records

Returns
bibtexparser.bibdatabase.BibDatabase

Records represented in the string

owmeta.bibtex.parse_bibtex_into_documents(file_name, context=None)[source]

Parses BibTeX records into a dictionary of Document instances

Parameters
bibtex_filefile object

File containing one or more BibTeX records

Returns
dict

Document instances from the records in the file