@@ -160,7 +160,7 @@ isimip-publisher run <path>
160
160
For all commands a list of files with absolute pathes (as line separated txt file) can be provided to restrict the files processed, e.g.:
161
161
162
162
``` bash
163
- isimip-publisher -e exclude.txt -i include.txt run < path>
163
+ isimip-publisher -e exclude.txt -i include.txt run < path>
164
164
```
165
165
166
166
Default values for the optional arguments are set in the code, but can also be provided via:
@@ -242,104 +242,104 @@ The database schema is automatically created when `insert_datasets` or `init` is
242
242
243
243
```
244
244
Table "public.datasets"
245
- Column | Type | Collation | Nullable | Default
245
+ Column | Type | Collation | Nullable | Default
246
246
-------------+-----------------------------+-----------+----------+---------
247
- id | uuid | | not null |
248
- target_id | uuid | | |
249
- name | text | | not null |
250
- path | text | | not null |
251
- version | character varying(8) | | not null |
252
- size | bigint | | not null |
253
- specifiers | jsonb | | not null |
254
- identifiers | text[] | | not null |
255
- public | boolean | | not null |
256
- tree_path | text | | |
257
- rights | text | | |
258
- created | timestamp without time zone | | |
259
- updated | timestamp without time zone | | |
260
- published | timestamp without time zone | | |
247
+ id | uuid | | not null |
248
+ target_id | uuid | | |
249
+ name | text | | not null |
250
+ path | text | | not null |
251
+ version | character varying(8) | | not null |
252
+ size | bigint | | not null |
253
+ specifiers | jsonb | | not null |
254
+ identifiers | text[] | | not null |
255
+ public | boolean | | not null |
256
+ tree_path | text | | |
257
+ rights | text | | |
258
+ created | timestamp without time zone | | |
259
+ updated | timestamp without time zone | | |
260
+ published | timestamp without time zone | | |
261
261
archived | timestamp without time zone | | |
262
262
```
263
263
264
264
```
265
265
Table "public.files"
266
- Column | Type | Collation | Nullable | Default
266
+ Column | Type | Collation | Nullable | Default
267
267
---------------+-----------------------------+-----------+----------+---------
268
- id | uuid | | not null |
269
- dataset_id | uuid | | |
270
- target_id | uuid | | |
271
- name | text | | not null |
272
- path | text | | not null |
273
- version | character varying(8) | | not null |
274
- size | bigint | | not null |
275
- checksum | text | | not null |
276
- checksum_type | text | | not null |
277
- netcdf_header | jsonb | | |
278
- specifiers | jsonb | | not null |
279
- identifiers | text[] | | not null |
280
- created | timestamp without time zone | | |
281
- updated | timestamp without time zone | | |
268
+ id | uuid | | not null |
269
+ dataset_id | uuid | | |
270
+ target_id | uuid | | |
271
+ name | text | | not null |
272
+ path | text | | not null |
273
+ version | character varying(8) | | not null |
274
+ size | bigint | | not null |
275
+ checksum | text | | not null |
276
+ checksum_type | text | | not null |
277
+ netcdf_header | jsonb | | |
278
+ specifiers | jsonb | | not null |
279
+ identifiers | text[] | | not null |
280
+ created | timestamp without time zone | | |
281
+ updated | timestamp without time zone | | |
282
282
```
283
283
284
284
```
285
285
Table "public.resources"
286
- Column | Type | Collation | Nullable | Default
286
+ Column | Type | Collation | Nullable | Default
287
287
----------+-----------------------------+-----------+----------+---------
288
- id | uuid | | not null |
289
- doi | text | | not null |
290
- title | text | | not null |
291
- version | text | | |
292
- paths | text[] | | not null |
293
- datacite | jsonb | | not null |
294
- created | timestamp without time zone | | |
295
- updated | timestamp without time zone | | |
288
+ id | uuid | | not null |
289
+ doi | text | | not null |
290
+ title | text | | not null |
291
+ version | text | | |
292
+ paths | text[] | | not null |
293
+ datacite | jsonb | | not null |
294
+ created | timestamp without time zone | | |
295
+ updated | timestamp without time zone | | |
296
296
```
297
297
298
298
The many-to-many relation between ` datasets ` and ` resources ` is implemented using a seperate table:
299
299
300
300
```
301
301
Table "public.resources_datasets"
302
- Column | Type | Collation | Nullable | Default
302
+ Column | Type | Collation | Nullable | Default
303
303
-------------+------+-----------+----------+---------
304
- resource_id | uuid | | |
305
- dataset_id | uuid | | |
304
+ resource_id | uuid | | |
305
+ dataset_id | uuid | | |
306
306
```
307
307
308
308
Additional tables are created for the search and tree functionality of the repository.
309
309
310
310
```
311
311
Table "public.search"
312
- Column | Type | Collation | Nullable | Default
312
+ Column | Type | Collation | Nullable | Default
313
313
------------+-----------------------------+-----------+----------+---------
314
- dataset_id | uuid | | not null |
315
- vector | tsvector | | not null |
316
- created | timestamp without time zone | | |
317
- updated | timestamp without time zone | | |
314
+ dataset_id | uuid | | not null |
315
+ vector | tsvector | | not null |
316
+ created | timestamp without time zone | | |
317
+ updated | timestamp without time zone | | |
318
318
```
319
319
320
320
```
321
321
Table "public.trees"
322
- Column | Type | Collation | Nullable | Default
322
+ Column | Type | Collation | Nullable | Default
323
323
-----------+-----------------------------+-----------+----------+---------
324
- id | uuid | | not null |
325
- tree_dict | jsonb | | not null |
326
- created | timestamp without time zone | | |
324
+ id | uuid | | not null |
325
+ tree_dict | jsonb | | not null |
326
+ created | timestamp without time zone | | |
327
327
updated | timestamp without time zone | | |
328
328
```
329
329
330
330
Two materialized views are used to allow a fast lookup to all ` identifiers ` (with the list of corresponding specifiers), as well as all ` words ` (the list of tokens for the search):
331
331
332
332
```
333
333
Materialized view "public.identifiers"
334
- Column | Type | Collation | Nullable | Default
334
+ Column | Type | Collation | Nullable | Default
335
335
------------+------+-----------+----------+---------
336
- identifier | text | | |
337
- specifiers | json | | |
336
+ identifier | text | | |
337
+ specifiers | json | | |
338
338
```
339
339
340
340
```
341
341
Materialized view "public.words"
342
- Column | Type | Collation | Nullable | Default
342
+ Column | Type | Collation | Nullable | Default
343
343
--------+------+-----------+----------+---------
344
- word | text | | |
344
+ word | text | | |
345
345
```
0 commit comments