Recued
Menu
← Back to recipes

Identify a thing in Wikidata

by recued-core v2 39 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 recued-core.wikidata.entity.search
Search entity on wikidata
■ 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 recued-core.wikidata.entity.labels
Labels entity on wikidata
■ 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 recued-core.wikidata.entity.claims
Claims entity on wikidata
■ instance_claims default
Apply default
■ instance_ids map
Extract from each item
◆ occupation_raw recued-core.wikidata.entity.claims
Claims entity on wikidata
■ 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 recued-core.wikidata.entity.labels
Labels entity on wikidata
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
▼
Output
summary card
table candidate_table
text ambiguity_note
text mul_note
text batch_note
Settings 1 configurable

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

name setting =

Uses (3 operations)

Pack operation Search entity on wikidata recued-core.wikidata.entity.search
Pack operation Labels entity on wikidata recued-core.wikidata.entity.labels
Pack operation Claims entity on wikidata recued-core.wikidata.entity.claims

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 1 configurable settings recipe_id: identify-entity-wikidata