Protocol Citation: Leonardo Zilli, Erica Andreose, Salvatore Di Marzo 2024. Exploring the Coverage of the Scientific Production of the University of Bologna in OpenCitations. protocols.io https://dx.doi.org/10.17504/protocols.io.3byl497wjgo5/v5Version created by Leonardo Zilli
License: This is an open access protocol distributed under the terms of the Creative Commons Attribution License,  which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited
Protocol status: Working
We use this protocol and it's working
Created: April 12, 2024
Last Modified: September 20, 2024
Protocol Integer ID: 106942
Funders Acknowledgement:
University of Bologna
Grant ID: https://ror.org/01111rn36
Abstract
We present a step-by-step methodology for tracking the coverage of publications available in the CRIS (Current Research Information System) infrastructure of the University of Bologna and implemented in the IRIS platform, within the databases of OpenCitations.
The methodology filters and transforms data dumps from IRIS and OpenCitations Meta and Index to create novel datasets that are used to perform quantitative analysis on the subject matter. Specifically, we quantify the proportion of IRIS publications included in OpenCitations Meta, examine the types of publications best covered, evaluate the number of citations within OpenCitations Index involving IRIS publications as either citing or cited entities, and the extent to which these citations reference works outside of IRIS.
The research questions addressed in the study are:
What is the coverage of the publications available in IRIS (strictly concerning research conducted within the University of Bologna) in OpenCitations Meta?
What are the types of publications that are better covered in the portion of OpenCitations Meta covered by IRIS?
What is the amount of citations (according to OpenCitations Index) coming from the IRIS publications that is involved in OpenCitations Meta (as citing entity and as cited entity)?
How many of these citations come from and go to publications that are not included in IRIS?
How many of these citations involve publications in IRIS as both citing and cited entities?
Guidelines
To allow complete reproducibility of the protocol, links to the data used are provided here.
Download link for the UNIBO IRIS bibliographic data dump, dated 4 June 2024:
The tables and values contained in the "expected result" snippets in this protocol are to be intended as reduced exemplars of the output expected from each step. The actual data may change depending on the version of the datasets used (e.g. a new version of Meta).
Safety warnings
It is recommended to run the code on a machine with at least 16gb of RAM memory available.
Before start
Note: Python 3.11.5 or previous versions are required to run the software.
Prepare the working environment by executing the following commands:
In case you would want to run optional step 5.2 to match the id-less entities, create a .env file in the root folder of the software and store your OpenCitations API key (which you can obtain here) in it like so:
Data preparation
Data preparation
The first data dump used in the research comes from the IRIS infrastructure of the University of Bologna.
It comprises seven CSV files that describe 304,983 bibliographic entities and has a total size of 267 MB.
Each CSV file contains metadata regarding specific aspects of the bibliographic entities. The files are the following:
"ODS_L1_IR_ITEM_CON_PERSON.csv": information about the people involved in the publications (authors, editors, etc.)
"ODS_L1_IR_ITEM_DESCRIPTION.csv": the string of the authors and other related metadata of publications
"ODS_L1_IR_ITEM_IDENTIFIER.csv": the identifiers (including DOIs) of publications
"ODS_L1_IR_ITEM_LANGUAGE.csv": the language in which the publication has been written (when applicable)
"ODS_L1_IR_ITEM_MASTER_ALL.csv": basic metadata information of publications (title, date of publication, type of publication)
"ODS_L1_IR_ITEM_PUBLISHER.csv": the publishers of publications
"ODS_L1_IR_ITEM_RELATION.csv": additional metadata related to the context of publications (publication venue, editors, etc.)
The dataset is downloaded from here and placed in the 'data/' folder of our working directory. Unzipping the archive is not required.
The second data dump used in the research comes from OpenCitations Meta.
This dataset contains all the bibliographic metadata (in CSV format) included in OpenCitations Meta. In particular, each line of the CSV file defines a bibliographic resource, and includes the following information:
[field "id"]Â the IDs for the document described within the line;
[field "title"]Â the document's title;
[field "author"]Â the authors of the document;
[field "pub_date"]Â the date of publication;
[field "venue"]Â information about the venue, i.e. the bibliographical resource to which the document belongs;
[field "volume"]Â the volume sequence identifier (e.g. a number) to which the entity belongs;
[field "issue"]Â the issuesequence identifier (e.g. a number) to which the entity belongs;
[field "page"]Â the page range of the resource described in the row;
[field "type"]Â the type of resource described in the row;
[field "publisher"]Â the entity responsible for making the resource available;
[field "editor"]Â the editors of the document.
This version of the dataset contains:
114,703,611 bibliographic entities
298,847,794 authors and 2,465,711 editors
711,711 publication venues
241,783 publishers
The zipped dataset weighs 11 GB, while, when extracted, it weighs 46 GB on an ext4 filesystem.
Additional information about OpenCitations Meta at official webpage.
The dataset is downloaded from here and placed it in the 'data/' folder of the software's directory. Unzipping the archive is not required.
The third data dump used in the research comes from the OpenCitations Index.
This dataset contains all the citation data (in CSV format) included in the OpenCitation Index, released on November 29, 2023. In particular, each line of the CSV file defines a citation, and includes the following information:
[field "oci"]Â the Open Citation Identifier (OCI) for the citation;
[field "citing"]Â the OMID of the citing entity;
[field "cited"]Â the OMID of the cited entity;
[field "creation"]Â the creation date of the citation (i.e. the publication date of the citing entity);
[field "timespan"]Â the time span of the citation (i.e. the interval between the publication date of the cited entity and the publication date of the citing entity);
[field "journal_sc"]Â it records whether the citation is a journal self-citations (i.e. the citing and the cited entities are published in the same journal);
[field "author_sc"]Â it records whether the citation is an author self-citation (i.e. the citing and the cited entities have at least one author in common).
The information for each citation is sourced from OpenCitations Meta.
This version of the dataset contains:
1,975,552,846 citations;
89,920,081 bibliographic resources.
The size of the zipped archive is 26.8 GB, while the size of the unzipped CSV file is 171 GB.
Creation of a unique list of PIDs
Creation of a unique list of PIDs
This section will create a list list of unique identifiers from the IRIS dump,
which we use to search for BRs within OC Meta. Specifically, we extract all entities in
IRIS with DOI, ISBN, or PMID identifiers, as these are the only persistent IDs (PID) that are present both in IRIS and OCMeta
We first read the "ODS_L1_IR_ITEM_MASTER_ALL.csv" and "ODS_L1_IR_ITEM_MASTER_ALL.csv" files of the IRIS dataset and we join them by the values ITEM_ID column.
We then filter the resulting dataframe to keep only the entries that have at least a non-null DOI, ISBN or PMID.
We also keep the OWNING_COLLECTION column to denote the labels of the types of the entries.
Expected result
ITEM_ID
IDE_DOI
IDE_ISBN
IDE_PMID
OWNING_COLLECTION
156671
"10.1688/9783866187337"
"9783866186330; 9783866187337"
null
41
9754
null
"9788867414727"
null
57
From this filtering process the first of the datasets produced by the research is created, Iris No ID, containing the metadata of the IRIS records without a DOI, ISBN, or PMI.
The script to execute to create this dataset is the following:
We extract a list of all the PIDs for each entry of the filtered IRIS dataframe by extracting the values of the columns IDE_DOI, IDE_ISBN, and IDE_PMID. Malformed identifiers are sanitized and invalid ones discarded, and all identifiers are unified in format and converted to lowercase for consistency with the Meta dataset.
Finally, they are all stored in a single list that we'll use to filter the Meta dump.
Expected result
iris_id
iris_type
id
156671
41
"doi:10.1688/9783866187337"
148354
35
"doi:10.1007/s00180-012-0319-z"
146851
35
"doi:10.1002/cmdc.201100471"
147819
35
"doi:10.1097/gme.0b013e318240fe3d"
148141
57
"doi:10.1109/aero.2012.6187311"
In order to remove the duplicates present in the list, we first filter this list to keep only the first occurrence of cases in which the same IRIS record had more than one PID associated to it.
Given how the list has been constructed (DOIs are listed before PMIDs and ISBNs are last), the filtering is applied with a hierarchical order of preference for the picking of a single PID for each IRIS entry.
Next, multiple IRIS records associated to the same PID are deduplicated, keeping only one occurrence of each PID. To pick the best entry out of the records that shared the same PID, the three types of identifier are processed separately.
To deduplicate DOIs, the following methodology is implemented:
Out of the duplicates with the same DOI and the same type, the first one occurring in the list is kept
For the duplicates with the same DOI and different type, the duplicates are sorted according to a priority list based on the type of the record, and the resulting top record is kept.
The preference list for DOIs is devised as follows, from highest priority to lowest:
35 - 1.01 Articolo in rivista
50 - 3.02 Curatela
41 - 2.01 Capitolo / saggio in libro
57 - 4.01 Contributo in Atti di convegno
To deduplicate PMIDs, first the duplicates with type '40 - Abstract' are removed and the first occurrence of each PMID with type '35 - Articolo in rivista' are kept.
To deduplicate ISBNs, the same methodology used for the DOIs, with a different priority list, is implemented:
Out of the duplicates with the same ISBN and the same type, the first one occurring in the list is kept
For the duplicates with the same ISBN and different type, the duplicates are sorted according to a priority list based on the type of the record, and the resulting top record is kept.
The preference list for ISBNs is devised as follows, from highest priority to lowest:
49 - 3.01 Monografia
35 - 1.01 Articolo in rivista
Creation of the Iris In Meta dataset
Creation of the Iris In Meta dataset
Now that we have a clean, deduplicated list of external ids, we can filter the OCMeta dump to keep only the entries that have a PID that appears in the list.
This step will create a version of the OpenCitations Meta dump that is transformed and filtered according to the elements in the IRIS dump. This new dataset is stored in a parquet format that makes it lean and fast to query.
Note
If you want to skip the creation of this dataset, you can download the final processed dataset here.
Each CSV file in the Meta dump is transformed by applying the following operations:
Select the ['id', 'title', 'type'] columns
Extract from the 'id' column the omid, and the doi, isbn and pmid if present through a regex pattern search. These 4 different elements are inserted into a new column created for each.
Create a new 'id' column by combining the 'doi', 'isbn', and 'pmid' columns, preferring the first non-null value.
Get rid of the 'doi', 'isbn', and 'pmid' columns
Remove null values from the new 'id' column
Perform an inner join with the dois_isbns_pmids dataframe
Write the resulting dataframe to a .parquet file.
The resulting dataset will be composed of thousands of .parquet files, each corresponding to a CSV file of the OCMeta dump.
The version of the OCMeta dump used in this study is affected by cases of duplicates entries where the same BR appears multiple times with different OMIDs. To remove these duplicates, a priority dataframe is created, pictured below:
Meta type
IRIS type
priority
Journal articles
35 - 1.01 Articolo in rivista
0
Book chapters
41 - 2.01 Capitolo / saggio in libro
1
Book chapters
42 - 2.02 Prefazione
2
The dataset is filtered like so:
The whole dataset is read
A left join is performed between the dataset and the priority dataframe
The joined dataset is sorted by the priority column
The entries are grouped by their id
The first entry for each group is selected
The priority column is dropped
The type_label values are replaced with the actual label from IRIS
The dataset is saved to a single .parquet file
You can perform this step by executing the following command:
After the program has finished processing all the files, a 'iris_in_meta' folder should have appeared in 'data/'. Inside, of this folder is located the 'iris_in_meta.parquet' file containing the processed dataset.
The dataset has the following shape:
id
title
meta_type
omid
iris_id
iris_type
"doi:10.1007/s10334-004-0090-4"
"Versatile Coil Design And Positioning Of Transverse-Field RF Surface Coils For Clinical 1.5-T MRI Ap…
"journal article"
"omid:br/06101045684"
64745
"1.01 Articolo in rivista"
"doi:10.1136/archdischild-2017-314663"
"Tricky Case Of Takayasu Arteritis In A Young Child Presenting With Heart Failure And Femoral Pulses"
"journal article"
"omid:br/061402023621"
349405
"1.01 Articolo in rivista"
15m
It is also possible to attempt to retrieve and enrich the Iris in Meta dataset with the identifiers of the elements in the IRIS dump that do not have any DOI, ISBN, or PMID. This is done by querying the OpenCitations Meta SPARQL endpoint to search for each entitity by their title.
From our tests this optional step was able to retrieve 150 additional entities.
This is an optional step. This step has not been performed in the presented state of our research as its result can vary and it could lead to reproducibility incongruences.
We decided to report this only for completeness' sake.
This step will create a version of the OpenCitations Index dump that is filtered to keep only the records that are present in the Iris In Meta dataset. This is done by first extracting all the OMIDs from Iris in Meta dataset and filtering the OCIndex CSV files to retrieve all citations in which an OMID from the list appears as either 'cited' or as 'citing' entity.
This new dataset is also stored in the parquet format.
Note
If you want to skip the creation of the dataset, you can download the final dataset here.
WARNING: this will take around 1.5 hours to complete.
Expected result
After the program has finished processing all the files, a 'iris_in_index' folder should have appeared in 'data/'.
The dataset has the following shape:
id
citing
cited
"oci:06101850106-06201834752"
"omid:br/06101850106"
"omid:br/06201834752"
"oci:06101850106-06201834594"
"omid:br/06101850106"
"omid:br/06201834594"
"oci:06101850106-06301833659"
"omid:br/06101850106"
"omid:br/06301833659"
"oci:06101850106-06301833261"
"omid:br/06101850106"
"omid:br/06301833261"
"oci:06101850101-06301833742"
"omid:br/06101850101"
"omid:br/06301833742"
2h 30m
Research Question answering
Research Question answering
Each substep in this step will explain the answering process of each of the research questions mentioned in the abstract of this protocol.
You can decide to run the code for answering a specific RQ by specifying its number using the -rq argument of the script. It is also possible to answer all research questions at once by not specifying a specific one to the script, like so:
Command
python3 answer_research_questions.py
RQ1: What is the coverage of the publications available in IRIS, that strictly concern research conducted within the University of Bologna, in OpenCitations Meta?
The methodology used to answer this research question is the following:
Read the Iris In Metadataset.
Count the number of rows of the Iris in Meta dataset.
You can run the code to answer this research question using the following command:
Command
python3 answer_research_questions.py -rq 1
RQ2: What are the types of publications that are better covered in the portion of OpenCitations Meta covered by IRIS?
The methodology used to answer this research question is the following:
Read the Iris In Metadataset.
Group the Iris In Metadataset by the 'type' column.
Count the number of rows in each group.
You can run the code to answer this research question using the following command:
Command
python3 answer_research_questions.py -rq 2
RQ3: What is the amount of citations (according to OpenCitations Index) the IRIS publications included in OpenCitations Meta are involved in (as citing entity and as cited entity)?
The methodology used to answer this research question is the following:
Read the Iris In Indexdataset.
Count the number of rows of the Iris in Index dataset.
You can run the code to answer to this research question using the following command:
Command
python3 answer_research_questions.py -rq 3
RQ4: How many of these citations come from and go to publications that are not included in IRIS?
The methodology used to answer this research question is the following:
Read the Iris In Metadataset.
Extract a list of OMIDs from Iris In Meta by converting the 'omid' column to a list.
Read the Iris In Indexdataset.
Filter the 'citing' column of Iris In Index to keep only rows in which the value of the column is contained in the list of OMIDs.
Filter the 'cited' column of Iris In Index to keep only rows in which the value of the column is contained in the list of OMIDs.
Count the rows of each of the two dataframes resulting from the previous steps and concatenate the two values to a single dataframe.
You can run the code to answer to this research question using the following command:
Command
python3 answer_research_questions.py -rq 4
RQ5: How many of these citations involve publications in IRIS as both citing and cited entities?
This research question is answered by filtering the Iris in Index dataset to keep only the rows in which elements from the aforementioned omids_list are present in either the 'citing' or in the 'cited' columns. The length of the resulting dataframe is then computed to get the final answer.
The methodology used to answer this research question is the following:
Read the Iris In Metadataset.
Extract a list of OMIDs from Iris In Meta by converting the 'omid' column to a list.
Read the Iris In Indexdataset.
Filter the 'citing' and 'cited' columns of Iris In Index to keep only rows in which the value of both columns are contained in the list of OMIDs.
Count the rows of the dataframe resulting from the previous step.
You can run the code to answer to this research question using the following command: