Newer
Older
web-dumps / doiwos-dumps / 07-enrich-pascal.ini
# Usage: npx ezs enrich-pascal.ini < data/corpus-simple-teeft-en.json > data/corpus-simple-pascal.json


# To see the enriched notices:
# $ fx < data/corpus-simple-pascal.json '.filter(o => o.ws.rnsr[0]?.length)'


[use]
# JSONParse URLConnect
plugin = basics
# expand
plugin = analytics

[JSONParse]

# - Pascal


[assign]
path = ws.pascal
value = fix(_.get(self, "abstract", ""), _.get(self, "title")).join(" ; ")

[expand]
path = ws.pascal
size = 100

[expand/URLConnect]
url = https://domains-classifier.services.inist.fr/v1/en/classify
retries = 3
timeout = 6000000
noerror = true

[dump]
indent = true