Skip to content

Commit

Permalink
Latest version of the metadata configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrosx committed Jul 11, 2024
1 parent de30a14 commit 630478e
Showing 1 changed file with 72 additions and 35 deletions.
107 changes: 72 additions & 35 deletions resources/coda.configuration.json.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,65 @@
{
"instrument": "coda",
"selector": "file:starts_with:/ess/data/coda",
"selector": "filename:starts_with:/ess/data/coda",
"variables" : {
"pid": {
"source": "NXS:/entry/entry_identifier_uuid",
"type": "string"
},
"proposal_id": {
"source": "NXS:/entry/experiment_identifier",
"type": "string",
},
"pi_firstname": {
"source": "SC:proposals/<proposal_id>:pi_firstname",
"type": "string"
},
"pi_lastname": {
"source": "SC:proposals/<proposal_id>:pi_lastname",
"type": "string"
},
"pi_email": {
"source": "SC:proposals/<proposal_id>:pi_email",
"type": "string"
},
"dataset_name": {
"source": "NXS:/entry/title",
"type": "string"
},
"instrument_name": {
"source": "NXS:/entry/instrument/name",
"type": "string",
},
"instrument_id": {
"source": "SC:instruments?filter=%7B%22where%22%20%3A%20%7B%20%22name%22%20%3A%20%22coda%22%20%7D%20%7D:id",
"type": "string"
},
"start_time": {
"source": "NXS:/entry/start_time",
"type": "date"
},
"end_time": {
"source": "NXS:/entry/end_time",
"type": "date"
},
"run_number": {
"source": "NXS:/entry/entry_identifier",
"type": "integer"
},
"acquisition_team_members_list": {
"source": "NXS:/entry/user_*/name",
"type": "string[]"
}
"acquisition_team_members": {
"source": "VALUES:join_with_space:<acquisition_team_members>",
"type": "string"
}
},
"schema": {
"pid": {
"field_type": "high_level",
"machine_name": "pid",
"source": "NXS:/entry/entry_identifier_uuid",
"value": "<pid>",
"type": "string"
},
"type" : {
Expand All @@ -17,51 +71,37 @@
"proposal_id": {
"field_type": "high_level",
"machine_name": "proposalId",
"source": "NXS:/entry/experiment_identifier",
"value": "proposal_id",
"type": "string",
"variable": true
},
"dataset_name": {
"field_type": "high_level",
"machine_name": "datasetName",
"value": "<dataset_name>",
"type": "string"
},
"principal_investigator": {
"field_type": "high_level",
"machine_name": "principalInvestigator",
"source": [
"SC:proposals/<proposal_id>:pi_firstname",
"SC:proposals/<proposal_id>:pi_lastname"
],
"separator" : " ",
"value": "<pi_firstname> <pi_lastname>",
"type": "string"
},
"owner": {
"field_type": "high_level",
"machine_name": "owner",
"source": [
"SC:proposals/<proposal_id>:pi_firstname",
"SC:proposals/<proposal_id>:pi_lastname"
],
"value": "<pi_firstname> <pi_lastname>",
"type": "string"
},
"owner_email": {
"field_type": "high_level",
"machine_name": "ownerEmail",
"source": "SC:proposals/<proposal_id>:pi_email",
"type": "string"
},
"dataset_name": {
"field_type": "high_level",
"machine_name": "datasetName",
"source": "NXS:/entry/title",
"value": "<pi_email>",
"type": "string"
},
"instrument": {
"machine_name": "instrument_name",
"source": "NXS:/entry/instrument/name",
"type": "string",
"variable": true
},
"instrument_id": {
"field_type": "high_level",
"machine_name": "instrumentId",
"source": "SC:instruments?filter=%7B%22where%22%20%3A%20%7B%20%22name%22%20%3A%20%22coda%22%20%7D%20%7D:id",
"value": "instrument_id",
"type": "string"
},
"location": {
Expand All @@ -74,38 +114,35 @@
"field_type": "scientific_metadata",
"machine_name": "start_time",
"human_name": "Start Time",
"source": "NXS:/entry/start_time",
"transformation": "timestamp_to_iso8601",
"value": "<start_time>",
"type": "date"
},
"end_time": {
"field_type": "scientific_metadata",
"machine_name": "end_time",
"human_name": "End Time",
"source": "NXS:/entry/end_time",
"transformation": "timestamp_to_iso8601",
"value": "<end_time>",
"type": "date"
},
"run_number": {
"field_type": "scientific_metadata",
"machine_name": "run_number",
"human_name": "Run Number",
"source": "NXS:/entry/entry_identifier",
"value": "<run_number>",
"type": "integer"
},
"job_id": {
"field_type": "scientific_metadata",
"machine_name": "job_id",
"human_name": "Job Id",
"source": "NXS:/entry/entry_identifier_uuid",
"value": "<pid>",
"type": "integer"
},
"acquisition_team_members": {
"field_type": "scientific_metadata",
"machine_name": "acquisition_team_members",
"human_name": "Acquisition Team Members",
"source": "NXS:/entry/user_*/name",
"separator": " , ",
"values": "<acquisition_team_members>",
"type": "string"
}
}
Expand Down

0 comments on commit 630478e

Please sign in to comment.