mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2024-03-19
This commit is contained in:
@ -157,4 +157,22 @@ $ csvgrep -c 'dc.description.provenance[en_US]' -m 'Original URL from IFPRI CONT
|
||||
|
||||
- I finalized the remaining two on Inkomati catchment and now we are at 900!
|
||||
|
||||
# 2024-03-19
|
||||
|
||||
- IWMI sent me some new author ORCID identifiers so I updated our list
|
||||
- Started working on updating my data for the Ontology CoP webinar on CGIAR and AGROVOC
|
||||
- First extracting all unique subjects on CGSpace:
|
||||
|
||||
```
|
||||
localhost/dspace7= ☘ \COPY (SELECT DISTINCT(lower(text_value)) AS "subject" FROM metadatavalue WHERE dspace_object_id in (SELECT dspace_object_id FROM item) AND metadata_field_id IN (187, 120, 210, 122, 215, 127, 208, 124, 128, 123, 125, 135, 203, 236, 238, 119)) to /tmp/2024-03-19-cgspace-subjects.csv WITH CSV HEADER;
|
||||
COPY 28024
|
||||
```
|
||||
|
||||
- Then I extracted the subjects and looked them up against AGROVOC:
|
||||
|
||||
```console
|
||||
$ csvcut -c subject /tmp/2024-03-19-cgspace-subjects.csv | sed '1d' > /tmp/2024-03-19-cgspace-subjects.txt
|
||||
$ ./ilri/agrovoc_lookup.py -i /tmp/2024-03-19-cgspace-subjects.txt -o /tmp/2024-03-19-cgspace-subjects-results.csv
|
||||
```
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user