Best use case
orkg-api is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Query the Open Research Knowledge Graph for structured research data
Teams using orkg-api should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/orkg-api/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How orkg-api Compares
| Feature / Agent | orkg-api | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Query the Open Research Knowledge Graph for structured research data
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Open Research Knowledge Graph (ORKG) API
## Overview
The Open Research Knowledge Graph (ORKG) transforms unstructured scholarly articles into structured, machine-readable research contributions. Unlike traditional databases that store metadata (title, authors, DOI), ORKG captures the semantic content — research problems, methods, results, and their relationships. The REST API enables querying, creating, and comparing research contributions programmatically. Free, no authentication required for read operations.
## API Endpoints
### Base URL
```
https://orkg.org/api/
```
### Search Papers
```bash
# Search papers in ORKG
curl "https://orkg.org/api/papers?q=climate+change+adaptation&size=20"
# Get paper details by ID
curl "https://orkg.org/api/papers/R12345"
```
### Search Resources
```bash
# Search any resource (papers, predicates, comparisons)
curl "https://orkg.org/api/resources?q=machine+learning&size=20"
# Filter by class
curl "https://orkg.org/api/resources?q=BERT&exact=false&classes=Paper"
```
### Comparisons
ORKG's unique feature — structured side-by-side comparison of papers:
```bash
# List comparisons
curl "https://orkg.org/api/comparisons?size=10"
# Get a specific comparison
curl "https://orkg.org/api/comparisons/R54321"
# Search comparisons
curl "https://orkg.org/api/comparisons?q=sentiment+analysis"
```
### Research Contributions
```bash
# Get contributions of a paper
curl "https://orkg.org/api/papers/R12345/contributions"
# A contribution describes what a paper contributes:
# - Research problem addressed
# - Method used
# - Results achieved
# - Materials/datasets used
```
## Python Usage
```python
import requests
BASE_URL = "https://orkg.org/api"
def search_orkg_papers(query: str, size: int = 20) -> list:
"""Search papers in the Open Research Knowledge Graph."""
resp = requests.get(f"{BASE_URL}/papers", params={"q": query, "size": size})
resp.raise_for_status()
data = resp.json()
papers = []
for item in data.get("content", []):
papers.append({
"id": item.get("id"),
"title": item.get("title"),
"created": item.get("created_at"),
"contributions": item.get("contributions", [])
})
return papers
def get_paper_contributions(paper_id: str) -> dict:
"""Get structured research contributions for a paper."""
resp = requests.get(f"{BASE_URL}/papers/{paper_id}/contributions")
resp.raise_for_status()
return resp.json()
def search_comparisons(topic: str) -> list:
"""Find structured paper comparisons on a topic."""
resp = requests.get(f"{BASE_URL}/comparisons", params={"q": topic, "size": 10})
resp.raise_for_status()
return resp.json().get("content", [])
# Example usage
papers = search_orkg_papers("transfer learning NLP")
for p in papers:
print(f"[{p['id']}] {p['title']}")
comparisons = search_comparisons("named entity recognition")
for c in comparisons:
print(f"Comparison: {c.get('title')} ({len(c.get('contributions', []))} papers)")
```
## Key Concepts
| Concept | Description | Example |
|---------|-------------|---------|
| **Paper** | A scholarly article with metadata | "Attention Is All You Need" |
| **Contribution** | What a paper contributes to knowledge | "Proposes self-attention mechanism" |
| **Research Problem** | The problem a contribution addresses | "Machine translation quality" |
| **Predicate** | A relationship type | "has_method", "has_result", "uses_dataset" |
| **Comparison** | Side-by-side structured comparison | "Transformer variants comparison" |
| **Resource** | Any entity in the knowledge graph | A method, dataset, metric, or concept |
## ORKG vs Traditional Databases
| Feature | Traditional (S2, Crossref) | ORKG |
|---------|---------------------------|------|
| Content | Metadata (title, DOI, citations) | Semantic content (methods, results) |
| Structure | Flat records | Knowledge graph with relationships |
| Comparison | Manual (read each paper) | Automated structured comparisons |
| Machine-readable | Bibliographic metadata only | Research contributions structured |
| Coverage | Broad (200M+ papers) | Deep but narrower (~50K papers) |
## Use Cases
1. **Literature surveys**: Find existing comparisons to quickly understand a field
2. **Method selection**: Compare methods across papers on structured criteria
3. **Gap analysis**: Identify research problems without solutions
4. **Reproducibility**: Access structured descriptions of experimental setups
## References
- [ORKG Website](https://orkg.org/)
- [ORKG API Documentation](https://orkg.org/api/)
- [ORKG Help Center](https://orkg.org/help-center)
- Jaradeh, M.Y., et al. (2019). "Open Research Knowledge Graph: Next Generation Infrastructure for Semantic Scholarly Knowledge." *K-CAP 2019*.Related Skills
thuthesis-guide
Write Tsinghua University theses using the ThuThesis LaTeX template
thesis-writing-guide
Templates, formatting rules, and strategies for thesis and dissertation writing
thesis-template-guide
Set up LaTeX templates for PhD and Master's thesis documents
sjtuthesis-guide
Write SJTU theses using the SJTUThesis LaTeX template with full compliance
scientific-article-pdf
Generate publication-ready scientific article PDFs from templates
novathesis-guide
LaTeX thesis template supporting multiple universities and formats
graphical-abstract-guide
Create SVG graphical abstracts for journal paper submissions
elegant-paper-template
Beautiful LaTeX template for working papers and technical reports
conference-paper-template
Templates and formatting guides for major academic conference submissions
beamer-presentation-guide
Guide to creating academic presentations with LaTeX Beamer
plagiarism-detection-guide
Use plagiarism detection tools and ensure manuscript originality
paper-polish-guide
Review and polish LaTeX research papers for clarity and style