How to give multiple pids to auto-curate? #53

Open
opened 2026-08-25 10:52:36 +00:00 by adina · 0 comments
Owner

The help of dtc auto-curate suggests that I can give multiple --pids:

 --pid                      -p  PID   if provided, process only  records that match the given PIDs. NOTE: matching does not involve  CURIE-resolution 

If I supply multiple --pid flags, only the last one is used:

 dtc --token $DTC_TOKEN auto-curate https://pool.psychoinformatics.de/api protected forgejo-psyinfhub-user-adina --destination-collection protected --pid xyzrins:persons/ff23ec7a-70b5-4e55-a552-9437e362add2 --pid xyzrins:persons/d4e23096-f9d8-47e0-bb48-a25ba181f202 

If I chain multiple pids behind the flag, it only curated the first:

❱ dtc --token $DTC_TOKEN auto-curate https://pool.psychoinformatics.de/api protected forgejo-psyinfhub-user-adina --destination-collection public --pid xyzrins:persons/simon-eickhoff xyzrins:persons/719c0f2c-1d1b-4d2f-8320-101230f855fa 
processing forgejo-psyinfhub-user-adina ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Warning: inbox `xyzrins:persons/719c0f2c-1d1b-4d2f-8320-101230f855fa` not in collection.
Error: 404 Client Error: Not Found for url: 
https://pool.psychoinformatics.de/api/protected/incoming/xyzrins:persons/719c0f2c-1d1b-4d2f-8320-101230f855fa/records/p/
?page=1&size=100: {"detail":"Not Found"}
The help of ``dtc auto-curate`` suggests that I can give multiple ``--pid``s: ``` --pid -p PID if provided, process only records that match the given PIDs. NOTE: matching does not involve CURIE-resolution ``` If I supply multiple ``--pid`` flags, only the last one is used: ``` dtc --token $DTC_TOKEN auto-curate https://pool.psychoinformatics.de/api protected forgejo-psyinfhub-user-adina --destination-collection protected --pid xyzrins:persons/ff23ec7a-70b5-4e55-a552-9437e362add2 --pid xyzrins:persons/d4e23096-f9d8-47e0-bb48-a25ba181f202 ``` If I chain multiple pids behind the flag, it only curated the first: ``` ❱ dtc --token $DTC_TOKEN auto-curate https://pool.psychoinformatics.de/api protected forgejo-psyinfhub-user-adina --destination-collection public --pid xyzrins:persons/simon-eickhoff xyzrins:persons/719c0f2c-1d1b-4d2f-8320-101230f855fa processing forgejo-psyinfhub-user-adina ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 Warning: inbox `xyzrins:persons/719c0f2c-1d1b-4d2f-8320-101230f855fa` not in collection. Error: 404 Client Error: Not Found for url: https://pool.psychoinformatics.de/api/protected/incoming/xyzrins:persons/719c0f2c-1d1b-4d2f-8320-101230f855fa/records/p/ ?page=1&size=100: {"detail":"Not Found"} ```
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
orinoco/dump-things-pyclient#53
No description provided.