Agent skill · Audited from source
Knowledge Graph Construction
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: Build research knowledge graphs for literature synthesis and RAG systems
Cite
Cite this page
ModelsAtlas. “Knowledge Graph Construction (brycewang-stanford/Auto-Empirical-Research-Skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/brycewang-stanford/knowledge-graph-construction
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/tools/knowledge-graph/knowledge-graph-constructionThe 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: Build research knowledge graphs for literature synthesis and RAG systems
---
name: knowledge-graph-construction
description: "Build research knowledge graphs for literature synthesis and RAG systems"
metadata:
openclaw:
emoji: "🗺"
category: "tools"
subcategory: "knowledge-graph"
keywords: ["knowledge graph", "knowledge modeling", "ontology", "RAG", "retrieval augmented generation"]
source: "N/A"
---
# Knowledge Graph Construction Guide
## Overview
Knowledge graphs (KGs) organize information as networks of entities and relationships, making them powerful tools for research synthesis, literature exploration, and AI-augmented retrieval. In academic contexts, knowledge graphs can represent relationships between papers, authors, methods, datasets, findings, and concepts -- enabling queries like "Which methods have been applied to dataset X?" or "What are the common limitations reported across studies of Y?"
This guide covers building knowledge graphs for research applications: defining schemas (ontologies), extracting entities and relations from text, storing and querying graph data, and integrating knowledge graphs with Retrieval Augmented Generation (RAG) systems for AI-powered research assistants.
Whether you are building a personal research knowledge base, constructing a domain-specific literature graph, or developing a RAG system for an academic chatbot, these patterns provide a solid foundation.
## Knowledge Graph Fundamentals
### Core Components
| Component | Definition | Research Example |
|-----------|-----------|-----------------|
| Entity (Node) | A distinct concept or object | Paper, Author, Method, Dataset |
| Relation (Edge) | A typed connection between entities | "cites", "uses_method", "evaluates_on" |
| Property | An attribute of an entity or relation | Paper.year, Author.affiliation |
| Ontology/Schema | Formal definition of entity and relation types | Research ontology defining valid types |
### Designing a Research Ontology
```yaml
# research_ontology.yaml
entities:
Paper:
properties: [title, year, doi, abstract, venue]
Author:
properties: [name, affiliation, orcid]
Method:
properties: [name, description, category]
Dataset:
properties: [name, domain, size, url]
Finding:
properties: [description, metric, value, significance]
Concept:
properties: [name, definition, domain]
relations:
CITES:
from: Paper
to: Paper
AUTHORED_BY:
from: Paper
to: Author
USES_METHOD:
from: Paper
to: Method
EVALUATES_ON:
from: Paper
to: Dataset
REPORTS_FINDING:
from: Paper
to: Finding
RELATED_TO:
from: Concept
to: Concept
INTRODUCES:
from: Paper
to: Method
```
## Entity and Relation Extraction
### LLM-Based Extraction
Using a large language model to extract structured knowledge from paper abstracts:
```python
import json
from openai import OpenAI
client = OpenAI()
EXTRACTION_PROMPT = """Extract entities and relationships from this research paper abstract.
Return JSON with:
- entities: list of {type, name, properties}
- relations: list of {source, relation, target}
Entity types: Paper, Method, Dataset, Finding, Concept
Relation types: USES_METHOD, EVALUATES_ON, REPORTS_FINDING, RELATED_TO, INTRODUCES
Abstract: {abstract}
Respond ONLY with valid JSON."""
def extract_from_abstract(abstract, paper_title):
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "system", "content": "You are a research knowledge extraction system."},
{"role": "user", "content": EXTRACTION_PROMPT.format(abstract=abstract)}
],
response_format={"type": "json_object"},
temperature=0
)
result = json.loads(response.choices[0].message.content)
# Add the paper itself as an entity
result['entities'].insert(0, {
'type': 'Paper',
'name': paper_title,
'properties': {'abstract': abstract[:200]}
})
return result
```
### SpaCy + Custom NER for Domain-Specific Extraction
```python
import spacy
from spacy.tokens import Span
nlp = spacy.load("en_core_web_trf")
# Register custom entity types
@spacy.Language.component("research_entities")
def research_entity_component(doc):
# Pattern-based recognition for methods
method_patterns = [
"random forest", "gradient boosting", "neural network",
"transformer", "attention mechanism", "BERT", "GPT",
"convolutional", "recurrent", "GAN"
]
new_ents = list(doc.ents)
for token in doc:
for pattern in method_patterns:
if pattern.lower() in doc[token.i:token.i+3].text.lower():
span = doc.char_span(token.idx, token.idx + len(pattern),
label="METHOD")
if span and span not in new_ents:
new_ents.append(span)
doc.ents = spacy.util.filter_spans(new_ents)
return doc
nlp.add_pipe("research_entities", after="ner")
```
## Graph Storage and Querying
### Neo4j (Production)
```python
from neo4j import GraphDatabase
class ResearchGraph:
def __init__(self, uri, user, password):
self.driver = GraphDatabase.driver(uri, auth=(user, password))
def add_paper(self, paper):
with self.driver.session() as session:
session.run("""
MERGE (p:Paper {doi: $doi})
SET p.title = $title, p.year = $year, p.abstract = $abstract
""", **paper)
def add_citation(self, citing_doi, cited_doi):
with self.driver.session() as session:
session.run("""
MATCH (a:Paper {doi: $citing})
MATCH (b:Paper {doi: $cited})
MERGE (a)-[:CITES]->(b)
""", citing=citing_doi, cited=cited_doi)
def add_method_usage(self, paper_doi, method_name):
with self.driver.session() as session:
session.run("""
MATCH (p:Paper {doi: $doi})
MERGE (m:Method {name: $method})
Excerpt, 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/knowledge-graph-construction/)
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/knowledge-graph-construction/)
<a href="https://modelsatlas.com/skills/brycewang-stanford/knowledge-graph-construction/"><img src="https://modelsatlas.com/skills/brycewang-stanford/knowledge-graph-construction/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Knowledge Graph Construction
What does the Knowledge Graph Construction skill do?
Is Knowledge Graph Construction safe to install?
What can Knowledge Graph Construction access on my machine?
Which assistants does Knowledge Graph Construction 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 Knowledge Graph Construction skill do?
- Is Knowledge Graph Construction safe to install?
- What can Knowledge Graph Construction access on my machine?