nfdi4cat / repo4cat

NFDI4Cat Central Data Repository
https://repository.nfdi4cat.org/
1 stars 0 forks source link

API for harvesting metadata from repo4cat to meta4cat #24

Closed sefeoglu closed 1 month ago

sefeoglu commented 1 month ago

Hello,

I would like to harvest metadata from your repository to our meta portal (https://meta4cat.fokus.fraunhofer.de/datasets?locale=en). Do you have any API to access metadata on your repo4cat?

Thanks in advance. Best,

vkush commented 1 month ago

Dear @sefeoglu, Many thanks for your request! The OAI server is already activated. Here you can find the most important information:

Just to test I have used such commands:

# 1. Test OAI-PMH with some requests
#    -> https://support.datacite.org/docs/datacite-oai-pmh
#
SERVER_URL=YOUR_DATAVERSE_INSTANCE

# 1.1 Get info about OAI-Server (identify)
#
curl -X GET $SERVER_URL/oai?verb=Identify | less

# 1.2 List all supported metadata formats
#     -> http://www.openarchives.org/OAI/openarchivesprotocol.html#ListMetadataFormats
#
curl -X GET $SERVER_URL/oai?verb=ListMetadataFormats

# 1.3 List all available records
#     -> http://www.openarchives.org/OAI/openarchivesprotocol.html#ListRecords
#
curl -X GET "$SERVER_URL/oai?verb=ListRecords&metadataPrefix=oai_dc"
curl -X GET "$SERVER_URL/oai?verb=ListRecords&metadataPrefix=dataverse_json"
sefeoglu commented 1 month ago

Thanks for the information :) . This helps a lot.

Best,