knowledge-graph

Design, build, and query knowledge graphs using RDF, SPARQL, Cypher, and Neo4j.

Updated Aug 28, 2026
One-click install
npx skills add https://github.com/miyake-san/sogo-agent-platform --skill knowledge-graph-miyake-san
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: knowledge-graph
Source: https://github.com/miyake-san/sogo-agent-platform/tree/main/skills/experimental/knowledge-graph
Command: npx skills add https://github.com/miyake-san/sogo-agent-platform --skill knowledge-graph-miyake-san

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Modeling and querying highly connected data is painful in relational tables. This Skill guides you through choosing between RDF triples and labeled property graphs, constructing graphs from structured and unstructured sources, resolving entities, and running graph analytics or GraphRAG for LLM grounding. ## Core Features & Use Cases - Model Selection: Decide between RDF (SPARQL, OWL reasoning, interoperability) and labeled property graphs (Cypher, edge attributes, fast traversals) based on actual requirements. - Construction Pipeline: Model entities and relationships, ingest from CSVs, databases, APIs, or text, perform entity resolution and linking, and validate with SHACL or constraints. - Analytics & GraphRAG: Run centrality, community detection, pathfinding, node embeddings, and link prediction, or ground LLM answers with graph-based retrieval. - Use Case: You need to unify customer records from three databases into a queryable graph. Use this Skill to model the domain, deduplicate entities, write Cypher queries in Neo4j, and run PageRank to find influential accounts. ## Quick Start Ask the agent to design a knowledge graph for your domain, choose RDF or a property graph, and write the SPARQL or Cypher queries to answer your questions.

Frequently Asked Questions about knowledge-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between RDF and a property graph?

Choose RDF when interoperability, shared vocabularies, web identifiers, and formal OWL reasoning matter. Choose a labeled property graph when you need rich attributes on edges, high-performance traversals, and graph analytics on operational data.

How do I write SPARQL and Cypher queries for a knowledge graph?

SPARQL matches triple patterns against RDF data with OPTIONAL, UNION, FILTER, and property paths. Cypher uses ASCII-art patterns like (a)-[:KNOWS]->(b) with MATCH, WHERE, MERGE, and variable-length paths for property graphs.

What is entity resolution in knowledge graph construction?

Entity resolution deduplicates records referring to the same real-world entity through blocking, similarity matching, clustering, and assigning canonical identifiers. It is the step that most determines overall graph quality.

Can I use Neo4j for graph machine learning and embeddings?

Yes, the Neo4j Graph Data Science library provides node embeddings such as Node2Vec, FastRP, and GraphSAGE, plus link prediction and node classification. It also includes centrality, community detection, and pathfinding algorithms.

What is GraphRAG and when should I use it?

GraphRAG grounds LLM answers by retrieving a relevant subgraph via entity linking and traversal, optionally combined with vector search. It outperforms plain vector RAG for multi-hop reasoning, explicit relationships, and explainable provenance.

When should I not use a knowledge graph?

Avoid a graph when a relational table with a join answers the question, since graphs shine on many-hop, relationship-centric queries. Also avoid unbounded variable-length traversals on cyclic graphs, which can explode in cost.