Tutorials and Examples
This section contains hands-on notebooks rendered directly in the docs.
Each dataset notebook shows how to load the same data into both
NetworkXGraph and Neo4jGraph. From every notebook page you can also
open the notebook in Google Colab, Kaggle, or a local Jupyter server.
Getting Started
Minimal end-to-end graph workflows:
Demos
Step-by-step demonstrations covering core features:
- Delete Strategies
- Propagation Properties — Full Neo4j Demo
- Prerequisites
- Connection configuration
- Step 1: Connect to Neo4j
- Step 1.5: Clear existing data
- Step 2: Load Game of Thrones dataset
- Step 3: Generate YAML schema
- Step 4: Generate Python entity classes
- Step 5: Initialize propagation properties
- Step 6: Transactional group creation
- Step 7: Verify the group
- Step 8: Sample queries
- Step 9: Get subdocuments
- Cleanup
- RiC-O — Graph Model Demo
- Prerequisites
- Connection configuration
- Step 1: Connect to Neo4j
- Step 1.5: Clear existing data
- Step 2: Load real RiC-O data from the National Archives of France
- Step 3: Initialize propagation properties
- Step 4: Inspect the loaded graph structure
- Step 5: Get subdocuments
- Step 6: Query the hierarchy paths
- Step 7: Inspect specific entities
- Step 8: Summary statistics
- Cleanup
- RiC-O — In-Memory Demo (NetworkX)
- Why NetworkX?
- Step 1: Create in-memory graph with unique persistence path
- Step 2: Load real RiC-O data from the National Archives of France
- Step 3: Initialize propagation properties
- Step 4: Inspect the loaded graph structure
- Step 5: Get subdocuments
- Step 6: Query the hierarchy paths
- Step 7: Inspect specific entities
- Step 8: Summary statistics
- Cleanup
- Vector Search with HNSW
Interactive
Hands-on explorations with Jupyter widgets:
Dataset Examples
Datasets loaded into both NetworkXGraph and Neo4jGraph:
- Karate Club dataset
- Bibliographic references from OpenAlex
- Movies dataset
- Game of Thrones dataset
- Generació de classes Python des d’ontologies RDF i esquemes YAML
Notes
Notebook pages keep the original
.ipynbdownload link in the rendered output.Tutorials are configured to use the
drm-toolJupyter kernel by default.Each tutorial notebook starts with an installation cell that upgrades DRM from GitHub and falls back to a local editable install when needed.
Button links can be customized with env vars:
DRM_DOCS_GITHUB_REPO,DRM_DOCS_GITHUB_REF,DRM_DOCS_LOCAL_JUPYTER_BASE, andDRM_DOCS_LOCAL_NOTEBOOK_PREFIX.