From f4601edb96186a47f4a0e3193596c2a239a1d54f Mon Sep 17 00:00:00 2001 From: Oscar Arbelaez Date: Sat, 22 Feb 2025 18:16:58 +0000 Subject: [PATCH 1/3] Try csv before bib, bib takes a while to error out on CSV files --- src/bibx/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bibx/__init__.py b/src/bibx/__init__.py index f1adfc4..7618621 100644 --- a/src/bibx/__init__.py +++ b/src/bibx/__init__.py @@ -23,6 +23,7 @@ "query_openalex", "read_any", "read_scopus_bib", + "read_scopus_csv", "read_scopus_ris", "read_wos", ] @@ -77,7 +78,7 @@ def read_wos(*files: TextIO) -> Collection: def read_any(file: TextIO) -> Collection: """Try to read a file with the supported formats.""" - for handler in (read_wos, read_scopus_ris, read_scopus_bib, read_scopus_csv): + for handler in (read_wos, read_scopus_ris, read_scopus_csv, read_scopus_bib): try: return handler(file) except BibXError as e: From d21ee0d1b32099bb228ed18c048b2e1e414d94e8 Mon Sep 17 00:00:00 2001 From: Oscar Arbelaez Date: Sat, 22 Feb 2025 18:17:18 +0000 Subject: [PATCH 2/3] Update README. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 81a0fac..a6a79eb 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ A python library with bibliographic and biblio-metric tools. ## Features - Reads Web of Science (ISI) files. -- Reads scopus bibtex files. -- Merges scopus and ISI bibliographic collections. +- Reads scopus bibtex, ris and csv files. +- Merges bibliographic collections. - Implements the [SAP][sap] algorithm. - More features in the roadmap... @@ -19,10 +19,10 @@ A python library with bibliographic and biblio-metric tools. Here's how to apply the sap algorithm: ```python -from bibx import read_scopus, Sap +from bibx import read_scopus_bib, Sap with open('./docs/examples/scopus.bib') as f: - c = read_scopus(f) + c = read_scopus_bib(f) s = Sap() g = s.create_graph(c) g = s.clean_graph(g) From bcf8a919f5ddc1026744f72d1f71a2019dc822d7 Mon Sep 17 00:00:00 2001 From: Oscar Arbelaez Date: Sat, 22 Feb 2025 18:17:57 +0000 Subject: [PATCH 3/3] Update version --- src/bibx/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bibx/__init__.py b/src/bibx/__init__.py index 7618621..1a64d3e 100644 --- a/src/bibx/__init__.py +++ b/src/bibx/__init__.py @@ -28,7 +28,7 @@ "read_wos", ] -__version__ = "0.6.1" +__version__ = "0.6.2" def query_openalex(