diff --git a/resources/coda.configuration.json.example b/resources/coda.configuration.json.example index e5f5e8d..7505d90 100644 --- a/resources/coda.configuration.json.example +++ b/resources/coda.configuration.json.example @@ -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/:pi_firstname", + "type": "string" + }, + "pi_lastname": { + "source": "SC:proposals/:pi_lastname", + "type": "string" + }, + "pi_email": { + "source": "SC:proposals/: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:", + "type": "string" + } + }, "schema": { "pid": { "field_type": "high_level", "machine_name": "pid", - "source": "NXS:/entry/entry_identifier_uuid", + "value": "", "type": "string" }, "type" : { @@ -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": "", + "type": "string" }, "principal_investigator": { "field_type": "high_level", "machine_name": "principalInvestigator", - "source": [ - "SC:proposals/:pi_firstname", - "SC:proposals/:pi_lastname" - ], - "separator" : " ", + "value": " ", "type": "string" }, "owner": { "field_type": "high_level", "machine_name": "owner", - "source": [ - "SC:proposals/:pi_firstname", - "SC:proposals/:pi_lastname" - ], + "value": " ", "type": "string" }, "owner_email": { "field_type": "high_level", "machine_name": "ownerEmail", - "source": "SC:proposals/:pi_email", - "type": "string" - }, - "dataset_name": { - "field_type": "high_level", - "machine_name": "datasetName", - "source": "NXS:/entry/title", + "value": "", "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": { @@ -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": "", "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": "", "type": "date" }, "run_number": { "field_type": "scientific_metadata", "machine_name": "run_number", "human_name": "Run Number", - "source": "NXS:/entry/entry_identifier", + "value": "", "type": "integer" }, "job_id": { "field_type": "scientific_metadata", "machine_name": "job_id", "human_name": "Job Id", - "source": "NXS:/entry/entry_identifier_uuid", + "value": "", "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": "", "type": "string" } }