knowledge-graph

Generate Neo4j Cypher DDL schemas from MD-DDL domain models.

1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/Semprini/md-ddl --skill knowledge-graph-semprini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: knowledge-graph
Source: https://github.com/Semprini/md-ddl/tree/main/agents/agent-artifact/skills/knowledge-graph
Command: npx skills add https://github.com/Semprini/md-ddl --skill knowledge-graph-semprini

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the translation of conceptual data models defined in MD-DDL into deployable labeled property graph structures for knowledge graphs and graph databases.

Core Features & Use Cases

  • Graph Schema Generation: Creates Neo4j Cypher DDL for nodes, relationships, properties, constraints, and indexes based on MD-DDL definitions.
  • Data Modeling: Realizes MD-DDL entities, relationships, events, and enums as graph structures.
  • Use Case: Convert your MD-DDL domain model for a financial system into a Neo4j graph schema, enabling complex relationship analysis and fraud detection.

Quick Start

Use the knowledge-graph skill to generate a Neo4j Cypher schema from the provided MD-DDL domain model.

Frequently Asked Questions about knowledge-graph

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

FAQPage Schema
How do I generate a Neo4j graph schema from MD-DDL?

This Skill translates MD-DDL domain models into labeled property graph structures by mapping entities to node labels, relationships to relationship types, and events to `:DomainEvent` nodes, outputting deployable Neo4j Cypher DDL.

How does MD-DDL map to a labeled property graph for Neo4j?

MD-DDL entities map to node labels, relationships to relationship types, and enums to property structures. The Skill handles inheritance through label hierarchies and realizes domain events as `:DomainEvent` nodes within the graph database.

Can I create Cypher DDL for constraints and indexes from a domain model?

Yes, you can create Cypher DDL for constraints and indexes directly from an MD-DDL domain model. The Skill generates the necessary schema definitions to enforce data integrity and optimize graph queries in Neo4j.

What is the best way to model inheritance in a Neo4j graph database schema?

Modeling inheritance in a Neo4j graph database schema is handled by creating label hierarchies. This Skill automatically translates MD-DDL inheritance structures into stacked node labels to preserve parent-child entity relationships.

How are domain events represented when converting data models to a knowledge graph?

When converting data models to a knowledge graph, domain events are represented as `:DomainEvent` nodes. This approach allows the graph database to capture event-driven interactions as queryable entities connected to other graph structures.