diff --git a/resources/base.configuration.json.example b/resources/base.configuration.json.example deleted file mode 100644 index 756a8c9..0000000 --- a/resources/base.configuration.json.example +++ /dev/null @@ -1,98 +0,0 @@ -{ - "instrument" : "coda", - "selector" : "", - "schema" : { - "pid" : { - "field_type" : "high_level", - "machine_name" : "pid", - "source" : "NXS:/entry/experiment_identifier", - "type" : "string" - }, - "proposal_id" : { - "field_type" : "high_level", - "machine_name" : "proposalId", - "source" : "NXS:/entry/experiment_identifier", - "type" : "string" - }, - "principal_investigator" : { - "field_type" : "high_level", - "machine_name" : "principalInvestigator", - "source" : ["SC:proposals/:pi_firstname","SC:proposals/:pi_lastname"], - "type" : "string" - }, - "owner" : { - "field_type" : "high_level", - "machine_name" : "owner", - "source" : ["SC:proposals/:pi_firstname","SC:proposals/:pi_lastname"], - "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", - "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", - "type" : "string" - }, - "location" : { - "field_type" : "high_level", - "machine_name" : "location", - "source" : "ESS:CODA:", - "type" : "string" - }, - "start_time" : { - "field_type" : "scientific_metadata", - "machine_name" : "start_time", - "human_name" : "Start Time", - "source" : "NXS:/entry/start_time", - "transformation" : "timestamp_to_iso8601", - "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", - "type" : "date" - }, - "run_number" : { - "field_type" : "scientific_metadata", - "machine_name" : "run_number", - "human_name" : "Run Number", - "source" : "NXS:/entry/entry_identifier", - "type" : "integer" - }, - "job_id" : { - "field_type" : "scientific_metadata", - "machine_name" : "job_id", - "human_name" : "Job Id", - "source" : "NXS:/entry/entry_identifier_uuid", - "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" : " , ", - "type" : "string" - } -} -} diff --git a/resources/base.imsc.json.example b/resources/base.imsc.json.example new file mode 100644 index 0000000..3d3d00e --- /dev/null +++ b/resources/base.imsc.json.example @@ -0,0 +1,197 @@ +{ + "id": c5bed39a-4379-11ef-ba5a-ffbc783163b6 + "name" : "Generic metadata schema" + "instrument" : "", + "selector" : "filename:starts_with:/ess/data", + "variables" : { + "pid": { + "source": "NXS", + "path": "/entry/entry_identifier_uuid", + "value_type": "string" + }, + "proposal_id": { + "source": "NXS", + "path": ""/entry/experiment_identifier", + "value_type": "string", + }, + "pi_firstname": { + "source": "SC", + "url": "proposals/", + "field" : "pi_firstname", + "value_type": "string" + }, + "pi_lastname": { + "source": "SC", + "url": "proposals/", + "field": ":pi_lastname", + "value_type": "string" + }, + "pi_email": { + "source": "SC", + "url": "proposals/", + "field": "pi_email", + "value_type": "string" + }, + "dataset_name": { + "source": "NXS" + "path": ""/entry/title", + "value_type": "string" + }, + "instrument_name": { + "source": "NXS", + "path": ""/entry/instrument/name", + "value_type": "string", + }, + "instrument_id": { + "source": "SC", + "url": "instruments?filter=%7B%22where%22%20%3A%20%7B%20%22name%22%20%3A%20%22coda%22%20%7D%20%7D" + "field": "id", + "value_type": "string" + }, + "start_time": { + "source": "NXS", + "path": ""/entry/start_time", + "value_type": "date" + }, + "end_time": { + "source": "NXS", + "path": "/entry/end_time", + "value_type": "date" + }, + "run_number": { + "source": "NXS", + "path": ""/entry/entry_identifier", + "value_type": "integer" + }, + "acquisition_team_members_list": { + "source": "NXS", + "path" : "/entry/user_*/name", + "value_type": "string[]" + } + "acquisition_team_members": { + "source": "VALUE", + "operator" : "join_with_space" + "value" : "", + "value_type": "string" + }, + "owner_group": { + "source": "VALUE", + "value": "ess_proposal_", + "value_type": "string" + }, + "access_groups": { + "source": "VALUE", + "value": ["scientific information management systems group"], + "value_type": "string[]" + } + }, + "schema": { + "pid": { + "field_type": "high_level", + "machine_name": "pid", + "value": "", + "type": "string" + }, + "type" : { + "field_type": "high_level", + "machine_name": "type", + "value": "raw", + "type": "string" + }, + "proposal_id": { + "field_type": "high_level", + "machine_name": "proposalId", + "value": "proposal_id", + "type": "string", + }, + "dataset_name": { + "field_type": "high_level", + "machine_name": "datasetName", + "value": "", + "type": "string" + }, + "principal_investigator": { + "field_type": "high_level", + "machine_name": "principalInvestigator", + "value": " ", + "type": "string" + }, + "owner": { + "field_type": "high_level", + "machine_name": "owner", + "value": " ", + "type": "string" + }, + "owner_email": { + "field_type": "high_level", + "machine_name": "ownerEmail", + "value": "", + "type": "email" + }, + "contact_email": { + "field_type": "high_level", + "machine_name": "contactEmail", + "value": "", + "type": "email" + }, + "instrument_id": { + "field_type": "high_level", + "machine_name": "instrumentId", + "value": "instrument_id", + "type": "string" + }, + "location": { + "field_type": "high_level", + "machine_name": "location", + "value": "ESS:CODA:", + "type": "string" + }, + "start_time": { + "field_type": "scientific_metadata", + "machine_name": "start_time", + "human_name": "Start Time", + "value": "", + "type": "date" + }, + "end_time": { + "field_type": "scientific_metadata", + "machine_name": "end_time", + "human_name": "End Time", + "value": "", + "type": "date" + }, + "run_number": { + "field_type": "scientific_metadata", + "machine_name": "run_number", + "human_name": "Run Number", + "value": "", + "type": "integer" + }, + "job_id": { + "field_type": "scientific_metadata", + "machine_name": "job_id", + "human_name": "Job Id", + "value": "", + "type": "integer" + }, + "acquisition_team_members": { + "field_type": "scientific_metadata", + "machine_name": "acquisition_team_members", + "human_name": "Acquisition Team Members", + "values": "", + "type": "string" + }, + "owner_group": { + "field_type": "high_level", + "machine_name": "ownerGroup", + "value": "", + "type": "string" + }, + "access_groups": { + "field_type": "high_level", + "machine_name": "accessGroups", + "value": "", + "type": "string[]" + } + } +} \ No newline at end of file diff --git a/resources/coda.imsc.json.example b/resources/coda.imsc.json.example index abb5934..2fa43fe 100644 --- a/resources/coda.imsc.json.example +++ b/resources/coda.imsc.json.example @@ -73,6 +73,16 @@ "operator" : "join_with_space" "value" : "", "value_type": "string" + }, + "owner_group": { + "source": "VALUE", + "value": "ess_proposal_", + "value_type": "string" + }, + "access_groups": { + "source": "VALUE", + "value": ["scientific information management systems group"], + "value_type": "string[]" } }, "schema": { @@ -116,7 +126,13 @@ "field_type": "high_level", "machine_name": "ownerEmail", "value": "", - "type": "string" + "type": "email" + }, + "contact_email": { + "field_type": "high_level", + "machine_name": "contactEmail", + "value": "", + "type": "email" }, "instrument_id": { "field_type": "high_level", @@ -127,7 +143,7 @@ "location": { "field_type": "high_level", "machine_name": "location", - "source": "ESS:CODA:", + "value": "ESS:CODA:", "type": "string" }, "start_time": { @@ -164,6 +180,18 @@ "human_name": "Acquisition Team Members", "values": "", "type": "string" + }, + "owner_group": { + "field_type": "high_level", + "machine_name": "ownerGroup", + "value": "", + "type": "string" + }, + "access_groups": { + "field_type": "high_level", + "machine_name": "accessGroups", + "value": "", + "type": "string[]" } } } diff --git a/resources/dream.configuration.json.example b/resources/dream.configuration.json.example deleted file mode 100644 index 9943053..0000000 --- a/resources/dream.configuration.json.example +++ /dev/null @@ -1,55 +0,0 @@ -{ - "proposal_id" : { - "field_type" : "high_level", - "machine_name" : "proposalId", - "source" : "NXS:/entry/experiment_identifier", - "type" : "string" - }, - "principal_investigator" : { - "field_type" : "high_level", - "machine_name" : "principalInvestigator", - "source" : "UO:proposal:/proposer/firstname + UO:proposal:/proposer/lastname", - "type" : "string" - }, - "dataset_name" : { - "field_type" : "high_level", - "machine_name" : "datasetName", - "source" : "NXS:/entry/title", - "type" : "string" - }, - "techniques" : { - "field_type" : "high_level", - "machine_name" : "techniques", - "human_name" : "techniques", - "value" : "", - "type" : "object" - }, - "start_time" : { - "field_type" : "scientific_metadata", - "machine_name" : "start_time", - "human_name" : "Start Time", - "source" : "WRDN:/metadata/start_time", - "transformation" : "timestamp_to_iso8601", - "type" : "date" - } - "end_time" : { - "field_type" : "scientific_metadata", - "machine_name" : "end_time", - "human_name" : "End Time", - "source" : "WRDN:/metadata/end_time", - "transformation" : "timestamp_to_iso8601", - "type" : "date" - }, - "sample_id" : { - "field_type" : "high_level", - "machine_name" : "sampleId", - "value" : "", - "type" : "string" - }, - "instrument_id" : { - "field_type" : "high_level", - "machine_name" : "instrumentId", - "value" : "DREAM", - "type" : "string" - }, -] \ No newline at end of file diff --git a/resources/dream.imsc.json.example b/resources/dream.imsc.json.example new file mode 100644 index 0000000..4c8f2a6 --- /dev/null +++ b/resources/dream.imsc.json.example @@ -0,0 +1,197 @@ +{ + "id" : "72a991ee-437a-11ef-8fd2-1f95660accb7" + "name" : "dream Metadata Schema" + "instrument": "dream", + "selector": "filename:starts_with:/ess/data/dream", + "variables" : { + "pid": { + "source": "NXS", + "path": "/entry/entry_identifier_uuid", + "value_type": "string" + }, + "proposal_id": { + "source": "NXS", + "path": ""/entry/experiment_identifier", + "value_type": "string", + }, + "pi_firstname": { + "source": "SC", + "url": "proposals/", + "field" : "pi_firstname", + "value_type": "string" + }, + "pi_lastname": { + "source": "SC", + "url": "proposals/", + "field": ":pi_lastname", + "value_type": "string" + }, + "pi_email": { + "source": "SC", + "url": "proposals/", + "field": "pi_email", + "value_type": "string" + }, + "dataset_name": { + "source": "NXS" + "path": ""/entry/title", + "value_type": "string" + }, + "instrument_name": { + "source": "NXS", + "path": ""/entry/instrument/name", + "value_type": "string", + }, + "instrument_id": { + "source": "SC", + "url": "instruments?filter=%7B%22where%22%20%3A%20%7B%20%22name%22%20%3A%20%22%22%20%7D%20%7D" + "field": "id", + "value_type": "string" + }, + "start_time": { + "source": "NXS", + "path": ""/entry/start_time", + "value_type": "date" + }, + "end_time": { + "source": "NXS", + "path": "/entry/end_time", + "value_type": "date" + }, + "run_number": { + "source": "NXS", + "path": ""/entry/entry_identifier", + "value_type": "integer" + }, + "acquisition_team_members_list": { + "source": "NXS", + "path" : "/entry/user_*/name", + "value_type": "string[]" + } + "acquisition_team_members": { + "source": "VALUE", + "operator" : "join_with_space" + "value" : "", + "value_type": "string" + }, + "owner_group": { + "source": "VALUE", + "value": "ess_proposal_", + "value_type": "string" + }, + "access_groups": { + "source": "VALUE", + "value": ["scientific information management systems group"], + "value_type": "string[]" + } + }, + "schema": { + "pid": { + "field_type": "high_level", + "machine_name": "pid", + "value": "", + "type": "string" + }, + "type" : { + "field_type": "high_level", + "machine_name": "type", + "value": "raw", + "type": "string" + }, + "proposal_id": { + "field_type": "high_level", + "machine_name": "proposalId", + "value": "proposal_id", + "type": "string", + }, + "dataset_name": { + "field_type": "high_level", + "machine_name": "datasetName", + "value": "", + "type": "string" + }, + "principal_investigator": { + "field_type": "high_level", + "machine_name": "principalInvestigator", + "value": " ", + "type": "string" + }, + "owner": { + "field_type": "high_level", + "machine_name": "owner", + "value": " ", + "type": "string" + }, + "owner_email": { + "field_type": "high_level", + "machine_name": "ownerEmail", + "value": "", + "type": "email" + }, + "contact_email": { + "field_type": "high_level", + "machine_name": "contactEmail", + "value": "", + "type": "email" + }, + "instrument_id": { + "field_type": "high_level", + "machine_name": "instrumentId", + "value": "instrument_id", + "type": "string" + }, + "location": { + "field_type": "high_level", + "machine_name": "location", + "value": "ESS:", + "type": "string" + }, + "start_time": { + "field_type": "scientific_metadata", + "machine_name": "start_time", + "human_name": "Start Time", + "value": "", + "type": "date" + }, + "end_time": { + "field_type": "scientific_metadata", + "machine_name": "end_time", + "human_name": "End Time", + "value": "", + "type": "date" + }, + "run_number": { + "field_type": "scientific_metadata", + "machine_name": "run_number", + "human_name": "Run Number", + "value": "", + "type": "integer" + }, + "job_id": { + "field_type": "scientific_metadata", + "machine_name": "job_id", + "human_name": "Job Id", + "value": "", + "type": "integer" + }, + "acquisition_team_members": { + "field_type": "scientific_metadata", + "machine_name": "acquisition_team_members", + "human_name": "Acquisition Team Members", + "values": "", + "type": "string" + }, + "owner_group": { + "field_type": "high_level", + "machine_name": "ownerGroup", + "value": "", + "type": "string" + }, + "access_groups": { + "field_type": "high_level", + "machine_name": "accessGroups", + "value": "", + "type": "string[]" + } + } +} diff --git a/resources/loki.configuration.json.example b/resources/loki.configuration.json.example deleted file mode 100644 index 34fab74..0000000 --- a/resources/loki.configuration.json.example +++ /dev/null @@ -1,49 +0,0 @@ -{ - "proposal_id" : { - "field_type" : "high_level", - "machine_name" : "proposalId", - "source" : "NXS:/entry/experiment_identifier", - "type" : "string" - }, - "principal_investigator" : { - "field_type" : "high_level", - "machine_name" : "principalInvestigator", - "source" : "UO:proposal:/proposer/firstname + UO:proposal:/proposer/lastname", - "type" : "string" - }, - "dataset_name" : { - "field_type" : "high_level", - "machine_name" : "datasetName", - "source" : "NXS:/entry/title", - "type" : "string" - }, - "acquisition_type" : { - "field_type" : "scientific_metadata", - "machine_name" : "acquisition_type", - "human_name" : "Acquisition Type", - "value" : "Unknown", - "type" : "string" - }, - "start_time" : { - "field_type" : "scientific_metadata", - "machine_name" : "start_time", - "human_name" : "Start Time", - "source" : "WRDN:/metadata/start_time", - "transformation" : "timestamp_to_iso8601", - "type" : "date" - } - "end_time" : { - "field_type" : "scientific_metadata", - "machine_name" : "end_time", - "human_name" : "End Time", - "source" : "WRDN:/metadata/end_time", - "transformation" : "timestamp_to_iso8601", - "type" : "date" - }, - "sample_id" : { - "field_type" : "high_level", - "machine_name" : "sampleId", - "value" : "", - "type" : "string" - }, -] diff --git a/resources/loki.imsc.json.example b/resources/loki.imsc.json.example new file mode 100644 index 0000000..73a346f --- /dev/null +++ b/resources/loki.imsc.json.example @@ -0,0 +1,197 @@ +{ + "id" : "891322f6-437a-11ef-980a-7bdc756bd0b3" + "name" : "Loki Metadata Schema" + "instrument": "loki", + "selector": "filename:starts_with:/ess/data/dream", + "variables" : { + "pid": { + "source": "NXS", + "path": "/entry/entry_identifier_uuid", + "value_type": "string" + }, + "proposal_id": { + "source": "NXS", + "path": ""/entry/experiment_identifier", + "value_type": "string", + }, + "pi_firstname": { + "source": "SC", + "url": "proposals/", + "field" : "pi_firstname", + "value_type": "string" + }, + "pi_lastname": { + "source": "SC", + "url": "proposals/", + "field": ":pi_lastname", + "value_type": "string" + }, + "pi_email": { + "source": "SC", + "url": "proposals/", + "field": "pi_email", + "value_type": "string" + }, + "dataset_name": { + "source": "NXS" + "path": ""/entry/title", + "value_type": "string" + }, + "instrument_name": { + "source": "NXS", + "path": ""/entry/instrument/name", + "value_type": "string", + }, + "instrument_id": { + "source": "SC", + "url": "instruments?filter=%7B%22where%22%20%3A%20%7B%20%22name%22%20%3A%20%22%22%20%7D%20%7D" + "field": "id", + "value_type": "string" + }, + "start_time": { + "source": "NXS", + "path": ""/entry/start_time", + "value_type": "date" + }, + "end_time": { + "source": "NXS", + "path": "/entry/end_time", + "value_type": "date" + }, + "run_number": { + "source": "NXS", + "path": ""/entry/entry_identifier", + "value_type": "integer" + }, + "acquisition_team_members_list": { + "source": "NXS", + "path" : "/entry/user_*/name", + "value_type": "string[]" + } + "acquisition_team_members": { + "source": "VALUE", + "operator" : "join_with_space" + "value" : "", + "value_type": "string" + }, + "owner_group": { + "source": "VALUE", + "value": "ess_proposal_", + "value_type": "string" + }, + "access_groups": { + "source": "VALUE", + "value": ["scientific information management systems group"], + "value_type": "string[]" + } + }, + "schema": { + "pid": { + "field_type": "high_level", + "machine_name": "pid", + "value": "", + "type": "string" + }, + "type" : { + "field_type": "high_level", + "machine_name": "type", + "value": "raw", + "type": "string" + }, + "proposal_id": { + "field_type": "high_level", + "machine_name": "proposalId", + "value": "proposal_id", + "type": "string", + }, + "dataset_name": { + "field_type": "high_level", + "machine_name": "datasetName", + "value": "", + "type": "string" + }, + "principal_investigator": { + "field_type": "high_level", + "machine_name": "principalInvestigator", + "value": " ", + "type": "string" + }, + "owner": { + "field_type": "high_level", + "machine_name": "owner", + "value": " ", + "type": "string" + }, + "owner_email": { + "field_type": "high_level", + "machine_name": "ownerEmail", + "value": "", + "type": "email" + }, + "contact_email": { + "field_type": "high_level", + "machine_name": "contactEmail", + "value": "", + "type": "email" + }, + "instrument_id": { + "field_type": "high_level", + "machine_name": "instrumentId", + "value": "instrument_id", + "type": "string" + }, + "location": { + "field_type": "high_level", + "machine_name": "location", + "value": "ESS:", + "type": "string" + }, + "start_time": { + "field_type": "scientific_metadata", + "machine_name": "start_time", + "human_name": "Start Time", + "value": "", + "type": "date" + }, + "end_time": { + "field_type": "scientific_metadata", + "machine_name": "end_time", + "human_name": "End Time", + "value": "", + "type": "date" + }, + "run_number": { + "field_type": "scientific_metadata", + "machine_name": "run_number", + "human_name": "Run Number", + "value": "", + "type": "integer" + }, + "job_id": { + "field_type": "scientific_metadata", + "machine_name": "job_id", + "human_name": "Job Id", + "value": "", + "type": "integer" + }, + "acquisition_team_members": { + "field_type": "scientific_metadata", + "machine_name": "acquisition_team_members", + "human_name": "Acquisition Team Members", + "values": "", + "type": "string" + }, + "owner_group": { + "field_type": "high_level", + "machine_name": "ownerGroup", + "value": "", + "type": "string" + }, + "access_groups": { + "field_type": "high_level", + "machine_name": "accessGroups", + "value": "", + "type": "string[]" + } + } +}