Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
levitabris committed Jan 4, 2024
0 parents commit 82c4f79
Show file tree
Hide file tree
Showing 4 changed files with 361 additions and 0 deletions.
69 changes: 69 additions & 0 deletions doi_lookup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import os
import argparse
import requests
import bibtexparser
from bibtexparser.bwriter import BibTexWriter

def lookup_dois(bib_file):

# Load bibtex file
with open(bib_file) as f:
bib_database = bibtexparser.load(f)

# Base API URL
BASE_URL = 'https://api.semanticscholar.org/graph/v1/paper/'

# Missing entries
missing = []
lookup_length = len(bib_database.entries)

# Loop through bibtex entries
for entry in bib_database.entries:
print('=' * 120)
if 'doi' not in entry:
# Check if corpus ID is available
corpus_id = entry.get('url').split(':')[2]
if corpus_id:
print(f'📄{entry.get("title")} \n🔎Fetching DOI... ')
# Make API request
url = BASE_URL + f'CorpusId:{corpus_id}?fields=externalIds'
response = requests.get(url)

# Extract DOI if present
data = response.json()

doi = data['externalIds'].get('DOI')
arxiv = data['externalIds'].get('ArXiv')
dblp = data['externalIds'].get('DBLP')

# Write DOI info if found
if doi:
entry['DOI'] = doi
print(f"✅Added DOI: {doi} to {entry['ID']}")
elif arxiv:
entry['ArXiv'] = arxiv
print(f"🔄No DOI found for: {entry['ID']}, added ArXiv {arxiv}")
elif dblp:
entry['DBLP'] = dblp
print(f"🔄No ArXiv found for: {entry['ID']}, added DBLP {dblp}")
else:
missing += [entry.get('title')]
print(f"❌No DOI found for: {entry['ID']}")

print('=' * 120)
print(f'Found [{lookup_length - len(missing)} / {lookup_length}] DOIs\nMissing ones are:')
print(''.join(['\n❓' + title for title in missing]))

# Write out modified bibtex
writer = BibTexWriter()

name = os.path.splitext(bib_file)[0]
with open(f'{name}_modified.bib', 'w') as outfile:
bibtexparser.dump(bib_database, outfile, writer)

if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('bibfile', help='Bibtex file')
args = parser.parse_args()

lookup_dois(args.bibfile)
126 changes: 126 additions & 0 deletions references.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
@article{Schrder2023TellingSW,
title={Telling stories with data - A systematic review},
author={Kay Schr{\"o}der and Wiebke Eberhardt and Poornima Belavadi and Batoul Ajdadilish and Nanette van Haften and Ed Overes and Taryn Brouns and Andr{\'e} Calero Valdez},
journal={ArXiv},
year={2023},
volume={abs/2312.01164},
url={https://api.semanticscholar.org/CorpusID:265609919}
}

@article{Sderlund2023RecognizingNC,
title={Recognizing non-designers’ contribution in the process of designing information on visual management boards: a metaphorical approach},
author={Carina S{\"o}derlund},
journal={Design Science},
year={2023},
volume={9},
url={https://api.semanticscholar.org/CorpusID:259949509}
}

@inproceedings{Huron2020IEEEVW,
title={IEEE VIS Workshop on Data Vis Activities to Facilitate Learning, Reflecting, Discussing, and Designing},
author={Samuel Huron and Benjamin Bach and Uta Hinrichs and Mandy Keck and Jonathan Roberts},
year={2020},
url={https://api.semanticscholar.org/CorpusID:221406934}
}

@article{Khowaja2022APD,
title={A Participatory Design Approach to Develop Visualization of Wearable Actigraphy Data for Health Care Professionals: Case Study in Qatar},
author={Kamran Khowaja and Wafa Waheeda Syed and Meghna Singh and Shahrad Taheri and Odette Chagoury and Dena Al-Thani and Micha{\"e}l Aupetit},
journal={JMIR Human Factors},
year={2022},
volume={9},
url={https://api.semanticscholar.org/CorpusID:248024869}
}

@article{Karim2022ParticipatoryDF,
title={Participatory Design for Mental Health Data Visualization on a Social Robot},
author={Raida Karim and Edgar L{\'o}pez and Elin A. Bj{\"o}rling and Maya Cakmak},
journal={ArXiv},
year={2022},
volume={abs/2210.06469},
url={https://api.semanticscholar.org/CorpusID:252873309}
}

@inproceedings{Boork2015OfficeWiseE,
title={OfficeWise : Energy feedback in office workplaces},
author={Magdalena Boork and Anton Gustafsson and Sander Dijkhuis and Cecilia Katzeff},
year={2015},
url={https://api.semanticscholar.org/CorpusID:113985429}
}

@article{Morse2022CodesignOT,
title={Co-design of the Transgender Health Information Resource: Web-Based Participatory Design},
author={Bradford W. Morse and Andrey Soares and Kate Ytell and Kristen Desanto and Marvyn Allen and Brooke Dorsey Holliman and Rita S Lee and Bethany M. Kwan and Lisa M. Schilling},
journal={Journal of Participatory Medicine},
year={2022},
volume={15},
url={https://api.semanticscholar.org/CorpusID:253558255}
}

@article{Pierre2021GettingOT,
title={Getting Ourselves Together: Data-centered participatory design research \& epistemic burden},
author={Jennifer Pierre and Roderic N. Crooks and Morgan E. Currie and Britt S. Paris and Irene V. Pasquetto},
journal={Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems},
year={2021},
url={https://api.semanticscholar.org/CorpusID:233987721}
}

@article{Knowles2021ParticipatoryCO,
title={Participatory codesign of patient involvement in a Learning Health System: How can data‐driven care be patient‐driven care?},
author={Sarah E Knowles and Dawn Allen and Ailsa Donnelly and Jackie Flynn and Kay Gallacher and Annmarie Lewis and Grace-anne McCorkle and Manoj Mistry and Pat Walkington and Lisa Brunton},
journal={Health Expectations},
year={2021},
volume={25},
pages={103 - 115},
url={https://api.semanticscholar.org/CorpusID:239035887}
}

@article{Chowdhury2019CollaborativeWF,
title={Collaborative Workspace for Employee Engagement Leveraging Social Media Architecture},
author={Khairul Chowdhury and Diego Lamacchia},
journal={Day 3 Wed, November 13, 2019},
year={2019},
url={https://api.semanticscholar.org/CorpusID:209069981}
}

@article{stervang2022DevelopmentOA,
title={Development of a health information system to promote emergency care pathways: A participatory design study},
author={Christina {\O}stervang and Annmarie Touborg Lassen and Thomas Schmidt and E. Coyne and Karin Brochstedt Dieperink and Charlotte Myhre Jensen},
journal={Digital Health},
year={2022},
volume={8},
url={https://api.semanticscholar.org/CorpusID:255151877}
}

@article{Panagiotidou2022CommunicatingQU,
title={Communicating qualitative uncertainty in data visualization},
author={Georgia Panagiotidou and Andrew Vande Moere},
journal={Information Design Journal},
year={2022},
url={https://api.semanticscholar.org/CorpusID:253408603}
}

@inproceedings{Chiossi2023PhysioCHITB,
title={PhysioCHI: Towards Best Practices for Integrating Physiological Signals in HCI},
author={Francesco Chiossi and Ekaterina R. Stepanova and Benjamin Tag and Monica Perusqu{\'i}a-Hern{\'a}ndez and Alexandra Kitson and Arindam Dey and Sven Mayer and Abdallah El Ali},
year={2023},
url={https://api.semanticscholar.org/CorpusID:266053756}
}

@inproceedings{GrabskaGradzinska2022DataSV,
title={Data Structure Visualization as an Aid in Collaborative Game Design},
author={Iwona Grabska-Gradzinska and Ewa Janina Grabska and Wojciech Palacz and Leszek A. Nowak and Jan K. Argasiński},
booktitle={Cooperative Design, Visualization, and Engineering},
year={2022},
url={https://api.semanticscholar.org/CorpusID:252408277}
}

@article{Xue2019AffectiveWallDC,
title={AffectiveWall: Designing Collective Stress-Related Physiological Data Visualization for Reflection},
author={Mengru Xue and Rong-Hao Liang and Bin Yu and Mathias Funk and Jun Hu and Loe M. G. Feijs},
journal={IEEE Access},
year={2019},
volume={7},
pages={131289-131303},
url={https://api.semanticscholar.org/CorpusID:203162524}
}
139 changes: 139 additions & 0 deletions references_modified.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
@inproceedings{Boork2015OfficeWiseE,
author = {Magdalena Boork and Anton Gustafsson and Sander Dijkhuis and Cecilia Katzeff},
title = {OfficeWise : Energy feedback in office workplaces},
url = {https://api.semanticscholar.org/CorpusID:113985429},
year = {2015}
}

@inproceedings{Chiossi2023PhysioCHITB,
DOI = {10.1145/3613905.3636286},
author = {Francesco Chiossi and Ekaterina R. Stepanova and Benjamin Tag and Monica Perusqu{\'i}a-Hern{\'a}ndez and Alexandra Kitson and Arindam Dey and Sven Mayer and Abdallah El Ali},
title = {PhysioCHI: Towards Best Practices for Integrating Physiological Signals in HCI},
url = {https://api.semanticscholar.org/CorpusID:266053756},
year = {2023}
}

@article{Chowdhury2019CollaborativeWF,
DOI = {10.2118/197325-ms},
author = {Khairul Chowdhury and Diego Lamacchia},
journal = {Day 3 Wed, November 13, 2019},
title = {Collaborative Workspace for Employee Engagement Leveraging Social Media Architecture},
url = {https://api.semanticscholar.org/CorpusID:209069981},
year = {2019}
}

@inproceedings{GrabskaGradzinska2022DataSV,
DOI = {10.1007/978-3-031-16538-2_24},
author = {Iwona Grabska-Gradzinska and Ewa Janina Grabska and Wojciech Palacz and Leszek A. Nowak and Jan K. Argasiński},
booktitle = {Cooperative Design, Visualization, and Engineering},
title = {Data Structure Visualization as an Aid in Collaborative Game Design},
url = {https://api.semanticscholar.org/CorpusID:252408277},
year = {2022}
}

@inproceedings{Huron2020IEEEVW,
author = {Samuel Huron and Benjamin Bach and Uta Hinrichs and Mandy Keck and Jonathan Roberts},
title = {IEEE VIS Workshop on Data Vis Activities to Facilitate Learning, Reflecting, Discussing, and Designing},
url = {https://api.semanticscholar.org/CorpusID:221406934},
year = {2020}
}

@article{Karim2022ParticipatoryDF,
DOI = {10.48550/arXiv.2210.06469},
author = {Raida Karim and Edgar L{\'o}pez and Elin A. Bj{\"o}rling and Maya Cakmak},
journal = {ArXiv},
title = {Participatory Design for Mental Health Data Visualization on a Social Robot},
url = {https://api.semanticscholar.org/CorpusID:252873309},
volume = {abs/2210.06469},
year = {2022}
}

@article{Khowaja2022APD,
DOI = {10.2196/25880},
author = {Kamran Khowaja and Wafa Waheeda Syed and Meghna Singh and Shahrad Taheri and Odette Chagoury and Dena Al-Thani and Micha{\"e}l Aupetit},
journal = {JMIR Human Factors},
title = {A Participatory Design Approach to Develop Visualization of Wearable Actigraphy Data for Health Care Professionals: Case Study in Qatar},
url = {https://api.semanticscholar.org/CorpusID:248024869},
volume = {9},
year = {2022}
}

@article{Knowles2021ParticipatoryCO,
DOI = {10.1111/hex.13345},
author = {Sarah E Knowles and Dawn Allen and Ailsa Donnelly and Jackie Flynn and Kay Gallacher and Annmarie Lewis and Grace-anne McCorkle and Manoj Mistry and Pat Walkington and Lisa Brunton},
journal = {Health Expectations},
pages = {103 - 115},
title = {Participatory codesign of patient involvement in a Learning Health System: How can data‐driven care be patient‐driven care?},
url = {https://api.semanticscholar.org/CorpusID:239035887},
volume = {25},
year = {2021}
}

@article{Morse2022CodesignOT,
DOI = {10.2196/38078},
author = {Bradford W. Morse and Andrey Soares and Kate Ytell and Kristen Desanto and Marvyn Allen and Brooke Dorsey Holliman and Rita S Lee and Bethany M. Kwan and Lisa M. Schilling},
journal = {Journal of Participatory Medicine},
title = {Co-design of the Transgender Health Information Resource: Web-Based Participatory Design},
url = {https://api.semanticscholar.org/CorpusID:253558255},
volume = {15},
year = {2022}
}

@article{Panagiotidou2022CommunicatingQU,
DOI = {10.1075/idj.22014.pan},
author = {Georgia Panagiotidou and Andrew Vande Moere},
journal = {Information Design Journal},
title = {Communicating qualitative uncertainty in data visualization},
url = {https://api.semanticscholar.org/CorpusID:253408603},
year = {2022}
}

@article{Pierre2021GettingOT,
DOI = {10.1145/3411764.3445103},
author = {Jennifer Pierre and Roderic N. Crooks and Morgan E. Currie and Britt S. Paris and Irene V. Pasquetto},
journal = {Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems},
title = {Getting Ourselves Together: Data-centered participatory design research \& epistemic burden},
url = {https://api.semanticscholar.org/CorpusID:233987721},
year = {2021}
}

@article{Schrder2023TellingSW,
DOI = {10.48550/arXiv.2312.01164},
author = {Kay Schr{\"o}der and Wiebke Eberhardt and Poornima Belavadi and Batoul Ajdadilish and Nanette van Haften and Ed Overes and Taryn Brouns and Andr{\'e} Calero Valdez},
journal = {ArXiv},
title = {Telling stories with data - A systematic review},
url = {https://api.semanticscholar.org/CorpusID:265609919},
volume = {abs/2312.01164},
year = {2023}
}

@article{Sderlund2023RecognizingNC,
DOI = {10.1017/dsj.2023.14},
author = {Carina S{\"o}derlund},
journal = {Design Science},
title = {Recognizing non-designers’ contribution in the process of designing information on visual management boards: a metaphorical approach},
url = {https://api.semanticscholar.org/CorpusID:259949509},
volume = {9},
year = {2023}
}

@article{stervang2022DevelopmentOA,
DOI = {10.1177/20552076221145856},
author = {Christina {\O}stervang and Annmarie Touborg Lassen and Thomas Schmidt and E. Coyne and Karin Brochstedt Dieperink and Charlotte Myhre Jensen},
journal = {Digital Health},
title = {Development of a health information system to promote emergency care pathways: A participatory design study},
url = {https://api.semanticscholar.org/CorpusID:255151877},
volume = {8},
year = {2022}
}

@article{Xue2019AffectiveWallDC,
DOI = {10.1109/ACCESS.2019.2940866},
author = {Mengru Xue and Rong-Hao Liang and Bin Yu and Mathias Funk and Jun Hu and Loe M. G. Feijs},
journal = {IEEE Access},
pages = {131289-131303},
title = {AffectiveWall: Designing Collective Stress-Related Physiological Data Visualization for Reflection},
url = {https://api.semanticscholar.org/CorpusID:203162524},
volume = {7},
year = {2019}
}
27 changes: 27 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: osx-arm64
backoff=2.2.1=pypi_0
bibtexparser=1.4.1=pypi_0
bzip2=1.0.8=h620ffc9_4
ca-certificates=2023.12.12=hca03da5_0
certifi=2023.11.17=pypi_0
charset-normalizer=3.3.2=pypi_0
crossref=0.1.2=pypi_0
idna=3.6=pypi_0
libffi=3.4.4=hca03da5_0
ncurses=6.4=h313beb8_0
openssl=3.0.12=h1a28f6b_0
pip=23.3.1=py311hca03da5_0
pyparsing=3.1.1=pypi_0
python=3.11.5=hb885b13_0
readline=8.2=h1a28f6b_0
requests=2.31.0=pypi_0
setuptools=68.2.2=py311hca03da5_0
sqlite=3.41.2=h80987f9_0
tk=8.6.12=hb8d0fd4_0
tzdata=2023c=h04d1e81_0
urllib3=2.1.0=pypi_0
wheel=0.41.2=py311hca03da5_0
xz=5.4.5=h80987f9_0
zlib=1.2.13=h5a0b063_0

0 comments on commit 82c4f79

Please sign in to comment.