Skip to content

Commit b9f8752

Browse files
authored
Merge pull request #200 from GenomicDataInfrastructure/healthdcat-fields-in-retrieveddataset
feat(dataset): add HealthDCAT fields to RetrievedDataset and update m…
2 parents f0c3b6e + 746ba7e commit b9f8752

File tree

3 files changed

+387
-0
lines changed

3 files changed

+387
-0
lines changed

src/main/openapi/ckan.yaml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,110 @@ components:
250250
$ref: "#/components/schemas/CkanResource"
251251
dcat_type:
252252
$ref: "#/components/schemas/CkanValueLabel"
253+
254+
# Below are properties from HealthDCAT
255+
publisher_note:
256+
type: array
257+
items:
258+
type: string
259+
publisher_coverage:
260+
type: array
261+
items:
262+
type: string
263+
publisher_type:
264+
type: array
265+
items:
266+
type: string
267+
trusted_data_holder:
268+
type: boolean
269+
hdab:
270+
type: array
271+
items:
272+
$ref: "#/components/schemas/CkanAgent"
273+
spatial_coverage:
274+
type: array
275+
description: A geographic region that is covered by the dataset.
276+
items:
277+
$ref: '#/components/schemas/CkanSpatialCoverage'
278+
spatial_resolution_in_meters:
279+
type: number
280+
format: float
281+
description: Minimum spatial separation resolvable in a dataset, measured in meters.
282+
temporal_coverage:
283+
type: array
284+
items:
285+
$ref: "#/components/schemas/CkanTimeWindow"
286+
temporal_resolution:
287+
type: string
288+
population_coverage:
289+
type: array
290+
items:
291+
type: string
292+
retention_period:
293+
type: array
294+
items:
295+
$ref: "#/components/schemas/CkanTimeWindow"
296+
purpose:
297+
type: array
298+
items:
299+
type: string
300+
legal_basis:
301+
type: array
302+
items:
303+
type: string
304+
applicable_legislation:
305+
type: array
306+
items:
307+
type: string
308+
health_theme:
309+
type: array
310+
items:
311+
type: string
312+
health_category:
313+
type: array
314+
items:
315+
type: string
316+
max_typical_age:
317+
type: integer
318+
min_typical_age:
319+
type: integer
320+
number_of_records:
321+
type: integer
322+
number_of_unique_individuals:
323+
type: integer
324+
analytics:
325+
type: array
326+
items:
327+
type: string
328+
code_values:
329+
type: array
330+
items:
331+
type: string
332+
coding_system:
333+
type: array
334+
items:
335+
type: string
336+
alternate_identifier:
337+
type: array
338+
items:
339+
type: string
340+
version_notes:
341+
type: string
342+
qualified_relation:
343+
type: array
344+
items:
345+
type: object
346+
properties:
347+
relation:
348+
type: string
349+
role:
350+
type: string
351+
uri:
352+
type: string
353+
personal_data:
354+
type: array
355+
items:
356+
type: string
253357
required:
254358
- id
255359
- title
@@ -393,3 +497,28 @@ components:
393497
required:
394498
- name
395499
- display_name
500+
CkanTimeWindow:
501+
properties:
502+
start:
503+
type: string
504+
end:
505+
type: string
506+
CkanSpatialCoverage:
507+
type: object
508+
properties:
509+
uri:
510+
type: string
511+
description: URI
512+
text:
513+
type: string
514+
description: Label
515+
geom:
516+
type: string
517+
description: Geometry
518+
bbox:
519+
type: string
520+
description: Bounding Box
521+
centroid:
522+
type: string
523+
description: Centroid
524+

src/main/openapi/discovery.yaml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,109 @@ components:
450450
title: Distributions
451451
dcatType:
452452
$ref: "#/components/schemas/ValueLabel"
453+
# Below are properties from HealthDCAT
454+
publisherNote:
455+
type: array
456+
items:
457+
type: string
458+
publisherCoverage:
459+
type: array
460+
items:
461+
type: string
462+
publisherType:
463+
type: array
464+
items:
465+
type: string
466+
trustedDataHolder:
467+
type: boolean
468+
hdab:
469+
type: array
470+
items:
471+
$ref: "#/components/schemas/Agent"
472+
spatialCoverage:
473+
type: array
474+
description: A geographic region that is covered by the dataset.
475+
items:
476+
$ref: '#/components/schemas/SpatialCoverage'
477+
spatialResolutionInMeters:
478+
type: number
479+
format: float
480+
description: Minimum spatial separation resolvable in a dataset, measured in meters.
481+
temporalCoverage:
482+
type: array
483+
items:
484+
$ref: "#/components/schemas/TimeWindow"
485+
temporalResolution:
486+
type: string
487+
populationCoverage:
488+
type: array
489+
items:
490+
type: string
491+
retentionPeriod:
492+
type: array
493+
items:
494+
$ref: "#/components/schemas/TimeWindow"
495+
purpose:
496+
type: array
497+
items:
498+
type: string
499+
legalBasis:
500+
type: array
501+
items:
502+
type: string
503+
applicableLegislation:
504+
type: array
505+
items:
506+
type: string
507+
healthTheme:
508+
type: array
509+
items:
510+
type: string
511+
healthCategory:
512+
type: array
513+
items:
514+
type: string
515+
maxTypicalAge:
516+
type: integer
517+
minTypicalAge:
518+
type: integer
519+
numberOfRecords:
520+
type: integer
521+
numberOfUniqueIndividuals:
522+
type: integer
523+
analytics:
524+
type: array
525+
items:
526+
type: string
527+
codeValues:
528+
type: array
529+
items:
530+
type: string
531+
codingSystem:
532+
type: array
533+
items:
534+
type: string
535+
alternateIdentifier:
536+
type: array
537+
items:
538+
type: string
539+
versionNotes:
540+
type: string
541+
qualifiedRelation:
542+
type: array
543+
items:
544+
type: object
545+
properties:
546+
relation:
547+
type: string
548+
role:
549+
type: string
550+
uri:
551+
type: string
552+
personalData:
553+
type: array
554+
items:
555+
type: string
453556
required:
454557
- id
455558
- title
@@ -566,6 +669,32 @@ components:
566669
- name
567670
- type
568671
- description
672+
TimeWindow:
673+
properties:
674+
start:
675+
type: string
676+
format: date-time
677+
end:
678+
type: string
679+
format: date-time
680+
SpatialCoverage:
681+
type: object
682+
properties:
683+
uri:
684+
type: string
685+
description: URI
686+
text:
687+
type: string
688+
description: Label
689+
geom:
690+
type: string
691+
description: Geometry
692+
bbox:
693+
type: string
694+
description: Bounding Box
695+
centroid:
696+
type: string
697+
description: Centroid
569698
Filter:
570699
properties:
571700
source:

0 commit comments

Comments
 (0)