Nicky Nicolson commited on
Commit
707e4f7
·
1 Parent(s): 2ab0b63

Implement GBIF specimen reconciliation

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -3
  2. 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/ihinst.db
24
 
25
  COPY ./metadata.json /code/metadata.json
26
 
27
- CMD ["datasette", "/code/ihinst.db", "-m", "/code/metadata.json", "--host", "0.0.0.0", "--port", "7860"]
 
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": "nickyn-ih-test",
3
  "databases": {
4
- "ihinst": {
5
  "tables": {
6
- "ih-institutions": {
7
  "plugins": {
8
  "datasette-reconcile": {
9
- "id_field": "irn",
10
- "name_field": "code",
11
- "type_field": "organization",
12
  "type_default": [{
13
- "id": "institution",
14
- "name": "Institution"
15
  }],
16
  "max_limit": 5,
17
- "service_name": "IH institution reconciliation",
18
- "view_url": "https://sweetgum.nybg.org/science/ih/herbarium-details/?irn={{id}}"
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
  }