forked from marco-bolo/csv-to-json-ld
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlace.schema.json
More file actions
180 lines (180 loc) · 5.86 KB
/
Copy pathPlace.schema.json
File metadata and controls
180 lines (180 loc) · 5.86 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
{
"@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": "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": "description",
"titles": {
"en": [
"Description"
]
},
"dc:description": {
"en": [
"A concise one-sentence summary of the main point or purpose."
]
},
"propertyUrl": "https://schema.org/description",
"datatype": {
"base": "string"
}
},
{
"name": "latitude",
"titles": {
"en": [
"Latitude (WGS 84)"
]
},
"propertyUrl": "https://schema.org/latitude",
"datatype": {
"base": "decimal",
"minimum": -180,
"maximum": 180
}
},
{
"name": "longitude",
"titles": {
"en": [
"Longitude (WGS 84)"
]
},
"propertyUrl": "https://schema.org/longitude",
"datatype": {
"base": "decimal",
"minimum": -180,
"maximum": 180
}
},
{
"name": "geoShapeMboId",
"titles": {
"en": [
"GeoShape (mPID)"
]
},
"propertyUrl": "https://schema.org/geo",
"valueUrl": "https://w3id.org/marco-bolo/{+geoShapeMboId}"
},
{
"virtual": true,
"propertyUrl": "rdf:type",
"valueUrl": "https://schema.org/Place"
},
{
"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_0000020#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"
}
}
]
}