Skip to content

Commit

Permalink
tweaks towards successful validation, including the use of the metaty…
Browse files Browse the repository at this point in the history
…pe mixin and removing default_range from the schema
  • Loading branch information
jsheunis committed Dec 22, 2023
1 parent 95d84ec commit 9021529
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions src/linkml/research-dataset-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ prefixes:
schema: http://schema.org/
imports:
- types
- typing
- linkml:types
- datasets
default_prefix: dlco
default_range: string


# SLOTS
Expand All @@ -33,7 +33,6 @@ slots:
affiliation:
slot_uri: schema:affiliation
multivalued: true
inlined_as_list: true
range: string
description: >-
The group(s), institution(s), or employer(s) that an
Expand Down Expand Up @@ -75,6 +74,8 @@ slots:
data_controller:
slot_uri: dpv:hasDataController
range: DataController
multivalued: true
inlined_as_list: true
description: >-
A person or organization that serves as the data
controller of a dataset.
Expand Down Expand Up @@ -105,16 +106,6 @@ slots:
slot_uri: schema:email
description: >-
An email address of an entity
has_part:
slot_uri: dcterms:hasPart
multivalued: true
inlined_as_list: true
any_of:
- range: dlco:File
- range: dlco:ResearchDataset
description: >-
Linked entities that form part of a dataset
such as files or other (sub)datasets
funding:
slot_uri: schema:funding
multivalued: true
Expand All @@ -128,6 +119,17 @@ slots:
description: >-
The funder that provided the financial resources
contained in a grant
has_part:
slot_uri: dcterms:hasPart
multivalued: true
inlined: true
inlined_as_list: true
any_of:
- range: dlco:File
- range: dlco:ResearchDataset
description: >-
Linked entities that form part of a dataset
such as files or other (sub)datasets
identifier:
slot_uri: schema:identifier
identifier: true
Expand Down Expand Up @@ -212,6 +214,8 @@ enums:
# CLASSES
classes:
ResearchDataset:
mixins:
- HasTypeDesignator
tree_root: true
is_a: Dataset
description: >-
Expand All @@ -231,6 +235,8 @@ classes:
- funding
- name
- title
- date_modified
- version
slot_usage:
author:
required: true
Expand Down Expand Up @@ -299,6 +305,8 @@ classes:
Organization.
File:
mixins:
- HasTypeDesignator
class_uri: dlco:File
close_mappings:
- schema:DigitalDocument
Expand All @@ -312,6 +320,7 @@ classes:
slot_usage:
path_posix:
required: true
identifier: true

Grant:
class_uri: dlco:Grant
Expand Down

0 comments on commit 9021529

Please sign in to comment.