diff --git a/docs/modules/generate.md b/docs/modules/generate.md index de1cac1..2e7f5ad 100644 --- a/docs/modules/generate.md +++ b/docs/modules/generate.md @@ -30,7 +30,7 @@ Provide the data required for your `dataset_description` file in this paramater. | ------ | ------------- | -------- | ------------------------------------------ | | Object | {} | yes | Data object following the required schemas | -More information about the required data can be found in the [dataset_description](../schemas/dataset_description.md) schema. +More information about the required data can be found in the [dataset_description](https://github.com/AI-READI/pyfairdatatools/blob/main/pyfairdatatools/schemas/dataset_description.schema.json) schema. ##### file_path @@ -60,9 +60,9 @@ Provide the file type of the file where you want to save the generated dataset_d from pyfairdatatools import generate data = { - "Title": "My Dataset", - "Identifier": "10.5281/zenodo.1234567", - "IdentifierType": "DOI" + "title": "My Dataset", + "identifier": "10.5281/zenodo.1234567", + "identifierType": "DOI" } output = generate.generate_dataset_description(data = data, file_path = "dataset_description.json", file_type = "json") @@ -74,6 +74,10 @@ print(output) # dataset_description.json You can call the `generate_study_description` method to generate a study_description file. +#### Generate Study Description from Clinical Trial integration + +You can call the `generate_study_description_from_clinical_trials` method to generate an initial study_description file. + #### Parameters ##### data @@ -84,7 +88,7 @@ Provide the data required for your `study_description` file in this paramater. | ------ | ------------- | -------- | ------------------------------------------ | | Object | {} | yes | Data object following the required schemas | -More information about the required data can be found in the [study_description](../schemas/study_description.md) schema. +More information about the required data can be found in the [study_description](https://github.com/AI-READI/pyfairdatatools/blob/main/pyfairdatatools/schemas/study_description.schema.json) schema. ##### file_path @@ -114,9 +118,9 @@ Provide the file type of the file where you want to save the generated study_des from pyfairdatatools import generate data = { - "Title": "My Dataset", - "Identifier": "10.5281/zenodo.1234567", - "IdentifierType": "DOI" + "title": "My Dataset", + "identifier": "10.5281/zenodo.1234567", + "identifierType": "DOI" } output = generate.generate_study_description(data = data, file_path = "study_description.json", file_type = "json") @@ -138,7 +142,7 @@ Provide the data required for your readme file in this paramater. | ------ | ------------- | -------- | ------------------------------------------ | | Object | {} | yes | Data object following the required schemas | -More information about the required data can be found in the [readme](../schemas/readme.md) schema. +More information about the required data can be found in the [readme](https://github.com/AI-READI/pyfairdatatools/blob/main/pyfairdatatools/schemas/readme.schema.json) schema. ##### file_path diff --git a/docs/modules/validate.md b/docs/modules/validate.md index 9639d09..5ee5de2 100644 --- a/docs/modules/validate.md +++ b/docs/modules/validate.md @@ -30,9 +30,9 @@ Provide the data required for your `dataset_description` file in this paramater. | ------ | ------------- | -------- | ------------------------------------------ | | Object | {} | yes | Data object following the required schemas | -More information about the required data can be found in the [dataset_description](https://github.com/AI-READI/high-level-dataset-structure/blob/specifications/main/v1.0.0/schemas/dataset_description.schema.json) schema. +More information about the required data can be found in the [dataset_description](https://github.com/AI-READI/pyfairdatatools/blob/main/pyfairdatatools/schemas/dataset_description.schema.json) schema. -You can the hosted validator [here](https://www.jsonschemavalidator.net/s/makBzCFq) if you want a better understanding or visualization of the schema for the input. +You can the hosted validator [here](https://www.jsonschemavalidator.net/s/Uaohwh1p) if you want a better understanding or visualization of the schema for the input. #### Returns @@ -46,9 +46,9 @@ You can the hosted validator [here](https://www.jsonschemavalidator.net/s/makBzC from pyfairdatatools import validate data = { - "Title": "My Dataset", - "Identifier": "10.5281/zenodo.1234567", - "IdentifierType": "DOI" + "title": "My Dataset", + "identifier": "10.5281/zenodo.1234567", + "identifierType": "DOI" } output = validate.validate_dataset_description(data = data) @@ -70,9 +70,9 @@ Provide the data required for your `study_description` file in this paramater. | ------ | ------------- | -------- | ------------------------------------------ | | Object | {} | yes | Data object following the required schemas | -More information about the required data can be found in the [study_description](https://github.com/AI-READI/high-level-dataset-structure/blob/specifications/main/v1.0.0/schemas/dataset_description.schema.json) schema. +More information about the required data can be found in the [study_description](https://github.com/AI-READI/pyfairdatatools/blob/main/pyfairdatatools/schemas/study_description.schema.json) schema. -You can the hosted validator [here](https://www.jsonschemavalidator.net/s/cmkkqm9P) if you want a better understanding or visualization of the schema for the input. +You can host the validator [here](https://www.jsonschemavalidator.net/s/pfpR4Klf) if you want a better understanding or visualization of the schema for the input. #### Returns @@ -110,9 +110,9 @@ Provide the data required for your `README` file in this paramater. | ------ | ------------- | -------- | ------------------------------------------ | | Object | {} | yes | Data object following the required schemas | -More information about the required data can be found in the [README](../schemas/README.md) schema. +More information about the required data can be found in the [README](https://github.com/AI-READI/pyfairdatatools/blob/main/pyfairdatatools/schemas/readme.schema.json) schema. -You can the hosted validator [here](https://www.jsonschemavalidator.net/s/aNSmlcv1) if you want a better understanding or visualization of the schema for the input. +You can host the validator [here](https://www.jsonschemavalidator.net/s/qGe6d1wH) if you want a better understanding or visualization of the schema for the input. #### Returns @@ -126,9 +126,9 @@ You can the hosted validator [here](https://www.jsonschemavalidator.net/s/aNSmlc from pyfairdatatools import validate data = { - "Title": "My Dataset", - "Identifier": "10.5281/zenodo.1234567", - "Version": "1.0.0", + "title": "My Dataset", + "identifier": "10.5281/zenodo.1234567", + "version": "1.0.0", } output = validate.validate_readme(data = data) @@ -184,9 +184,9 @@ Provide the data required for your `participants.tsv` file in this paramater. | ------ | ------------- | -------- | ------------------------------------------ | | Object | {} | yes | Data object following the required schemas | -More information about the required data can be found in the [participants](../schemas/participants.md) schema. +More information about the required data can be found in the [participants](https://github.com/AI-READI/pyfairdatatools/blob/main/pyfairdatatools/schemas/participants.schema.json) schema. -You can the hosted validator [here](https://www.jsonschemavalidator.net/s/aNSmlcv1) if you want a better understanding or visualization of the schema for the input. +You can host the validator [here](https://www.jsonschemavalidator.net/s/AGbykeCI) if you want a better understanding or visualization of the schema for the input. #### Returns diff --git a/pyfairdatatools/schemas/participants.schema.json b/pyfairdatatools/schemas/participants.schema.json index 5bea664..4ffaff1 100644 --- a/pyfairdatatools/schemas/participants.schema.json +++ b/pyfairdatatools/schemas/participants.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://schema.aireadi.org/files/participants.json", - "title": "README", + "title": "Participants", "description": "Additional text here", "type": "array", "items": {