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) diff --git a/src/bibx/__init__.py b/src/bibx/__init__.py index f1adfc4..1a64d3e 100644 --- a/src/bibx/__init__.py +++ b/src/bibx/__init__.py @@ -23,11 +23,12 @@ "query_openalex", "read_any", "read_scopus_bib", + "read_scopus_csv", "read_scopus_ris", "read_wos", ] -__version__ = "0.6.1" +__version__ = "0.6.2" def query_openalex( @@ -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: