diff --git a/src/gra/zotero.py b/src/gra/zotero.py index e02c755..f517ca3 100644 --- a/src/gra/zotero.py +++ b/src/gra/zotero.py @@ -10,11 +10,11 @@ import yaml # Load the Configurations def load_configuration(zotero_conf_filename): zotero_bibtex_config = dict() - zotero_conf_dir = os.path.join(os.path.dirname(os.getcwd()), 'code_configuration') + # zotero_conf_dir = os.path.join(os.path.dirname(os.getcwd()), 'code_configuration') + # + # yaml_path = os.path.join(zotero_conf_dir, zotero_conf_filename) - yaml_path = os.path.join(zotero_conf_dir, zotero_conf_filename) - - with open(yaml_path, "r") as file: + with open(zotero_conf_filename, "r") as file: zotero_bibtex_config = yaml.load(file, Loader=yaml.FullLoader) return zotero_bibtex_config @@ -159,9 +159,9 @@ def write_bibliography(zotero_data, zotero_bibtex_config): keystore_path = zotero_bibtex_config.get('common').get('keystore_filepath') tex_dir = os.path.join(os.path.dirname(os.getcwd()), keystore_path) - yaml_path = os.path.join(tex_dir, keystore_file) + #yaml_path = os.path.join(tex_dir, keystore_file) - with open(yaml_path, "r") as file: + with open(keystore_file, "r") as file: zotero_bibtex_keys = yaml.load(file, Loader=yaml.FullLoader) zotero_bibtex_keys_specials = { @@ -177,12 +177,13 @@ def write_bibliography(zotero_data, zotero_bibtex_config): # tex_dir = os.path.join(os.path.dirname(os.getcwd()), 'source') bibtex_path = zotero_bibtex_config.get('common').get('bibtex_filepath') # tex_dir = os.path.join(os.path.dirname(os.getcwd()), bibtex_path) - tex_dir = os.path.join(os.path.dirname(), bibtex_path) + #tex_dir = os.path.join(os.path.dirname(), bibtex_path) # tex_dir = os.path.join(os.getcwd(), 'src', 'content') # file_name = 'Datenbank_Projektauftrag_Michael_Graber.bib' file_name = zotero_bibtex_config.get('common').get('bibtex_filename') - file_path = os.path.join(tex_dir, file_name) + #file_path = os.path.join(tex_dir, file_name) + file_path = os.path.join(bibtex_path, file_name) # bib_datas = BibliographyData() listKeys = list() @@ -300,6 +301,6 @@ def write_bibliography(zotero_data, zotero_bibtex_config): BibliographyData.to_file(bib_datas, file_path, bib_format="bibtex", encoding='utf-8') -zotero_bibtex_config = load_configuration('zotero_bibtex_configuration.yaml') +zotero_bibtex_config = load_configuration('/home/gra/PycharmProjects/cds_introduction_data_science_assignment/src/gra/zotero_bibtex_configuration.yaml') zotero_data = get_data(zotero_bibtex_config) write_bibliography(zotero_data, zotero_bibtex_config) diff --git a/src/gra/zotero_bibtex_configuration.yaml b/src/gra/zotero_bibtex_configuration.yaml index b850373..aa204ca 100644 --- a/src/gra/zotero_bibtex_configuration.yaml +++ b/src/gra/zotero_bibtex_configuration.yaml @@ -6,7 +6,7 @@ private: result_limit: 100 access_type: "groups" zotero_access_id: "5665342" - collection_id: "EJKIYYMC" + collection_id: "YYVZPL7F" api_key: "6Xgb3XhGjQXwA8NuZgu3bw3s" # keystore_file: "zotero_biblatex_keystore.yaml" # keystore_filepath: "code_configuration" @@ -20,7 +20,7 @@ public: collection_id: "V5VYIYTF" api_key: "6Xgb3XhGjQXwA8NuZgu3bw3s" common: - keystore_file: "zotero_biblatex_keystore.yaml" + keystore_file: "/home/gra/PycharmProjects/cds_introduction_data_science_assignment/src/gra/zotero_biblatex_keystore.yaml" keystore_filepath: "code_configuration" - bibtex_filepath: "term-paper" - bibtex_filename: "cds_computer_science_project.bib" + bibtex_filepath: "/home/gra/PycharmProjects/cds_introduction_data_science_assignment/term-paper" + bibtex_filename: "cds_data_science.bib" diff --git a/term-paper/cds_data_science.bib b/term-paper/cds_data_science.bib new file mode 100644 index 0000000..fdba74d --- /dev/null +++ b/term-paper/cds_data_science.bib @@ -0,0 +1,13 @@ +@misc{YEEWV3DH, + howpublished = "\url{https://www.tanaffosjournal.ir/article\_242146\_050977fd76f7a68418a04c8e6583c537.pdf}", + title = "Full Text PDF" +} + +@article{D8G7JHBA, + author = "Sajjadieh, Amirreza and Shahsavari, Ali and Safae, Ali and Penzel, Thomas and Schoebel, Christoph and Fietze, Ingo and Mozafarian, Nafiseh and Amra, Babak and Kelishadi, Roya", + volume = "19", + url = "https://www.tanaffosjournal.ir/article\_242146.html", + title = "The Association of Sleep Duration and Quality with Heart Rate Variability and Blood Pressure", + pages = "135-143", + year = "2020" +} diff --git a/term-paper/cds_introduction_data_science_assignment.tex b/term-paper/cds_introduction_data_science_assignment.tex index bd9863b..20e8bbe 100644 --- a/term-paper/cds_introduction_data_science_assignment.tex +++ b/term-paper/cds_introduction_data_science_assignment.tex @@ -25,13 +25,14 @@ %\begin{multicols}{2} \section{Einleitung} -\citeauthor{Student2022} führt aus Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua \cite{Student2022}. +%\citeauthor{Student2022} führt aus Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua \cite{Student2022}. \section{Forschungsfragen und Methodik} \input{research_question} \input{data_fredy} \input{data_oli} \input{data_gra} +\input{relevance} \section{Resultate} \input{results_fredy} \input{results_oli} @@ -63,6 +64,6 @@ %------------------------- % literature %------------------------- -\bibliography{library} +\bibliography{cds_data_science} \end{document} \ No newline at end of file diff --git a/term-paper/library.bib b/term-paper/library.bib deleted file mode 100644 index 5f2fec2..0000000 --- a/term-paper/library.bib +++ /dev/null @@ -1,8 +0,0 @@ -@article{Student2022, - author={Student, A.}, - title={My Title}, - journal={My Journal}, - volume={8}, - year=2022, - pages={175-191} -} \ No newline at end of file diff --git a/term-paper/relevance.tex b/term-paper/relevance.tex new file mode 100644 index 0000000..bfaca29 --- /dev/null +++ b/term-paper/relevance.tex @@ -0,0 +1,6 @@ +%! Author = gra +%! Date = 24.10.24 + +% Preamble +\section{Stand der Forschung} +\citeauthor{D8G7JHBA} \ No newline at end of file diff --git a/term-paper/title.tex b/term-paper/title.tex index 96311a6..dee00ab 100644 --- a/term-paper/title.tex +++ b/term-paper/title.tex @@ -4,15 +4,11 @@ \titlehead{BSc Computational and Data Science\\Einführung inComputational und Data Science\\Dozent: Prof. Corsin Capol\hfill} \title{Schlafqualität und Herzfreuenz} \subtitle{Beeinflusst die Schlafqualität die Herzfrequenz?} +\author[1,*]{Frederic Kurbel} \author[1,*]{Oliver Schütz} -\author[1]{Hans Muster} -\author[1]{Fachhochschule Graubünden} -\author[2,*]{Michael Graber} -\author[2]{Kantonsspital Graubünden} -\author[2]{Fachhochschule Graubünden} +\author[1,*]{Michael Graber} \affil[1]{Fachhochschule Graubünden} -\affil[*]{E-Mail Adressen: hans.muster@stud.fhgr.ch, hans.muster@stud.fhgr.ch, hans.muster@stud.fhgr.ch} -\affil[*]{E-Mail Adressen: graber-michael@hotmail.com, michael.graber@ksgr.ch, michael.graber@stud.fhgr.ch} +\affil[*]{E-Mail Adressen: frederic.kurbel@stud.fhgr.ch, oliver.schuetz@stud.fhgr.ch, michael.graber@stud.fhgr.ch} \date{\today} \maketitle