%% Bibliography Entry Template
%% Auto-generated by ggen from RDF ontology
%% Generates BibTeX entries from RDF metadata

{% raw %}{% if entry_type == "article" %}
@article{{{ cite_key }},
  author = {{{ author }}},
  title = {{{ title }}},
  journal = {{{ journal }}},
  year = {{{ year }}},
  {% if volume %}volume = {{{ volume }}},{% endif %}
  {% if number %}number = {{{ number }}},{% endif %}
  {% if pages %}pages = {{{ pages }}},{% endif %}
  {% if doi %}doi = {{{ doi }}},{% endif %}
  {% if url %}url = {{{ url }}},{% endif %}
  {% if note %}note = {{{ note }}},{% endif %}
}
{% elif entry_type == "book" %}
@book{{{ cite_key }},
  author = {{{ author }}},
  title = {{{ title }}},
  publisher = {{{ publisher }}},
  year = {{{ year }}},
  {% if edition %}edition = {{{ edition }}},{% endif %}
  {% if isbn %}isbn = {{{ isbn }}},{% endif %}
  {% if address %}address = {{{ address }}},{% endif %}
  {% if url %}url = {{{ url }}},{% endif %}
  {% if note %}note = {{{ note }}},{% endif %}
}
{% elif entry_type == "inproceedings" %}
@inproceedings{{{ cite_key }},
  author = {{{ author }}},
  title = {{{ title }}},
  booktitle = {{{ booktitle }}},
  year = {{{ year }}},
  {% if editor %}editor = {{{ editor }}},{% endif %}
  {% if volume %}volume = {{{ volume }}},{% endif %}
  {% if series %}series = {{{ series }}},{% endif %}
  {% if pages %}pages = {{{ pages }}},{% endif %}
  {% if organization %}organization = {{{ organization }}},{% endif %}
  {% if publisher %}publisher = {{{ publisher }}},{% endif %}
  {% if doi %}doi = {{{ doi }}},{% endif %}
  {% if url %}url = {{{ url }}},{% endif %}
  {% if note %}note = {{{ note }}},{% endif %}
}
{% elif entry_type == "incollection" %}
@incollection{{{ cite_key }},
  author = {{{ author }}},
  title = {{{ title }}},
  booktitle = {{{ booktitle }}},
  publisher = {{{ publisher }}},
  year = {{{ year }}},
  {% if editor %}editor = {{{ editor }}},{% endif %}
  {% if chapter %}chapter = {{{ chapter }}},{% endif %}
  {% if pages %}pages = {{{ pages }}},{% endif %}
  {% if address %}address = {{{ address }}},{% endif %}
  {% if edition %}edition = {{{ edition }}},{% endif %}
  {% if url %}url = {{{ url }}},{% endif %}
  {% if note %}note = {{{ note }}},{% endif %}
}
{% elif entry_type == "phdthesis" %}
@phdthesis{{{ cite_key }},
  author = {{{ author }}},
  title = {{{ title }}},
  school = {{{ school }}},
  year = {{{ year }}},
  {% if type %}type = {{{ type }}},{% endif %}
  {% if address %}address = {{{ address }}},{% endif %}
  {% if url %}url = {{{ url }}},{% endif %}
  {% if note %}note = {{{ note }}},{% endif %}
}
{% elif entry_type == "mastersthesis" %}
@mastersthesis{{{ cite_key }},
  author = {{{ author }}},
  title = {{{ title }}},
  school = {{{ school }}},
  year = {{{ year }}},
  {% if type %}type = {{{ type }}},{% endif %}
  {% if address %}address = {{{ address }}},{% endif %}
  {% if url %}url = {{{ url }}},{% endif %}
  {% if note %}note = {{{ note }}},{% endif %}
}
{% elif entry_type == "techreport" %}
@techreport{{{ cite_key }},
  author = {{{ author }}},
  title = {{{ title }}},
  institution = {{{ institution }}},
  year = {{{ year }}},
  {% if type %}type = {{{ type }}},{% endif %}
  {% if number %}number = {{{ number }}},{% endif %}
  {% if address %}address = {{{ address }}},{% endif %}
  {% if url %}url = {{{ url }}},{% endif %}
  {% if note %}note = {{{ note }}},{% endif %}
}
{% elif entry_type == "misc" %}
@misc{{{ cite_key }},
  {% if author %}author = {{{ author }}},{% endif %}
  title = {{{ title }}},
  {% if howpublished %}howpublished = {{{ howpublished }}},{% endif %}
  {% if year %}year = {{{ year }}},{% endif %}
  {% if url %}url = {{{ url }}},{% endif %}
  {% if note %}note = {{{ note }}},{% endif %}
}
{% elif entry_type == "online" %}
@online{{{ cite_key }},
  {% if author %}author = {{{ author }}},{% endif %}
  title = {{{ title }}},
  url = {{{ url }}},
  {% if year %}year = {{{ year }}},{% endif %}
  {% if urldate %}urldate = {{{ urldate }}},{% endif %}
  {% if note %}note = {{{ note }}},{% endif %}
}
{% endif %}{% endraw %}
