Dgraph Experimental
The dgraph-experimental repository contains a collection of tools, scripts, and experimental projects that complement Dgraph. These resources are community-contributed and maintainedβuse them as starting points and adapt them to your needs.
These tools are not officially supported. Review, understand, and test them before using in production environments.
Data Import Toolsβ
CSV to RDF Converterβ
Convert CSV files to RDF format for Dgraph import using template-based mapping.
- Template-based mapping: Define how CSV columns map to RDF triples
- Functions: Built-in support for geolocation, datetime conversion, and random dates
- Flexible: Handle any CSV structure without requiring specific node/edge formats
Dgraph Import (v25.0+)β
The unified dgraph import command simplifies bulk loading by combining schema deployment and data streaming into a single operation.
π dgraph-import
Docker Imagesβ
FOAF Graph Demoβ
A self-contained Docker image with a pre-populated Friend-of-a-Friend graph and Jupyter notebooks demonstrating DQL and GraphQL queries.
π docker/foaf_graph
Standalone Bulk Loaderβ
A Docker image for learning Dgraph that automatically bulk loads data from an import folder on startup.
- Place RDF files in the
importdirectory - Optionally include
.schema(DQL) and.graphqlschema files - The container handles bulk loading automatically
π docker/standalone_bulk_loader
Testing & Analysisβ
Locust Load Testingβ
A complete load testing framework for Dgraph using Locust.
- Test queries, mutations, or mixed workloads
- Web UI for real-time monitoring
- Configurable concurrency and duration
- Automatic Go profiling integration
π dgraph-locust
Analysis Toolsβ
Scripts for analyzing Dgraph operations and performance:
- processProfiles: Convert Go profiles (CPU, heap, goroutines) to SVG visualizations
- DQLParse: Scan and deduplicate queries from Dgraph request logs
- compactionAnalysis: Parse and analyze BadgerDB compaction activity
π analysisTools
AI & Development Toolsβ
Cursor Rules for DQLβ
Pre-built Cursor AI rules that help generate valid DQL queries. These rules teach the AI assistant DQL syntax, patterns, and best practices.
Ecommerce Agentβ
An AI agent for product discovery and recommendations using:
- Dgraph Knowledge Graph
- Google Gen AI Toolbox
- LangChain + Gemini Pro
π ecommerce-agent-dgraph-toolbox
Knowledge Graphβ
Generic Knowledge Graphβ
Experimental project exploring generic (non-domain-specific) knowledge graphs with:
- Entity extraction from unstructured text
- Ontology-based schema design
- Modus API integration
π knowledge-graph/generic-kg
KGkit (Work in Progress)β
Python package for building knowledge graphs from tabular and unstructured data:
- Automatic entity detection from CSV column naming conventions
- Geolocation handling
- PDF and text extraction
Contributingβ
Found a bug or have an improvement? Contributions are welcome:
- Fork the dgraph-experimental repository
- Create a feature branch
- Submit a pull request
For questions or discussions, visit the Dgraph Community.