This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatalad_schema.yaml
132 lines (124 loc) · 2.85 KB
/
datalad_schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
---
id: https://w3id.org/psychoinformatics-de/datalad-schema
name: datalad-schema
title: datalad-schema
description: |-
DataLad dataset schema
license: MIT
see_also:
- https://psychoinformatics-de.github.io/datalad-schema
prefixes:
afo: http://purl.allotrope.org/ontologies/result#
datalad_schema: https://w3id.org/psychoinformatics-de/datalad-schema/
linkml: https://w3id.org/linkml/
obo: https://purl.obolibrary.org/obo/
ORCID: https://orcid.org/
schema: http://schema.org/
spdx: https://spdx.org/licenses/
default_prefix: datalad_schema
default_range: string
# imports
imports:
- linkml:types
# classes are the main organization until for data;
# all data records instantiate a class
classes:
NamedThing:
description: >-
A generic grouping for any identifiable entity
slots:
- identifier
- name
- description
class_uri: schema:Thing
Dataset:
is_a: NamedThing
class_uri: schema:Dataset
slots: ## specified as a list
- authors
- hasPart
- homepage
- keywords
- last-updated
- license
- title
- version
File:
class_uri: schema:DigitalDocument
slots: ## specified as a list
- checksum_md5
- path_posix
- size_in_bytes
- url
Person:
class_uri: schema:Person
slots:
- email
- name
slot_usage:
email:
pattern: "^\\S+@[\\S+\\.]+\\S+"
DatasetCollection:
tree_root: true
description: >-
A holder for Dataset objects
attributes:
entries:
range: Dataset
multivalued: true
inlined: true
# slots are first-class entities in the metamodel
# declaring them here allows them to be reused elsewhere
slots:
authors:
slot_uri: schema:author
multivalued: true
inlined_as_list: true
range: Person
checksum_md5:
slot_uri: obo:NCIT_C171276
description:
slot_uri: schema:description
description: A human-readable description for a thing
email:
slot_uri: schema:email
hasPart:
slot_uri: schema:hasPart
multivalued: true
inlined_as_list: true
range: File
homepage:
slot_uri: schema:version
identifier:
identifier: true
slot_uri: schema:identifier
description: A unique identifier for a thing
keywords:
slot_uri: schema:keywords
multivalued: true
inlined_as_list: true
last-updated:
slot_uri: schema:dateModified
license:
slot_uri: schema:license
# range: LicenseEnum
name:
slot_uri: schema:name
description: A human-readable name for a thing
path_posix:
slot_uri: afo:AFR_0001928
size_in_bytes:
slot_uri: schema:contentSize
range: integer
unit:
ucum_code: byte
title:
slot_uri: schema:title
url:
slot_uri: schema:contentUrl
version:
slot_uri: schema:version
# enumerations
# enums:
# LicenseEnum:
# source_ontology: spdx