Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bakkdoor/svl
Latin Library Word Statistics
https://github.com/bakkdoor/svl
analysis graph-algorithms graphdb graphs language latin statistics
Last synced: 1 day ago
JSON representation
Latin Library Word Statistics
- Host: GitHub
- URL: https://github.com/bakkdoor/svl
- Owner: bakkdoor
- License: bsd-3-clause
- Created: 2023-08-20T03:33:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-06T14:41:43.000Z (6 months ago)
- Last Synced: 2024-05-06T16:14:46.757Z (6 months ago)
- Topics: analysis, graph-algorithms, graphdb, graphs, language, latin, statistics
- Language: Rust
- Homepage:
- Size: 555 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Statistica Verbōrum Latīna
[![CI](https://github.com/bakkdoor/svl/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/bakkdoor/svl/actions/workflows/ci.yml)
This repo implements various algorithms to analyze Latin texts found on [thelatinlibrary.com](https://thelatinlibrary.com) and produce statistics about them.
It uses [CozoDB](https://www.cozodb.org/) for storage and querying (using its Datalog dialect) of the textual data as well as [Rust](https://www.rust-lang.org/) for the overall implementation.It is a work in progress.
## Build
Make sure you have Rust installed. If not, you can install it from [here](https://www.rust-lang.org/tools/install).
Then, clone this repository and build the project:
```bash
git clone https://github.com/bakkdoor/svl.git
cd svl
cargo build --release
```The executable will be in the `./target/release` directory.
## Installation
You can install svl using cargo from this directory with:
```bash
cargo install --path .
```Or directly (without the need for cloning the repository) with:
```bash
cargo install --git https://github.com/bakkdoor/svl.git
```## Usage
You can run the program with:
```bash
./target/release/svl --help
```CozoDB is used to store the data using the rocksdb storage backend.
### Create Cozo Graph DB with schema```bash
svl create-db
```### Import texts from [thelatinlibrary.com](https://thelatinlibrary.com)
```bash
svl import-library
```### Run REPL to query DB interactively via CLI
```bash
svl repl
```### Run custom UI to query DB interactively
```bash
svl ui
```