wikidata
Resolve entities, fetch structured facts, and run SPARQL queries against Wikidata
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Resolve entities, fetch structured facts, and run SPARQL queries against Wikidata
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Look up encyclopedic facts and article text from Wikipedia via the public MediaWiki API
Determine the user's current location from GeoClue data
Search places, find nearby POIs, and get driving directions using OpenStreetMap
Read recent desktop notifications from a JSON history file written by a notification-history daemon.
Onboard or reconfigure other pi-chat skills (URLs, usernames, credentials) by triggering a popup that the user fills in directly — values never travel through chat.
Get the current date and time to answer time-related questions
| name | wikidata |
| description | Resolve entities, fetch structured facts, and run SPARQL queries against Wikidata |
Use wikidata-cli to look up entities on Wikidata, fetch their structured
facts, and run SPARQL queries. Wikidata is a free, public knowledge base —
no account or key is needed.
wikidata-cli search "Douglas Adams"
wikidata-cli search "Berlin" --limit 3
Returns candidate hits as JSON, each with id (the QID), label, and
description. Pick the QID that matches the entity you mean.
wikidata-cli get Q42
wikidata-cli get Q42 --raw
Summarizes the entity as JSON: id, label, description, and a compact
claims view (property id → value list). Referenced entities appear as QIDs
(e.g. P31: ["Q5"]); resolve them with another get or search if you need
their labels. --raw dumps the full upstream JSON (large — avoid unless you
need a field the summary drops).
wikidata-cli sparql 'SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q5. SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } LIMIT 5'
wikidata-cli sparql --file query.rq
echo 'SELECT ?x WHERE { ?x wdt:P31 wd:Q5 } LIMIT 1' | wikidata-cli sparql
Runs the query against the Wikidata Query Service and prints
results.bindings as JSON. Each binding maps a variable to a {type, value}
object. Unbound variables are simply absent from a row.
search to turn a name into a QID, then get that
QID for its facts or reference it in a sparql query (wd:Q42).sparql when you need structured, aggregate, or cross-entity
answers ("all novels by author X", "count of cities over 1M") — get only
returns one entity at a time.SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } and
select ?xLabel variables to get human-readable labels back from SPARQL.