Spaces:
Runtime error
Runtime error
Nicky Nicolson
commited on
Commit
·
707e4f7
1
Parent(s):
2ab0b63
Implement GBIF specimen reconciliation
Browse files- Dockerfile +3 -3
- metadata.json +10 -10
Dockerfile
CHANGED
@@ -19,9 +19,9 @@ RUN csvs-to-sqlite /data/0032228-231002084531237.csv /code/gbifocc.db -s $'\t'
|
|
19 |
RUN ls -l /code
|
20 |
RUN sqlite-utils tables /code/gbifocc.db --counts
|
21 |
|
22 |
-
RUN sqlite-utils tables /code/ihinst.db --counts
|
23 |
-
RUN chmod 755 /code/
|
24 |
|
25 |
COPY ./metadata.json /code/metadata.json
|
26 |
|
27 |
-
CMD ["datasette", "/code/
|
|
|
19 |
RUN ls -l /code
|
20 |
RUN sqlite-utils tables /code/gbifocc.db --counts
|
21 |
|
22 |
+
#RUN sqlite-utils tables /code/ihinst.db --counts
|
23 |
+
RUN chmod 755 /code/gbifocc.db
|
24 |
|
25 |
COPY ./metadata.json /code/metadata.json
|
26 |
|
27 |
+
CMD ["datasette", "/code/gbifocc.db", "-m", "/code/metadata.json", "--host", "0.0.0.0", "--port", "7860"]
|
metadata.json
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
{
|
2 |
-
"title": "
|
3 |
"databases": {
|
4 |
-
"
|
5 |
"tables": {
|
6 |
-
"
|
7 |
"plugins": {
|
8 |
"datasette-reconcile": {
|
9 |
-
"id_field": "
|
10 |
-
"name_field": "
|
11 |
-
"type_field": "
|
12 |
"type_default": [{
|
13 |
-
"id": "
|
14 |
-
"name": "
|
15 |
}],
|
16 |
"max_limit": 5,
|
17 |
-
"service_name": "
|
18 |
-
"view_url": "https://
|
19 |
}
|
20 |
}
|
21 |
}
|
|
|
1 |
{
|
2 |
+
"title": "gbifocc-reconcile",
|
3 |
"databases": {
|
4 |
+
"gbifocc": {
|
5 |
"tables": {
|
6 |
+
"0032228-231002084531237": {
|
7 |
"plugins": {
|
8 |
"datasette-reconcile": {
|
9 |
+
"id_field": "gbifID",
|
10 |
+
"name_field": "recordedBy",
|
11 |
+
"type_field": "basisOfRecord",
|
12 |
"type_default": [{
|
13 |
+
"id": "basisOfRecord",
|
14 |
+
"name": "PRESERVED_SPECIMEN"
|
15 |
}],
|
16 |
"max_limit": 5,
|
17 |
+
"service_name": "GBIF specimens reconciliation",
|
18 |
+
"view_url": "https://gbif.org/occurrence/{{id}}"
|
19 |
}
|
20 |
}
|
21 |
}
|