Skip to main content

DOI-Extractor-OEG

License

Description

DOI-Extractor-OEG is a tool for extracting all paper's name and DOI from OEG publications.

They are extracted from two main resources:

  1. https://portalcientifico.upm.es/es/ipublic/entity/16247 , corresponding to all papers from OEG.

  2. ExistingPapers/ Papers.csv with already extracted data from some OEG papers.


The resulting information is placed in Outputs folder, which include:
  • A dois.txt containing, for each paper, the URL to the pdf if it was founded or if not the doi

  • A results.csv, containing the title and the doi of every paper found, in addition to OpenAlex primary location attribute

  • A results.json, containing the same information as results.csv but in a json format

Project Structure

DOI-Extractor-OEG
├───doiExtractor
|   ├───ExistingPapers
|   |   ├───name_doi_papers.csv
|   |   └───Papers.csv
|   ├───Outputs
|   |   ├───dois.csv
|   |   |───results.csv
|   |   └───results.json
|   ├───__init__.py
|   ├───doiExtractor.py
|   ├───main.py
|   └───openAlex.py
├───.gitignore
├───LICENSE.txt
├───README.MD
└───setup.py

doiExtractor.py - Contains the functions to extract the name and doi from portalcientifico.upm.es and to merge that information with the existing papers.

openAlex.py - Contains the functions to extract the primary location from openAlex and if the DOI was not found with doiExtractor.py, it tries to extract it using Open Alex.

Installation

  1. Clone the repository:
git clone https://github.com/ptorija/DOI-Extractor-OEG.git
  1. Change to the DOI-Extractor-OEG directory:
cd DOI-Extractor-OEG
  1. Create a virtual environment:
python -m venv .env
  1. Activate the virtual environment:

(Linux)

source .env/bin/activate

(Windows)

.env\Scripts\activate
  1. Install the package dependencies:
pip install -e .

Usage

Download the package from Pypi or install the tool from Github:

pip install DataExtractorOEG

The tool can be used from the command line with the following argument:

  • --start - To start the doi extraction

The script will execute and extract DOIs from the specified webpage and then merge them with the ones from ExistingPapers.

Options:

  • --url <path> - Specify the webpage of the group you want to extract the information. Default: Ontology Engieneering Group
  • --output <path> - Specify the path for the output files. Default: Outputs

Example

  1. Install the tool from Pypi ( https://pypi.org/project/DataExtractorOEG/ )
pip install DataExtractorOEG
  1. Start the execution
DataExtractorOEG --start

When the execution ends, the following files will be saved in doiExtractor/Outputs folder:

  • dois.txt

plot

  • results.csv

plot

  • results.json

plot

If you want to use RSEF with the output provided by this tool, follow the following steps

  1. Clone RSEF repository:
git clone https://github.com/SoftwareUnderstanding/RSEF.git
  1. Install the required dependencies by running:
pip install -e .
  1. Use RSEF with the extracted results.json from DOI-Extractor-OEG, this will create a downloaded_metadata.json and a processed_metadata.json:
rsef process -j <path to results.json>

If you didn't execute DOI-Extractor-OEG previously, you can also execute DataExtractorOEG --start and then the previous command

  1. To check the implementations of the papers use:
rsef asses -i <path to processed_metadata.json>

-U flag to check Unidirectionality

-B flag to check Bidirectionality

Release files for DataExtractorOEG 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DataExtractorOEG 0.5.2
File Size Uploaded
dataextractoroeg-0.5.2.tar.gz 165.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DataExtractorOEG 0.5.2
File Interpreter ABI Platform
DataExtractorOEG-0.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 381.6 kB

Release files / dataextractoroeg-0.5.2.tar.gz

Download URL dataextractoroeg-0.5.2.tar.gz
Size 165.1 kB
Tags Source
SHA-256 checksum
How to use checksums
688517c17fa18016365246143afaea9ef1bb593fd9b7428025c833095e5d223d
BLAKE2b-256 checksum
How to use checksums
8c1e6dfae14770b0f19e4d6181b1430d4ec213dae473ccf3dc0e682a0bd48080
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.0

Release files / DataExtractorOEG-0.5.2-py3-none-any.whl

Download URL DataExtractorOEG-0.5.2-py3-none-any.whl
Size 216.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1aa43faea71751c4c56488f708bfe45639329b66c0b2eda83c230291d59ac53
BLAKE2b-256 checksum
How to use checksums
78534b6f0c438125f5a89ff372cd463a72f64955a8aeb71a7ac31acd41d2b791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page