You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Aldo Mihasi 2acd2b5031 multiple configuration for repository 10 months ago
src/main multiple configuration for repository 10 months ago
.gitignore initial commit 1 year ago
Dockerfile pom updates 1 year ago
LICENSE.txt initial commit 1 year ago
README.md check if dmp description is null or empty 1 year ago
THIRD-PARTY-NOTICES.txt initial commit 1 year ago
pom.xml multiple configuration for repository 10 months ago
settings.xml initial commit 1 year ago

README.md

Using dataverse repository with Argos

The repository-deposit-dataverse module implements the https://code-repo.d4science.org/MaDgiK-CITE/repository-deposit-base interface for the dataverse repository.

Setup

After creating the jar from the project, environment variables should be set since they are used in the application.properties

  1. STORAGE_TMP_DATAVERSE - a temporary storage needed
  2. CONFIGURATION_DATAVERSE - path to json file which includes the configuration for the repository

JSON configuration file

The following fields should be set:
depositType - an integer representing how the dmp user can deposit in the repository,
a. 0 stands for system deposition meaning the dmp is deposited using argos credentials to the repository,
b. 1 stands for user deposition in which the argos user specifies his/her own credentials to the repository,
c. 2 stands for both ways deposition if the repository allows the deposits of dmps to be made from both argos and users accounts
note: depositType should be set to 0 since dataverse does not provide oauth2 protocol but, instead, uses api tokens
repositoryId - unique identifier for the repository
apiToken - api token provided for the depositions
repositoryUrl - repository's api url e.g. "https://demo.dataverse.org/api/"
repositoryRecordUrl - repository's record url, this url is used to index dmps that are created e.g. "https://demo.dataverse.org/dataset.xhtml?persistentId=doi:"
server - repository's server url e.g. "https://demo.dataverse.org"
parentDataverseAlias - dataverse alias in which all dmps that are deposited will be resided, note: the dataverse alias used should be published before making any dmp deposit
hasLogo - if the repository has a logo