Agent skill

Wikidata API Guide

by wentorai in wentorai/research-plugins

Query Wikidata SPARQL for scholarly metadata, authors, and entities

MITAuto-check passedResearch & Science

Install Wikidata API Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill wikidata-api-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins wikidata-api-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/literature/metadata/wikidata-api-guide .claude/skills/wikidata-api-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wikidata-api-guide
GitHub stars
298
Used in
1 other repo
Token cost
~1.6k tokens
SKILL.md length
399 words
Files
1
Skills in repo
428
Repo updated
First seen
Licence
MIT

At a glance

Query Wikidata SPARQL for scholarly metadata, authors, and entities

  • Tasks that involve Academic paper search
  • SKILL.md covers Overview, Authentication, Core Endpoints and Common Research Patterns, plus 2 more sections
  • Calls curl; reaches query.wikidata.org

What it does

Wikidata API Guide is an agent skill from wentorai/research-plugins. Query Wikidata SPARQL for scholarly metadata, authors, and entities

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Research & Science, covering Academic paper search. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Academic paper search

Example prompts

  • “/wikidata-api-guide”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • query.wikidata.org

    Also links to:

    • wikidata.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wikidata API Guide loads about 1.6k tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 399 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 399 words, ~1,594 tokens.

Download SKILL.mdSave it as .claude/skills/wikidata-api-guide/SKILL.md (or your agent's skills folder).
name
wikidata-api-guide
description
Query Wikidata SPARQL for scholarly metadata, authors, and entities

Wikidata SPARQL API Guide

Overview

Wikidata is a free, collaborative, multilingual knowledge base maintained by the Wikimedia Foundation. It contains structured data about millions of entities including scholarly articles, academic journals, researchers, universities, and scientific concepts. Each entity has a unique QID and properties linking it to other entities, forming a rich knowledge graph.

For academic researchers, Wikidata serves as a powerful tool for bibliometric analysis, disambiguation of author names, mapping institutional relationships, and linking scholarly outputs across different identifier systems (DOI, ORCID, PubMed ID, arXiv ID, etc.). The SPARQL query service provides a flexible, standards-based interface for complex graph queries.

The Wikidata Query Service is entirely free, requires no authentication, and supports the full SPARQL 1.1 query language. It is especially powerful for cross-referencing scholarly metadata that spans multiple databases and identifier systems.

Authentication

No authentication is required. The Wikidata SPARQL endpoint is free and open.

bash
# No API key needed -- set a descriptive User-Agent header as courtesy
curl -G "https://query.wikidata.org/sparql" \
  --data-urlencode "query=SELECT ?item WHERE { ?item wdt:P31 wd:Q5 } LIMIT 5" \
  -H "Accept: application/json" \
  -H "User-Agent: ResearchClaw/1.0 (academic research tool)"

Core Endpoints

SPARQL Query Endpoint
GET https://query.wikidata.org/sparql?query={SPARQL}&format=json

Parameters:

  • query (required): URL-encoded SPARQL query
  • format: Response format (json, xml, csv, tsv)
Query: Find Papers by a Researcher (via ORCID)
bash
curl -G "https://query.wikidata.org/sparql" \
  --data-urlencode 'query=
    SELECT ?paper ?paperLabel ?doi WHERE {
      ?author wdt:P496 "0000-0002-1825-0097" .
      ?paper wdt:P50 ?author ;
             wdt:P356 ?doi .
      SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
    } LIMIT 20' \
  -H "Accept: application/json" \
  -H "User-Agent: ResearchClaw/1.0"
Query: Journal Impact and Article Counts
sparql
SELECT ?journal ?journalLabel ?issn (COUNT(?article) AS ?articleCount) WHERE {
  ?journal wdt:P31 wd:Q5633421 ;
           wdt:P236 ?issn .
  ?article wdt:P1433 ?journal .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
GROUP BY ?journal ?journalLabel ?issn
ORDER BY DESC(?articleCount)
LIMIT 20
Python Example: Cross-Reference Author Identifiers
python
import requests

SPARQL_URL = "https://query.wikidata.org/sparql"
HEADERS = {
    "Accept": "application/json",
    "User-Agent": "ResearchClaw/1.0 (academic research tool)"
}

def query_wikidata(sparql_query):
    """Execute a SPARQL query against Wikidata."""
    resp = requests.get(
        SPARQL_URL,
        params={"query": sparql_query},
        headers=HEADERS
    )
    resp.raise_for_status()
    data = resp.json()
    return data["results"]["bindings"]

# Find all identifier mappings for a researcher
sparql = """
SELECT ?person ?personLabel ?orcid ?scopus ?dblp ?gscholar WHERE {
  ?person wdt:P496 "0000-0002-1825-0097" .
  OPTIONAL { ?person wdt:P496 ?orcid . }
  OPTIONAL { ?person wdt:P1153 ?scopus . }
  OPTIONAL { ?person wdt:P2456 ?dblp . }
  OPTIONAL { ?person wdt:P1960 ?gscholar . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
"""
results = query_wikidata(sparql)
for r in results:
    print(f"Name: {r.get('personLabel', {}).get('value', 'N/A')}")
    print(f"  ORCID: {r.get('orcid', {}).get('value', 'N/A')}")
    print(f"  Scopus: {r.get('scopus', {}).get('value', 'N/A')}")
    print(f"  DBLP: {r.get('dblp', {}).get('value', 'N/A')}")
    print(f"  Google Scholar: {r.get('gscholar', {}).get('value', 'N/A')}")
Query: Institutions by Country with Coordinates
sparql
SELECT ?uni ?uniLabel ?country ?countryLabel ?coord WHERE {
  ?uni wdt:P31 wd:Q3918 ;
       wdt:P17 ?country ;
       wdt:P625 ?coord .
  FILTER(?country = wd:Q30)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
LIMIT 50

Common Research Patterns

Author Disambiguation: Use Wikidata to resolve author names by cross-referencing ORCID, Scopus ID, DBLP, and Google Scholar identifiers. This is particularly useful when a common name maps to multiple researchers.

Bibliometric Graph Construction: Build citation and co-authorship networks by querying the relationships between authors, papers, journals, and institutions in the Wikidata graph.

Identifier Translation: Convert between DOI, PubMed ID, arXiv ID, and other identifiers using Wikidata's comprehensive property mappings. This enables linking records across heterogeneous databases.

Institutional Analysis: Map university affiliations, geographic distributions, and organizational hierarchies for researchers in a specific field.

Show full SKILL.md (114 more words)Show less

Rate Limits and Best Practices

  • Query timeout: 60 seconds; optimize complex queries with filters and limits
  • Request rate: No strict published limit, but keep requests under 1 per second for sustained usage
  • User-Agent required: Always include a descriptive User-Agent header identifying your application
  • LIMIT clause: Always include a LIMIT clause to prevent accidentally fetching millions of results
  • Label service: Use SERVICE wikibase:label for human-readable labels instead of QIDs
  • Caching: Wikidata results are fairly stable; cache results for repeated queries
  • Bulk queries: For large-scale data extraction, consider using Wikidata dumps instead of the query service

References

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/literature/metadata/wikidata-api-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Wikidata API Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wikidata API Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wikidata API Guide this skillwentorai/research-plugins2981 repos~1.6kAutomated safety check: PassMIT
Read arXiv Paperkarpathy/nanochat58k2 repos~494Automated safety check: PassMIT
Perplexity Web Searchdavila7/claude-code-templates32k12 repos~3.5kAutomated safety check: NotesMIT
Literature Reviewneflibata-feng/MyArxiv-Agent12621 repos~5.9kAutomated safety check: NotesMIT
Openalex Databaseneflibata-feng/MyArxiv-Agent12613 repos~3kAutomated safety check: PassCustom licence
Preprint Search on bioRxivLigphiDonk/Oh-my--paper73813 repos~3.7kAutomated safety check: PassMIT

Similar skills

  • Read arXiv Paper

    karpathy/nanochat

    Fetches the TeX source of an arXiv paper from its URL, reads it and writes a markdown summary tied to the nanochat project.

    58k GitHub starsUsed in 2 repos~494 tokens
    Research & ScienceAuto-check passed
  • Perplexity Web Search

    davila7/claude-code-templates

    Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.

    32k GitHub starsUsed in 12 repos~3.5k tokens
    Research & ScienceAuto-check: notes
  • Literature Review

    neflibata-feng/MyArxiv-Agent

    Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.).

    126 GitHub starsUsed in 21 repos~5.9k tokens
    Research & ScienceAuto-check: notes
  • Openalex Database

    neflibata-feng/MyArxiv-Agent

    Query and analyze scholarly literature using the OpenAlex database.

    126 GitHub starsUsed in 13 repos~3k tokens
    Research & ScienceAuto-check passed
  • Preprint Search on bioRxiv

    LigphiDonk/Oh-my--paper

    Searches bioRxiv life sciences preprints by keyword, author, date range or category with a Python script, returning JSON metadata and optional PDF downloads.

    738 GitHub starsUsed in 13 repos~3.7k tokens
    Research & ScienceAuto-check passed
  • Citation Management

    K-Dense-AI/claude-scientific-writer

    Finds papers in OpenAlex, PubMed and Google Scholar, turns DOIs, PMIDs and arXiv IDs into clean BibTeX, and validates citations for a manuscript or thesis.

    2.4k GitHub starsUsed in 2 repos~3.9k tokens
    Research & ScienceAuto-check: notes

More from wentorai/research-plugins

All 428 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Questions about Wikidata API Guide

What does Wikidata API Guide do?

Query Wikidata SPARQL for scholarly metadata, authors, and entities. Wikidata API Guide is an agent skill from wentorai/research-plugins.

When should I use Wikidata API Guide?

Wikidata API Guide fits situations like: tasks that involve Academic paper search.

How do I install Wikidata API Guide in Claude Code?

Run `npx skills add wentorai/research-plugins --skill wikidata-api-guide -a claude-code`. Or copy the skill folder (skills/literature/metadata/wikidata-api-guide in wentorai/research-plugins) into .claude/skills/wikidata-api-guide in your project. Claude Code loads it when a task matches its description.

How do I install Wikidata API Guide in Codex?

Run `npx skills add wentorai/research-plugins --skill wikidata-api-guide -a codex`. Or copy the skill folder (skills/literature/metadata/wikidata-api-guide in wentorai/research-plugins) into .agents/skills/wikidata-api-guide in your project. Codex loads it when a task matches its description.

Can I use Wikidata API Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill wikidata-api-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wikidata-api-guide, .gemini/skills/wikidata-api-guide, .github/skills/wikidata-api-guide and .opencode/skills/wikidata-api-guide in your project.

What does Wikidata API Guide need to run?

Going by SKILL.md and its folder, Wikidata API Guide needs the command-line tools its instructions call (curl). Our summary lists: Python 3.

Does Wikidata API Guide access the network?

SKILL.md names 2 domains. In commands or code: query.wikidata.org; the agent is likely to contact it when it follows the instructions. As links in the text: wikidata.org. This is read from the text; nothing was executed.

Is Wikidata API Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Wikidata API Guide use?

Wikidata API Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wikidata API Guide use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Wikidata API Guide?

Skills that share tags, products or a category with Wikidata API Guide: Read arXiv Paper (karpathy/nanochat, 58k stars), Perplexity Web Search (davila7/claude-code-templates, 32k stars), Literature Review (neflibata-feng/MyArxiv-Agent, 126 stars) and Openalex Database (neflibata-feng/MyArxiv-Agent, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wikidata API Guide?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 428 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.