forked from marco-bolo/csv-to-json-ld
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAudience.schema.json
More file actions
153 lines (153 loc) · 5.45 KB
/
Copy pathAudience.schema.json
File metadata and controls
153 lines (153 loc) · 5.45 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"@context": "http://www.w3.org/ns/csvw",
"columns": [
{
"name": "id",
"titles": {
"en": [
"MBO Permanent Identifier*"
]
},
"dc:description": {
"en": [
"Note that when inputting into CSV files this should not be the full URI, \nbut just the last part, e.g. `mbo_0000001`.\nThis is the identifier (mPID) for this row of the spreadsheet \nand for whatever information is being described in this row. \nIt should be unique in this column."
]
},
"required": true,
"suppressOutput": true,
"datatype": {
"base": "string",
"format": "^mbo_[_0-9a-z]+$"
}
},
{
"name": "metadataPublisherId",
"titles": {
"en": [
"Data Entry Person (mPID - you)*"
]
},
"dc:description": {
"en": [
"Should be an mPID from the first column of Person.csv"
]
},
"required": true,
"propertyUrl": "https://schema.org/creator",
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"valueUrl": "https://w3id.org/marco-bolo/{+metadataPublisherId}"
},
{
"name": "metadataDescribedForActionId",
"titles": {
"en": [
"Data Entered for Action (mPID)*"
]
},
"dc:description": {
"en": [
"The mPID from the first column of the Action.csv. \nNote that you can reference the same mPID in multiple rows.\n\nUses the <https://w3id.org/marco-bolo/isResultOf> predicate but ultimately ends up being \nrepresented as a triple in the form `<action> schema:result <this-entity>`."
]
},
"required": true,
"propertyUrl": "https://w3id.org/marco-bolo/isResultOf",
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"valueUrl": "https://w3id.org/marco-bolo/{+metadataDescribedForActionId}"
},
{
"name": "audienceType",
"titles": {
"en": [
"Audience Type*"
]
},
"required": true,
"propertyUrl": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
"valueUrl": "https://schema.org/{+audienceType}",
"datatype": {
"base": "string",
"format": "^(Audience|BusinessAudience|EducationalAudience|MedicalAudience|Patient|PeopleAudience|MedicalAudience|ParentAudience|Researcher)$"
}
},
{
"name": "name",
"titles": {
"en": [
"Name*"
]
},
"dc:description": {
"en": [
"The commonly used name. \nFor example: `MBA` for Marine Biological Association"
]
},
"required": true,
"propertyUrl": "https://schema.org/name",
"datatype": {
"base": "string"
}
},
{
"name": "audienceTypeDescription",
"titles": {
"en": [
"Description*"
]
},
"dc:description": {
"en": [
"For example:\n`Environmental consultants, fisheries managers, and marine technology \ncompanies requiring scientific data for impact assessments, \nresource management decisions, or product development`."
]
},
"required": true,
"propertyUrl": "https://schema.org/audienceType",
"datatype": {
"base": "string"
}
},
{
"virtual": true,
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"propertyUrl": "rdf:type",
"valueUrl": "https://schema.org/DataDownload"
},
{
"virtual": true,
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"propertyUrl": "rdf:type",
"valueUrl": "https://w3id.org/marco-bolo/InputMetadataDescription"
},
{
"virtual": true,
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"propertyUrl": "https://schema.org/about",
"valueUrl": "https://w3id.org/marco-bolo/{+id}"
},
{
"virtual": true,
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"propertyUrl": "https://schema.org/contentUrl",
"valueUrl": "https://w3id.org/marco-bolo/mbo_0000005#row={_row}"
}
],
"aboutUrl": "https://w3id.org/marco-bolo/{+id}",
"primaryKey": [
"id"
],
"foreignKeys": [
{
"columnReference": "metadataPublisherId",
"reference": {
"resource": "../out/validation/person-or-organization.csv",
"columnReference": "id"
}
},
{
"columnReference": "metadataDescribedForActionId",
"reference": {
"resource": "../data/Action.csv",
"columnReference": "id"
}
}
]
}