39 lines
35 KiB
MySQL
39 lines
35 KiB
MySQL
|
DO $$DECLARE
|
||
|
this_version CONSTANT varchar := '00.01.060';
|
||
|
BEGIN
|
||
|
PERFORM * FROM "DBVersion" WHERE version = this_version;
|
||
|
IF FOUND THEN RETURN; END IF;
|
||
|
|
||
|
INSERT INTO public."Language" VALUES ('94b2ead6-e27c-45f5-a986-14dda5a58376', 'en', null, '2023-11-28 16:35:18.114652', '2023-11-29 15:50:57.253892', 1, 0, null);
|
||
|
INSERT INTO public."Language" VALUES ('defd282e-48d0-4f69-9b99-4137d5ce05af', 'gr', null, '2023-11-28 16:35:18.114652', '2023-11-29 15:50:57.253892', 1, 1, null);
|
||
|
INSERT INTO public."Language" VALUES ('1213a820-e6bb-492e-b63b-06a8c650ef92', 'es', null, '2023-11-28 16:35:18.114652', '2023-11-29 15:50:57.253892', 1, 3, null);
|
||
|
INSERT INTO public."Language" VALUES ('d8bb2f19-048d-4806-b99a-efdafe36de52', 'de', null, '2023-11-28 16:35:18.114652', '2023-11-29 15:50:57.253892', 1, 0, null);
|
||
|
INSERT INTO public."Language" VALUES ('acb16ec4-dbad-4aec-b6a0-214ebacc2983', 'hr', null, '2023-11-28 16:35:18.114652', '2023-11-29 15:50:57.253892', 1, 4, null);
|
||
|
INSERT INTO public."Language" VALUES ('c9d8850c-c459-47b1-98d1-9c21b614ae7b', 'hr', null, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 5, null);
|
||
|
INSERT INTO public."Language" VALUES ('96b9c91a-a9e4-4a66-9361-a1eba22cc971', 'tr', null, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 6, null);
|
||
|
INSERT INTO public."Language" VALUES ('cdbb160f-a655-46eb-8328-589144e5a484', 'sk', null, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 7, null);
|
||
|
INSERT INTO public."Language" VALUES ('57c6129a-a918-4fb0-9c5b-9ec1c2ee1341', 'sr', null, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 8, null);
|
||
|
INSERT INTO public."Language" VALUES ('110d2e49-1580-4ee3-b1df-84da966f97a8', 'pt', null, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 9, null);
|
||
|
INSERT INTO public."Language" VALUES ('3b865f61-a863-43de-98cd-da86fc3f5940', 'pl', null, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 10, null);
|
||
|
|
||
|
INSERT INTO public."PrefillingSource" VALUES ('7a1ef5db-8833-45e1-85d8-476cea3d4f7a', 'Openaire', '<?xml version="1.0" standalone="yes"?><definition><searchConfiguration><key>openaire</key><label>Openaire</label><ordinal>1</ordinal><type>0</type><authentication><enabled>false</enabled></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>originalId</responsePath></field><field><code>label</code><responsePath>title</responsePath></field><field><code>description</code><responsePath>description</responsePath></field></fieldsMapping><resultsArrayPath>$['results'][*]['result']['metadata']['oaf:entity']['oaf:result']</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/datasets/?q={like}&page={page}&size={pageSize}&format=json</url></searchConfiguration><getConfiguration><key>openaire</key><label>Openaire</label><ordinal>1</ordinal><type>0</type><authentication><enabled>false</enabled></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>title.content</code><responsePath>['title']['content']</responsePath></field><field><code>description</code><responsePath>description</responsePath></field><field><code>children.instance.license</code><responsePath>['children']['instance']['license']</responsePath></field><field><code>subject.content</code><responsePath>['subject']['content']</responsePath></field><field><code>publisher</code><responsePath>publisher</responsePath></field><field><code>language.classid</code><responsePath>['language']['classid']</responsePath></field><field><code>issued.content</code><responsePath>['issued']['content']</responsePath></field><field><code>bestaccessright.classid</code><responsePath>['bestaccessright']['classid']</responsePath></field><field><code>pid.content</code><responsePath>['pid']['content']</responsePath></field><field><code>pid.classid</code><responsePath>['pid']['classid']</responsePath></field></fieldsMapping><resultsArrayPath>$['results'][*]['result']['metadata']['oaf:entity']['oaf:result']</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/datasets/?q={like}&page={page}&size={pageSize}&format=json</url></getConfiguration><fields><field><code>title.content</code><semanticTarget>rda.dataset.distribution.title</semanticTarget><systemFieldTarget>label</systemFieldTarget></field><field><code>description</code><semanticTarget>rda.dataset.distribution.description</semanticTarget><systemFieldTarget>description</systemFieldTarget></field><field><code>children.instance.license</code><semanticTarget>rda.dataset.distribution.license.license_ref</semanticTarget></field><field><code>subject.content</code><semanticTarget>rda.dataset.keyword</semanticTarget><systemFieldTarget>tags</systemFieldTarget></field><field><code>publisher</code><semanticTarget>rda.dataset.distribution.host.title</semanticTarget></field><field><code>language.classid</code><semanticTarget>rda.dataset.metadata.language</semanticTarget></field><field><code>issued.content</code><semanticTarget>rda.dataset.issued</semanticTarget></field><field><code>bestaccessright.classid</code><semanticTarget>rda.dataset.distribution.data_access</semanticTarget></field><field><code>pid.content</code><semanticTarget>rda.dataset.dataset_id</semanticTarget></field><field><code>pid.content</code><semanticTarget>rda.dataset.dataset_id.identifier</semanticTarget></field
|
||
|
INSERT INTO public."PrefillingSource" VALUES ('d79952bf-cfd9-4af4-b7b4-5a83d68890a5', 'Zenodo', '<?xml version="1.0" standalone="yes"?><definition><searchConfiguration><key>zenodo search</key><label>Zenodo</label><ordinal>2</ordinal><type>0</type><authentication><enabled>false</enabled></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>1</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$['hits']['total']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>title</responsePath></field><field><code>description</code><responsePath>description</responsePath></field></fieldsMapping><resultsArrayPath>$['hits']['hits']</resultsArrayPath></results><url>https://zenodo.org/api/records/?page={page}&amp;size={pageSize}&amp;q=title:"{like}" doi:"{like}" conceptdoi:"{like}"</url></searchConfiguration><getConfiguration><key>zenodo get</key><label>Zenodo</label><ordinal>1</ordinal><type>0</type><authentication><enabled>false</enabled></authentication><contentType>application/json</contentType><filterType>remote</filterType><requestHttpMethod>0</requestHttpMethod><paginationPath>$</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>metadata.title</code><responsePath>['metadata']['title']</responsePath></field><field><code>metadata.description</code><responsePath>['metadata']['description']</responsePath></field><field><code>metadata.license.id</code><responsePath>['metadata']['license']['id']</responsePath></field><field><code>metadata.keywords</code><responsePath>['metadata']['keywords']</responsePath></field><field><code>metadata.filesize</code><responsePath>['metadata']['files']['size']</responsePath></field><field><code>metadata.language</code><responsePath>['metadata']['language']</responsePath></field><field><code>metadata.dates.valid</code><responsePath>['metadata']['dates']['type']</responsePath></field><field><code>metadata.license.created</code><responsePath>['metadata']['license']['created']</responsePath></field><field><code>metadata.embargo_date</code><responsePath>['metadata']['embargo_date']</responsePath></field><field><code>metadata.publication_date</code><responsePath>['metadata']['publication_date']</responsePath></field><field><code>metadata.access_right</code><responsePath>['metadata']['access_right']</responsePath></field><field><code>files</code><responsePath>['files']['key']</responsePath></field><field><code>doi</code><responsePath>doi</responsePath></field></fieldsMapping><resultsArrayPath>$</resultsArrayPath></results><url>https://zenodo.org/api/records/{like}</url></getConfiguration><fields><field><code>metadata.title</code><semanticTarget>rda.dataset.distribution.title</semanticTarget><systemFieldTarget>label</systemFieldTarget></field><field><code>metadata.description</code><semanticTarget>rda.dataset.distribution.description</semanticTarget><systemFieldTarget>description</systemFieldTarget></field><field><code>metadata.license.id</code><semanticTarget>rda.dataset.distribution.license.license_ref</semanticTarget></field><field><code>metadata.keywords</code><semanticTarget>rda.dataset.keyword</semanticTarget><systemFieldTarget>tags</systemFieldTarget></field><field><code>metadata.filesize</code><semanticTarget>rda.dataset.distribution.byte_size</semanticTarget></field><field><code>metadata.language</code><semanticTarget>rda.dataset.metadata.language</semanticTarget></field><field><code>metadata.dates.valid</code><semanticTarget>rda.dataset.distribution.available_until</semanticTarget></field><field><code>metadata.license.created</code><semanticTarget>rda.dataset.distribution.license.start_date</semanticTarget></field><field><code>metadata.embargo_date</code><semanticTarget>rda.datase
|
||
|
|
||
|
INSERT INTO public."ReferenceType" VALUES ('2baab1e8-561f-4c15-84c3-571b811c52f6', 'licenses', 'licenses', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="uri" label="uri" description="uri" dataType="Text"/></fields><sources><api><key>opendefinition</key><label>Open Definition</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/vnd.api+json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>1</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[*]</paginationPath><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>title</responsePath></field><field><code>description</code><responsePath>maintainer</responsePath></field><field><code>uri</code><responsePath>url</responsePath></field></fieldsMapping><resultsArrayPath>$[*]</resultsArrayPath></results><url>https://licenses.opendefinition.org/licenses/groups/all.json</url></api></sources></definition>' , 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('2beacaad-3223-43ad-ad99-1e5f21328e7b', 'registries','registries','<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="url" label="url" description="url" dataType="Text"/></fields><sources><api><key>rda-metadata-schemes</key><label>RDA Metadata Schemes</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>1</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>mscid</responsePath></field><field><code>label</code><responsePath>title</responsePath></field><field><code>description</code><responsePath>description</responsePath></field><field><code>url</code><responsePath>uri</responsePath></field></fieldsMapping><resultsArrayPath>$['data']['items'][*]</resultsArrayPath></results><url>https://rdamsc.bath.ac.uk/api2/m?q={like}&start=1&pageSize={pageSize}</url></api></sources></definition>', 1, '2023-11-16 10:08:21.240804', '2024-02-16 09:16:50.456347', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('3d372db5-a456-45e6-a845-e41e1a8311f8', 'projects','projects', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><static><key>cite</key><label>Cite</label><ordinal>1</ordinal><type>1</type><options><option><code>reference_id</code><value>cite_id</value></option><option><code>label</code><value>Cite Project</value></option><option><code>description</code><value>Cite Project</value></option></options></static></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('51225b6a-86a6-48ac-9192-f15096dbcb8a', 'publications','publications', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="pid" label="pid" description="pid" dataType="Text"/><field code="pidTypeField" label="pidTypeField" description="pidTypeField" dataType="Text"/></fields><sources><api><key>openaire</key><label>OpenAIRE Publications</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json;charset=UTF-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><defaultValue>*</defaultValue><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>originalId</responsePath></field><field><code>label</code><responsePath>title</responsePath></field><field><code>description</code><responsePath>title</responsePath></field><field><code>pid</code><responsePath>['pid']['content']</responsePath></field><field><code>pidTypeField</code><responsePath>['pid']['classid']</responsePath></field></fieldsMapping><resultsArrayPath>$['results'][*]['result']['metadata']['oaf:entity']['oaf:result']</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/resources?query=oaftype exact result and {like}&page={page}&size={pageSize}&format=json</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('538928bb-c7c6-452e-b66d-08e539f5f082', 'funders','funders', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><api><key>openaire</key><label>OpenAIRE</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>1</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>local</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[*]</paginationPath><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>name</responsePath></field><field><code>description</code><responsePath>name</responsePath></field></fieldsMapping><resultsArrayPath>$['refineResults']['relfunder'][*]</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/publications?&refine=true&fields=relfunder&page={page}&size=0&format=json</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('5a2112e7-ea99-4cfe-98a1-68665e26726e', 'researchers','researchers', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="firstName" label="Researchers First Name" description="Researchers First Name" dataType="Text"/><field code="lastName" label="Researchers Last Name" description="Researchers Last Name" dataType="Text"/></fields><sources><api><key>orcid</key><label>ORCID</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=UTF-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$['num-found']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><defaultValue>*</defaultValue><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>orcid-id</responsePath></field><field><code>label</code><responsePath>institution-name</responsePath></field><field><code>description</code><responsePath>institution-name</responsePath></field><field><code>fistName</code><responsePath>family-names</responsePath></field><field><code>lastName</code><responsePath>given-names</responsePath></field></fieldsMapping><resultsArrayPath>$['expanded-result'][*]</resultsArrayPath></results><url>https://pub.orcid.org/v3.0/expanded-search/?q={like}&start={page}&rows={pageSize}</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('5b9c284f-f041-4995-96cc-fad7ad13289c', 'grants','grants', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><api><key>openaire</key><label>OpenAIRE</label><ordinal>1</ordinal><referenceTypeDependencyIds><referenceTypeDependencyIds>538928bb-c7c6-452e-b66d-08e539f5f082</referenceTypeDependencyIds></referenceTypeDependencyIds><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><referenceTypeSourceKey>538928bb-c7c6-452e-b66d-08e539f5f082</referenceTypeSourceKey><defaultValue>openaire</defaultValue><value>{like}</value></case></cases><defaultValue>*</defaultValue><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>originalId</responsePath></field><field><code>label</code><responsePath>title</responsePath></field><field><code>description</code><responsePath>title</responsePath></field></fieldsMapping><resultsArrayPath>$['results'][*]['result']['metadata']['oaf:entity']['oaf:project']</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/resources?query=((oaftype exact project) and ((projectcode_nt exact "{like}")or({like})))&page={page}&size={pageSize}&format=json</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('7eeffb98-58fb-4921-82ec-e27f32f8e738', 'organisations','organisations', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="pid" label="Pid Organisations" description="Pid Organisations" dataType="Text"/><field code="pidTypeField" label="PidType Organisations" description="PidType Organisations" dataType="Text"/></fields><sources><api><key>openaire</key><label>OpenAIRE</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>originalId</responsePath></field><field><code>label</code><responsePath>legalname</responsePath></field><field><code>description</code><responsePath>legalname</responsePath></field><field><code>pid</code><responsePath>['pid']['content']</responsePath></field><field><code>pidTypeField</code><responsePath>['pid']['classid']</responsePath></field></fieldsMapping><resultsArrayPath>$['results'][*]['result']['metadata']['oaf:entity']['oaf:organization']</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/organizations/?q={like}&page={page}&size={pageSize}&format=json</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('8ec7556b-749d-4c4a-a4b9-43d064693795', 'journals','journals', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><api><key>openaire</key><label>OpenAIRE Journals</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>1</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody>{"officialname": "{like}", "typology":"journal"}</requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>officialname</responsePath></field><field><code>description</code><responsePath>officialname</responsePath></field></fieldsMapping><resultsArrayPath>$['datasourceInfo'][*]</resultsArrayPath></results><url>https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&order=ASCENDING</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('9ec2000d-95c7-452e-b356-755fc8e2574c', 'services','services', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="uri" label="Service Uri" description="Service Uri" dataType="Text"/></fields><sources><api><key>eosc</key><label>EOSC Providers</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$['from','to','total']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>name</responsePath></field><field><code>description</code><responsePath>description</responsePath></field><field><code>uri</code><responsePath>webpage</responsePath></field></fieldsMapping><resultsArrayPath>$['results'][*]</resultsArrayPath></results><url>https://providers.eosc-portal.eu/api/service/all?query={like}&from={page}&quantity={pageSize}</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('a3ce0fb2-d72c-48bb-b322-7401940cb802', 'datasets','datasets', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="pid" label="Pid Datasets" description="Pid Datasets" dataType="Text"/><field code="pidTypeField" label="PidTypeField Datasets" description="PidTypeField Datasets" dataType="Text"/></fields><sources><api><key>openaire</key><label>OpenAIRE</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>originalId</responsePath></field><field><code>label</code><responsePath>title</responsePath></field><field><code>description</code><responsePath>title</responsePath></field><field><code>pid</code><responsePath>['pid']['content']</responsePath></field><field><code>pidTypeField</code><responsePath>['pid']['classid']</responsePath></field></fieldsMapping><resultsArrayPath>$['results'][*]['result']['metadata']['oaf:entity']['oaf:result']</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/datasets/?q={like}&page={page}&size={pageSize}&format=json</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('ab7cdd93-bea2-440d-880d-3846dad80b21', 'taxonomies','taxonomies', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><static><key>taxonomy</key><label>Taxonomies</label><ordinal>1</ordinal><type>1</type><options><option><code>reference_id</code><value>cite_taxonomy</value></option><option><code>label</code><value>Cite Taxonomy</value></option><option><code>description</code><value>Cite Taxonomy</value></option></options></static></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('d26b64ba-fda0-4b14-b3ef-9856a492d55a', 'repositories','repositories', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><api><key>openaire</key><label>OpenAIRE</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>1</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody>{"officialname": "{like}", "typology":"data"}</requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>officialname</responsePath></field><field><code>description</code><responsePath>officialname</responsePath></field></fieldsMapping><resultsArrayPath>$['datasourceInfo'][*]</resultsArrayPath></results><url>https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&order=ASCENDING</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
INSERT INTO public."ReferenceType" VALUES ('1e927daa-b856-443f-96da-22f325f7322f', 'Publication Repositories','pubRepositories', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><api><key>openaire</key><label>OpenAIRE publication repositories 1</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>1</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody>{"officialname": "{like}", "typology":"pubsrepository::institutional"}</requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>officialname</responsePath></field><field><code>description</code><responsePath>officialname</responsePath></field></fieldsMapping><resultsArrayPath>$['datasourceInfo'][*]</resultsArrayPath></results><url>https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&order=ASCENDING</url></api><api><key>openaire</key><label>OpenAIRE publication repositories 2</label><ordinal>2</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>1</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody>{"officialname": "{like}", "typology":"pubsrepository::thematic"}</requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>officialname</responsePath></field><field><code>description</code><responsePath>count</responsePath></field></fieldsMapping><resultsArrayPath>$['datasourceInfo'][*]</resultsArrayPath></results><url>https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&order=ASCENDING</url></api><api><key>openaire</key><label>OpenAIRE publication repositories 3</label><ordinal>3</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>1</requestHttpMethod><paginationPath>$['meta']['pagination']['page','pages','count']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody>{"officialname": "{like}", "typology":"pubsrepository::unknown"}</requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>officialname</responsePath></field><field><code>description</code><responsePath>officialname</responsePath></field></fieldsMapping><resultsArrayPath>$['datasourceInfo'][*]</resultsArrayPath></results><url>https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&order=ASCENDING</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-02-16 09:14:22.723311', null);
|
||
|
|
||
|
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.060', '2024-03-26 12:00:00.000000+02', now(), 'Add Language, Prefilling Source, Reference Type values.');
|
||
|
|
||
|
END$$;
|