Recued
Menu
← Back to recipes

Identify a thing in Wikidata

by recued-core v1 9 views

Use “Identify a thing in Wikidata” in Recued. Search Wikidata for a name, show every candidate with the description that tells them apart, and resolve what the top one actually is.

How it works 36 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (36 steps)
wanted trim
Trim whitespace from setting name
wanted_required template
Generate text from a template
fail: step.wanted is_empty
hits_raw ?
hits default
Apply default
hit_count count
Count items in hits
any_required template
Generate text from a template
fail: step.hit_count equal 0
candidates map
Extract from each item
top default
Apply default
top_id default
Apply default
detail_raw ?
detail_rows to_list
Apply to_list
detail default
Apply default
defaults defaults
Apply defaults
label default
Apply default
label_source ternary
Apply ternary
instance_raw ?
instance_claims default
Apply default
instance_ids map
Extract from each item
occupation_raw ?
occupation_claims default
Apply default
occupation_ids map
Extract from each item
all_ids flatten
Flatten nested lists in
unique_ids unique
Remove duplicates from
id_count count
Count items in unique ids
ids_param join
Join items with "|"
resolved_raw ?
skip: step.id_count equal 0
resolved default
Apply default
resolved_rows to_list
Apply to_list
resolved_named map
Extract from each item
names_en pluck
Extract name from each item
names_text join
Join items with ", "
card to_summary
Format results as a summary card
candidate_table to_table
Format results as a data table
ambiguity_note template
Generate text from a template
skip: step.hit_count less 2
mul_note template
Generate text from a template
skip: step.en_label is_not_empty
batch_note template
Generate text from a template
skip: step.id_count less 2
Settings 2 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

name setting =
wikidata setting =

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Permissions it requires

Read your Wikidata connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

About

Tags

wikidata wikidataknowledge-graphentitiesfactsreferenceread-onlypack:wikidata

Details

36 steps 2 configurable settings recipe_id: identify-entity-wikidata