Install
openclaw skills install nl-to-graph-query-translatorTranslate natural language questions into Cypher or SPARQL queries for graph databases and knowledge graphs.
openclaw skills install nl-to-graph-query-translatorConvert natural language questions into executable graph queries.
This skill translates human-readable requests into graph query languages such as Cypher (Neo4j) or SPARQL (RDF), allowing developers to interact with graph databases using natural language instead of writing complex query syntax.
Use this skill when a user wants to:
Example requests:
The skill generates executable graph queries in supported query languages:
The translator follows a 5-step process to convert natural language into executable queries:
For detailed information about each step, see Query Translation Strategy.
Used in Neo4j and other property graph databases.
Example:
MATCH (p:Person)-[:PURCHASED]->(product:Product)
RETURN p, product
📖 See Cypher Query Guide
Used in RDF triple stores and knowledge graphs.
Example:
SELECT ?person ?product
WHERE {
?person :purchased ?product .
}
📖 See SPARQL Query Guide
"Find all people named Alice"
"Show companies where employees work"
"Find people connected to Alice within two relationships"
For more patterns, see Query Patterns Reference.
Browse practical examples organized by complexity and use case:
When generating and executing graph queries:
✓ Use schema labels consistently
✓ Avoid overly broad relationship patterns
✓ Prefer parameterized queries for security
✓ Include LIMIT clauses for large datasets
✓ Validate query syntax before execution
See Architecture & Implementation for advanced considerations.
Last Updated: 2026-03-08
Maintainer: OpenClaw Community
License: See LICENSE in repository root