Agent skill · Audited from source
Wikidata Api Guide
skill · brycewang-stanford/Auto-Empirical-Research-SkillsNOASSERTION licenceAudited 8 Oct 2026 · source e1ba289846fd
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit e1ba289846fd and found no filesystem, network or shell access and no hard-coded secrets. What it does: Query Wikidata SPARQL for scholarly metadata, authors, and entities
Cite
Cite this page
ModelsAtlas. “Wikidata Api Guide (brycewang-stanford/Auto-Empirical-Research-Skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/brycewang-stanford/wikidata-api-guide
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha e1ba289846fd · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherbrycewang-stanford GitHub userOwner of the repository this skill is read from
- Source folderbrycewang-stanford/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/literature/metadata/wikidata-api-guideThe exact folder we audited
- LicenceNOASSERTIONAs the repository states it
- Commit pinned for this verdicte1ba289846fdA new audit runs when the source changes
- Repository statusNot archivedLast push 3 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Query Wikidata SPARQL for scholarly metadata, authors, and entities
---
name: wikidata-api-guide
description: "Query Wikidata SPARQL for scholarly metadata, authors, and entities"
metadata:
openclaw:
emoji: "🌐"
category: "literature"
subcategory: "metadata"
keywords: ["wikidata", "sparql", "linked-data", "metadata", "knowledge-graph", "scholarly"]
source: "https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service"
---
# 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.
## 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 duExcerpt, first 6,001 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit e1ba289
git clone https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills git -C Auto-Empirical-Research-Skills checkout e1ba289846fd
The author documents no install command, so this uses the repository directly. Our verdict covers commit e1ba289846fd only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| OpenClaw | Mentioned in its text, not tested | Skills for OpenClaw · About OpenClaw |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
e1ba289846fd
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/brycewang-stanford/wikidata-api-guide/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
brycewang-stanford/Auto-Empirical-Research-Skills
GIS analysis and remote sensing workflows for geospatial research applications
brycewang-stanford/Auto-Empirical-Research-Skills
Run and manage Google Colab notebooks for Python and ML research
brycewang-stanford/Auto-Empirical-Research-Skills
Advanced Google Scholar search techniques for comprehensive literature discovery
brycewang-stanford/Auto-Empirical-Research-Skills
Ethical Google Scholar data collection techniques and best practices
brycewang-stanford/Auto-Empirical-Research-Skills
Autonomous agent for comprehensive deep research on any topic
brycewang-stanford/Auto-Empirical-Research-Skills
Practical advice for thriving in PhD programs and academic research
Add this badge to your README
[](https://modelsatlas.com/skills/brycewang-stanford/wikidata-api-guide/)
<a href="https://modelsatlas.com/skills/brycewang-stanford/wikidata-api-guide/"><img src="https://modelsatlas.com/skills/brycewang-stanford/wikidata-api-guide/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Wikidata Api Guide
What does the Wikidata Api Guide skill do?
Is Wikidata Api Guide safe to install?
What can Wikidata Api Guide access on my machine?
Which assistants does Wikidata Api Guide work with?
How current is this page?
Sources
- github.com/brycewang-stanford/Auto-Empirical-Research-Skills/tre — the audited source at commit e1ba289846fd and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Wikidata Api Guide skill do?
- Is Wikidata Api Guide safe to install?
- What can Wikidata Api Guide access on my machine?