2026-04-09 12:38:43 +02:00
|
|
|
# Example Scripts
|
|
|
|
|
|
|
|
|
|
These scripts can be executed with:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
make script SCRIPT=examples/scripts/ancestor.chase
|
2026-04-09 12:50:06 +02:00
|
|
|
cargo run -- script examples/scripts/ancestor.chase
|
2026-04-09 12:38:43 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Available examples:
|
|
|
|
|
|
|
|
|
|
- `ancestor.chase`: transitive closure over `Parent/2`
|
|
|
|
|
- `employee_departments.chase`: existential rule that creates labeled nulls
|
|
|
|
|
- `same_team.chase`: conjunctive query with a self-join
|