Skip to content

IFCA-Advanced-Computing/digital.csic_scholix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description
----------------
This script updates the metadata stored by DataCite for a minted DOI assigned to a digital object at DIGITAL.CSIC to include the information about relation with other digiral objetcs.
For the moment, it includes the relation "IsReferencedBy"

How it works
----------------
The script looks into the DIGITAL.CSIC database in order to find the term "relation", with metadata_field_id = 48. An aditional SQLite database is created to store all the DOIs that have already been updated.
When a metadata field "relation" is found, it checks if the DOI has been updated or not. If not, it gets the XML metadata from DataCite related to that DOI, that could be in DataCite metadata schema 3 or 4. The XML is modified in order
to include the relationship information, adding the term "relatedIdentifier". A new XML is created, which is POSTed to DataCite and the new metadata information is now accessible at DataCite.
If everything goes well, the DOI is included in the SQLite database to indicate that the information has been already updated.

How to run
----------------
This script includes two elements: the script itself (scholix.py) and a sqlite database to store the already found (and updated) references (identifiers.db).

To run the script, execute:

./scholix.py -u DATACITE_USER -p DATACITE_PASS -U DSPACE_DB_USER -P DSPACE_DB_PASS -H DSPACE_DB_HOST -T DSPACE_DB_PORT -D DSPACE_DB_DATABASE_NAME

Where:

DATACITE_USER: User for minting/managing the DOIs at datacite.
DATACITE_PASS: Pass for minting/managing the DOIs at datacite.
DSPACE_DB_USER: Dspace database user
DSPACE_DB_PASS: DSpace database password
DSPACE_DB_HOST: Dspace database host
DSPACE_DB_PORT: Dspace database port (1733)
DSPACE_DB_DATABASE_NAME: Dspace database name

About

Scripts for updating DOI references

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages