|
| 1 | +-- |
| 2 | +-- The MIT License |
| 3 | +-- Copyright © 2016-2024 FAIR Data Team |
| 4 | +-- |
| 5 | +-- Permission is hereby granted, free of charge, to any person obtaining a copy |
| 6 | +-- of this software and associated documentation files (the "Software"), to deal |
| 7 | +-- in the Software without restriction, including without limitation the rights |
| 8 | +-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 9 | +-- copies of the Software, and to permit persons to whom the Software is |
| 10 | +-- furnished to do so, subject to the following conditions: |
| 11 | +-- |
| 12 | +-- The above copyright notice and this permission notice shall be included in |
| 13 | +-- all copies or substantial portions of the Software. |
| 14 | +-- |
| 15 | +-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | +-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | +-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 18 | +-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | +-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 20 | +-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 21 | +-- THE SOFTWARE. |
| 22 | +-- |
| 23 | + |
| 24 | +-- User Accounts |
| 25 | +INSERT INTO public.user_account (uuid, first_name, last_name, email, password_hash, user_role, created_at, updated_at) |
| 26 | +VALUES ('95589e50-d261-492b-8852-9324e9a66a42', 'Admin', 'von Universe', 'admin@example.com', '$2a$10$L.0OZ8QjV3yLhoCDvU04gu.WP1wGQih41MsBdvtQOshJJntaugBxe', 'ADMIN', NOW(), NOW()); |
| 27 | + |
| 28 | +INSERT INTO public.user_account (uuid, first_name, last_name, email, password_hash, user_role, created_at, updated_at) |
| 29 | +VALUES ('7e64818d-6276-46fb-8bb1-732e6e09f7e9', 'Albert', 'Einstein', 'albert.einstein@example.com', '$2a$10$hZF1abbZ48Tf.3RndC9W6OlDt6gnBoD/2HbzJayTs6be7d.5DbpnW', 'USER', NOW(), NOW()); |
| 30 | + |
| 31 | +INSERT INTO public.user_account (uuid, first_name, last_name, email, password_hash, user_role, created_at, updated_at) |
| 32 | +VALUES ('b5b92c69-5ed9-4054-954d-0121c29b6800', 'Nikola', 'Tesla', 'nikola.tesla@example.com', '$2a$10$tMbZUZg9AbYL514R.hZ0tuzvfZJR5NQhSVeJPTQhNwPf6gv/cvrna', 'USER', NOW(), NOW()); |
| 33 | + |
| 34 | +INSERT INTO public.user_account (uuid, first_name, last_name, email, password_hash, user_role, created_at, updated_at) |
| 35 | +VALUES ('8d1a4c06-bb0e-4d03-a01f-14fa49bbc152', 'Isaac', 'Newton', 'isaac.newton@example.com', '$2a$10$DLkI7NAZDzWVaKG1lVtloeoPNLPoAgDDBqQKQiSAYDZXrf2QKkuHC', 'USER', NOW(), NOW()); |
| 36 | + |
| 37 | +-- API Keys |
| 38 | +INSERT INTO public.api_key (uuid, token, user_account_id, created_at, updated_at) |
| 39 | +VALUES ('a1c00673-24c5-4e0a-bdbe-22e961ee7548', 'a274793046e34a219fd0ea6362fcca61a001500b71724f4c973a017031653c20', '7e64818d-6276-46fb-8bb1-732e6e09f7e9', NOW(), NOW()); |
| 40 | + |
| 41 | +INSERT INTO public.api_key (uuid, token, user_account_id, created_at, updated_at) |
| 42 | +VALUES ('62657760-21fe-488c-a0ea-f612a70493da', 'dd5dc3b53b6145cfa9f6c58b72ebad21cd2f860ace62451ba4e3c74a0e63540a', 'b5b92c69-5ed9-4054-954d-0121c29b6800', NOW(), NOW()); |
| 43 | + |
| 44 | +-- Saved Search Queries |
| 45 | +INSERT INTO public.search_saved_query (uuid, name, description, type, var_prefixes, var_graph_pattern, var_ordering, user_account_id, created_at, updated_at) |
| 46 | +VALUES ('d31e3da1-2cfa-4b55-a8cb-71d1acf01aef', 'All datasets', 'Quickly query all datasets (DCAT)', 'PUBLIC', |
| 47 | + 'PREFIX dcat: <http://www.w3.org/ns/dcat#>', '?entity rdf:type dcat:Dataset .', 'ASC(?title)', '7e64818d-6276-46fb-8bb1-732e6e09f7e9', |
| 48 | + NOW(), NOW()); |
| 49 | + |
| 50 | +INSERT INTO public.search_saved_query (uuid, name, description, type, var_prefixes, var_graph_pattern, var_ordering, user_account_id, created_at, updated_at) |
| 51 | +VALUES ('c7d0b6a0-5b0a-4b0e-9b0a-9b0a9b0a9b0a', 'All distributions', 'Quickly query all distributions (DCAT)', 'INTERNAL', |
| 52 | + 'PREFIX dcat: <http://www.w3.org/ns/dcat#>', '?entity rdf:type dcat:Distribution .', 'ASC(?title)', '7e64818d-6276-46fb-8bb1-732e6e09f7e9', |
| 53 | + NOW(), NOW()); |
| 54 | + |
| 55 | +INSERT INTO public.search_saved_query (uuid, name, description, type, var_prefixes, var_graph_pattern, var_ordering, user_account_id, created_at, updated_at) |
| 56 | +VALUES ('97da9119-834e-4687-8321-3df157547178', 'Things with data', 'This is private query of Nikola Tesla!', 'PRIVATE', |
| 57 | + 'PREFIX dcat: <http://www.w3.org/ns/dcat#>', |
| 58 | +'?entity ?relationPredicate ?relationObject . |
| 59 | +FILTER isLiteral(?relationObject) |
| 60 | +FILTER CONTAINS(LCASE(str(?relationObject)), LCASE("data"))', |
| 61 | + 'ASC(?title)', '7e64818d-6276-46fb-8bb1-732e6e09f7e9', NOW(), NOW()); |
0 commit comments