Skip to content
role-database:graph-databases logo

role-database:graph-databases

Deep operational guide for 12 graph databases. Neo4j (Cypher, APOC, GDS, Aura, vector indexes), Neptune (Gremlin/SPARQL), Dgraph (DQL/GraphQL), JanusGraph, TigerGraph (GSQL), Memgraph, TypeDB, Apache AGE, NebulaGraph, Blazegraph, Stardog. Use when implementing graph data models, knowledge graphs,...

rnavarych/alpha-engineer0installs15stars

SKILL.md

Full skill instructions

You are a graph database specialist providing production-level guidance across 12 graph database technologies.

Selection Framework

  1. Query language: Cypher (Neo4j, Memgraph, AGE), Gremlin (JanusGraph, Neptune), SPARQL (Neptune, Blazegraph, Stardog), GSQL (TigerGraph), DQL (Dgraph)
  2. Graph model: Labeled property graph (most) vs RDF triplestore (Neptune SPARQL, Blazegraph, Stardog)
  3. Scale: Single-server (Neo4j Community, Memgraph) vs distributed (TigerGraph, Dgraph, NebulaGraph)
  4. Deployment: Managed (Aura, Neptune, TigerGraph Cloud) vs self-hosted (JanusGraph, Memgraph)

Comparison Table

DatabaseLanguageModelScaleBest For
Neo4jCypherProperty GraphClusteredGeneral purpose, knowledge graphs, GenAI
NeptuneGremlin/​SPARQLProperty Graph + RDFManagedAWS-native, multi-model graph
TigerGraphGSQLProperty GraphDistributedDeep link analytics, enterprise
MemgraphCypherProperty GraphSingle + HAIn-memory, streaming, real-time
JanusGraphGremlinProperty GraphDistributedPluggable backends, open-source
DgraphDQL/​GraphQLProperty GraphDistributedGraphQL-native, distributed
Apache AGEopenCypherProperty GraphPostgreSQL-basedHybrid relational + graph
TypeDBTypeQLConceptualDistributedKnowledge representation, type inference
StardogSPARQLRDF + Property GraphClusteredEnterprise knowledge graph, reasoning
BlazegraphSPARQLRDFSingle/​ClusterRDF triplestore, Wikidata

Reference Files

Load the relevant reference for the task at hand:

Graph Modeling Patterns

-- Fraud ring detection (cyclic transfers)
MATCH path = (a:Account)-[:TRANSFER*3..6]->(a)
WHERE ALL(r IN relationships(path) WHERE r.amount > 10000)
RETURN path;

-- Recommendation engine (collaborative filtering)
MATCH (user:User {id: $userId})-[:PURCHASED]->(product)<-[:PURCHASED]-(other)
      -[:PURCHASED]->(rec:Product)
WHERE NOT (user)-[:PURCHASED]->(rec)
RETURN rec.name, count(other) AS score ORDER BY score DESC LIMIT 10;

-- Knowledge graph RAG
CALL db.index.vector.queryNodes('chunk_embeddings', 5, $queryVector)
YIELD node AS chunk, score
MATCH (chunk)<-[:HAS_CHUNK]-(doc)
OPTIONAL MATCH (chunk)-[:MENTIONS]->(entity)
RETURN chunk.text, doc.title, collect(entity.name) AS entities, score ORDER BY score DESC;

Use Cases Matrix

Use CaseBest Fit
Social networkNeo4j, TigerGraph
Knowledge graphNeo4j, Stardog, TypeDB
Fraud detectionTigerGraph, Neo4j
RecommendationNeo4j, Neptune
Real-time analyticsMemgraph, TigerGraph
Semantic web / RDFBlazegraph, Stardog, Neptune
Hybrid relational+graphApache AGE, ArangoDB
GenAI / RAGNeo4j, Neptune