Skip to main content

A Bibliometric and Scientometric Library Powered with Artificial Intelligence Tools

Project description

Logo

Citation

PEREIRA, V.; BASILIO, M.P.; SANTOS, C.H.T. (2025). PyBibX: A Python Library for Bibliometric and Scientometric Analysis Powered with Artificial Intelligence Tools. Data Technologies and Applications. Vol. 59, Iss. 2, pp. 302-337. doi: https://doi.org/10.1108/DTA-08-2023-0461

pybibx Web App

New to Python or prefer a graphical interface? The pybibx Web App lets you run your analysis in clicks, not lines of code.

import pybibx

# Start the web service using:
pybibx.web_app()

# Terminate the web service using:
pybibx.web_stop()

Lab

This Google Colab Demo is intended for quick demos only. For the best experience, run the Web UI locally or open it directly in a full browser.

Introduction

Here is a revised version you can paste:

A Bibliometric and Scientometric Python library that uses raw files generated by Scopus (.bib files or .csv files), WoS (Web of Science) (.bib files), PubMed (.txt files), and OpenAlex. For OpenAlex, the library supports JSON files obtained through the OpenAlex API and CSV (standard) files exported from the OpenAlex website. Also powered by Advanced AI technologies for analyzing bibliometric, scientometric, and textual data.

To export the correct file formats from Scopus, Web of Science, PubMed, and OpenAlex, follow these steps:

a) Scopus: Search, select articles, click Export, choose BibTeX or CSV, select all fields, and click Export again. When using the CSV format, the exported files include the References for the articles.

b) WoS: Search, select articles, click Export, choose Save to Other File Formats, select BibTeX, choose all fields, and click Send.

c) PubMed: Search, select articles, click Save, choose PubMed format, and click Save to download a .txt file. The exported files do not contain the References for the articles.

d) OpenAlex: API Option -> Retrieve records through the OpenAlex REST API and save the response as a .json file. OpenAlex’s official programmatic interface is its API, designed for structured, machine-readable access (OpenAlex Developers). Website Option -> Search and filter records in the OpenAlex website, click Export, and choose CSV (standard). In particular, from the Website option, the exported files do not contain the References for the articles.

General Capabilities:

  • a) Works with Scopus (.bib files or .csv files), WoS (.bib files), PubMed (.txt files), and OpenAlex (API JSON files and website CSV (standard) files).
  • b) Identification and Removal of duplicates
  • c) Identification of documents per type
  • d) Generates a Health Report to evaluate the quality of the .bib/.csv file
  • e) Generates an EDA (Exploratory Data Analysis) Report: Publications Timespan, Total Number of Countries, Total Number of Institutions, Total Number of Sources, Total Number of References, Total Number of Languages (and also the number of docs for each language), Total Number of Documents, Average Documents per Author, Average Documents per Institution, Average Documents per Source, Average Documents per Year, Total Number of Authors, Total Number of Authors Keywords, Total Number of Authors Keywords Plus, Total Single-Authored Documents, Total Multi-Authored Documents, Average Collaboration Index, Max H-Index, Total Number of Citations, Average Citations per Author, Average Citations per Institution, Average Citations per Document, Average Citations per Source
  • f) Creates an ID (Identification) for each Document, Authors, Sources, Institutions, Countries, Authors' Keywords, Keywords Plus and References. The IDs can be used in graphs/plots to obtain a cleaner visualization
  • g) Generates Profiling Functions that are a detailed summary (profile) for any selected entity: Authors, Sources, Institutions, Countries, Authors' Keywords, Keywords Plus and References. For each entity, the function aggregates key statistics and metadata, including the list of associated publications, total and average citations, time span of activity, and more.
  • h) Creates an Authors's Metrics Table with H-Index, E-Index, G-Index, M-Index and J-Index
  • i) Creates a WordCloud from the Abstracts, Titles, Authors Keywords or Keywords Plus
  • j) Creates a N-Gram Bar Plot (interactive plot) from the Abstracts, Titles, Authors Keywords or Keywords Plus
  • k) Creates a Projection (interactive plot) of the documents based on the Abstracts, Titles, Authors Keywords or Keywords Plus
  • l) Creates a Term Growth Plot (interactive plot) showing the temporal evolution of terms from Abstracts, Titles, Sources, Author Keywords, or Keywords Plus.
  • m) Creates a Sankey Diagram (interactive plot) with any combination of the following keys: Authors, Countries, Institutions, Journals, Auhors_Keywords, Keywords_Plus, and/or Languages
  • n) Creates a XY Bar Chart (interactive plot) that displays the count of a specified Y-key for each category defined by a specified X-key. The plot visualizes the distribution of entities such as Authors, Countries, Institutions, Journals, Authors_Keywords, Keywords_Plus, and/or Languages. For example, it can show how many Authors publications are associated with each Country
  • o) Creates a XY Heatmap (interactive plot) that displays the count and papers' ID of a specified Y-key for each category defined by a specified X-key. The plot visualizes the distribution of entities such as Authors, Countries, Institutions, Journals, Authors_Keywords, Keywords_Plus, and/or Languages. For example, it can show how many Authors publications are associated with each Authors_Keywords and the papers associated to them.
  • p) Creates a TreeMap (interactive plot) from the Authors, Countries, Institutions, Journals, Auhors_Keywords, or Keywords_Plus
  • q) Creates an Authors Productivity Plot (interactive plot) It informs for each year the documents (IDs) published for each author
  • r) Creates a Countries Productivity Plot (interactive plot) It informs for each year the documents (IDs) published for each country (each author's country)
  • s) Creates a Institutions Productivity Plot (interactive plot) It informs for each year the documents (IDs) published for each institution (each author's institution)
  • t) Creates a Sources Productivity Plot (interactive plot) It informs for each year the documents (IDs) published for each source (journal)
  • u) Creates a Bar Plot (interactive plot) for the following statistics: Documents per Year, Citations per Year, Past Citations per Year, Lotka's Law, Sources per Documents, Sources per Citations, Authors per Documents, Authors per Citations, Authors per H-Index, Bradford's Law (Core Sources 1, 2 or 3), Institutions per Documents, Institutions per Citations, Countries per Documents, Countries per Citations, Language per Documents, Keywords Plus per Documents and Authors' Keywords per Documents
  • v) Creates a Top Reference Plot (interactive plot) to visualize the top cited References
  • w) Creates a Citation Trajectory Plot (interactive plot) that shows the yearly citation counts for each selected Reference
  • x) Creates a Citation Matrix that shows for each Reference, which citing articles (with their publication years) mentioned that Reference, the Unique Reference ID, and the Reference's publication year
  • y) Creates a RPYS-Reference Publication Year Spectroscopy (interactive plot) to visualize citation patterns over the years. Revealing the peaks in reference publication years (trough Gaussian Filters) that might indicate influential works or shifts in research trends

Network Capabilities:

  • a) Creates a Top Reference Set Matrix, which, for a given group size n, identifies and returns the most frequently co-cited Reference groups of size n
  • b) Creates a Reference Co-Citation Network (interactive plot) that visually displays the top n References that are most frequently cited together with a target Reference
  • c) Collaboration Plot between Authors, Countries, Institutions, Authors' Keywords or Keywords Plus
  • d) Computes Hubs & Authorities scores for papers in a citation network, and can also find the top-ranked nodes per decade.
  • e) Identifies Sleeping Beauties papers that were uncited for a long time but later received sudden attention.
  • f) Identifies the Princes of the Sleeping Beauties.
  • g) Citation Analysis (interactive plot) between Documents (Blue Nodes) and Citations (Red Nodes). Documents and Citations can be highlighted for better visualization
  • h) Collaboration Analysis (interactive plot) between Authors, Countries, Institutions or Adjacency Analysis (interactive plot) between Authors' Keywords or Keywords Plus. Collaboration and Adjacency can be highlighted for better visualization
  • i) Similarity Analysis (interactive plot) can be performed using coupling or cocitation methods
  • j) World Map Collaboration Analysis (interactive plot) between Countries in a Map
  • k) Main Path Analysis identifies the main citation backbone of the field using search path methods such as SPC, SPLC, or SPNP
  • l) Creates a Temporal Scholarly Graph Explorer (interactive HTML plot) to explore the bibliometric dataset as a heterogeneous temporal graph. It supports timeline, force, and ego views; allows centering the analysis on Papers, References, Authors, Journals, Institutions, Countries, Authors' Keywords, or Keywords Plus; and can export a standalone HTML file for interactive exploration.

Scientometric Capabilities:

  • a) Performs Portfolio Analysis to classify entities, such as Authors, Journals, Institutions, Countries, Authors' Keywords or Keywords Plus, according to productivity and impact indicators.
  • b) Performs Specialization Analysis to measure how concentrated or diversified the scientific production is across entities, themes, or conceptual fields.
  • c) Computes Collaboration Impact indicators to evaluate how collaborative patterns relate to scientific visibility, citation performance, and productivity.
  • d) Performs Burst Detection to identify Papers, Authors, Journals, Authors' Keywords, Keywords Plus or other entities with sudden increases in scientific attention over time.
  • e) Performs Knowledge Diffusion Analysis to trace how concepts move between entities, using heatmaps, chord diagrams, Sankey diagrams, or automatic visualization selection.
  • f) Computes Reference Diversity indicators for Papers, such as breadth, depth, temporal diversity, and concentration of cited References.
  • g) Computes the Disruption Index to identify whether papers are more disruptive or more developmental within the citation network.

Artificial Intelligence Capabilities:

  • a) Topic Modelling using BERTopic to cluster documents by topic
  • b) Visualize topics distribution
  • c) Visualize topics by the most representative words
  • d) Visualize documents projection and clusterization by topic
  • e) Visualize topics heatmap
  • f) Visualize topics over time
  • g) Find the most representative documents from each topic
  • h) Find the most representative topics according to a word
  • i) Find how each word in its abstract semantically aligns with all topics in the model
  • j) Creates W2V Embeddings from Abstracts
  • k) Find Documents based in words
  • m) Calculates the cosine similarity between two words
  • n) Make operations between W2V Embeddings
  • o) Visualize W2V Embeddings operations
  • p) Creates Sentence Embeddings from Abstracts, Titles, Authors Keywords or Keywords Plus
  • q) Abstractive Text Summarization using PEGASUS on a set of selected documents or all documents
  • r) Abstractive Text Summarization using chatGPT on a set of selected documents or all documents. Requires the user to have an API key (https://platform.openai.com/account/api-keys)
  • s) Abstractive Text Summarization using Gemini on a set of selected documents or all documents. Requires the user to have an API key (https://ai.google.dev/gemini-api/)
  • t) Extractive Text Summarization using BERT on a set of selected documents or all documents
  • u) Ask chatGPT to analyze the following results: EDA Report, WordCloud, N-Grams, Evolution Plot, Sankey Diagram, Authors Productivity Plot, Countries Productivity Plot, Institutions Productivity Plot, Sources Productivity Plot, Bar Plots, Citation Analysis, Collaboration Analysis, Similarity Analysis, and World Map Collaboration Analysis (consult Example 08). Requires the user to have an API key (https://platform.openai.com/account/api-keys)
  • v) Ask Gemini to analyze the following results: EDA Report, WordCloud, N-Grams, Evolution Plot, Sankey Diagram, Authors Productivity Plot, Countries Productivity Plot, Institutions Productivity Plot, Sources Productivity Plot, Bar Plots, Citation Analysis, Collaboration Analysis, Similarity Analysis, and World Map Collaboration Analysis (consult Example 09). Requires the user to have an API key (https://ai.google.dev/gemini-api/)

Correction and Manipulation Capabilities:

  • a) Filter the .bib, .csv or .txt file by Year, Sources, Bradford Law Cores, Countries, Languages and/or Abstracts (Documents with Abstracts)
  • b) Merge Authors, Institutions, Countries, Languages, Sources and/or References that have multiple entries
  • c) Merge different or the same database files one at a time. The preference for information preservation is given to the old database, so the order of merging matters (consult Examples 04 and 05)

Usage

  1. Install
pip install pybibx
  1. Try it in Colab:

Acknowledgement

This section indicates the libraries that inspired pybibx

And to all the people who helped to improve or correct the code. Thank you very much!

  • Fabio Ribeiro von Glehn (29.DECEMBER.2022) - UFG - Federal University of Goias (Brazil)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybibx-5.9.0.tar.gz (255.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybibx-5.9.0-py3-none-any.whl (251.4 kB view details)

Uploaded Python 3

File details

Details for the file pybibx-5.9.0.tar.gz.

File metadata

  • Download URL: pybibx-5.9.0.tar.gz
  • Upload date:
  • Size: 255.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for pybibx-5.9.0.tar.gz
Algorithm Hash digest
SHA256 adf87ba57fd93219c1373ec13426a3a750a97b116a3c752de154aed133d12cb6
MD5 ca4237067321b6078a101f4c220b9331
BLAKE2b-256 d5dad3002880e25f5b9ff8b4ca9377a18ec17c11de9cfe28f26765793a3a1975

See more details on using hashes here.

File details

Details for the file pybibx-5.9.0-py3-none-any.whl.

File metadata

  • Download URL: pybibx-5.9.0-py3-none-any.whl
  • Upload date:
  • Size: 251.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for pybibx-5.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d833be19d83c97db5348830ec5908ebbf5fbfbee11075674ebc2bd63d62e2f3
MD5 8151d4477f5f26b8bd39d53d78dd9e9f
BLAKE2b-256 b15f5d77d4bc2c9ca6f7468aab205ad4aafe2110d49e848b4b02a0fbc6c36e1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page