# Usage: npx ezs -e enrich-teeft-en.ini # To see the enriched notices: # $ fx < data/corpus-simple-teeft-en-50.json '.filter(o => o.ws.rnsr[0]?.length)' [use] # JSONParse URLConnect FILELoad FILESave plugin = basics # expand plugin = analytics [exchange] value = [ "corpus-simple-instituts-50.json" ] [JSONParse] [FILELoad] location = data [JSONParse] #2 - Teeft [assign] path = ws.teeft value = get("abstract", "") [expand] path = ws.teeft ; size = 100 # WARNING: using this line leads to unexpected results (only 5 results on 50; and they enrichment is not done) [expand/URLConnect] url = https://terms-extraction.services.inist.fr/v1/teeft/en?nb=10 retries = 3 timeout = 3000 noerror = true [dump] indent = true [FILESave] location = data identifier = corpus-simple-teeft-en-50.json [dump] indent = true