How vadim-schultz/ontolog works
Ontolog infers probabilistic domain models from application logs and exports the result. The main path is logs → normalized records → mined templates and occurrences → scored evidence → inference and aggregation → export. The graph keeps ingestion, template mining/storage, evidence providers, inference, and export distinct, while treating the pipeline as the orchestrator. README documents the major provider and export capabilities; unsampled implementation details are represented at their existing directory paths, and edges without direct source evidence are documented relationships.
Main entry points: pipeline.py Inference pipeline · extractor.py Template extraction · registry.py Export registry · graph.py Evidence graph
Components 19
Log ingestion
- Log parsers
src/ontolog/ingestion - Log records
src/ontolog/models/log_record.py
Template mining
- Template extraction
src/ontolog/templates/extractor.py - Templates and occurrences
src/ontolog/models/template.py - SQLite template store
src/ontolog/storage/sqlite.py
Evidence analysis
- Evidence providers
src/ontolog/providers - Evidence graph
src/ontolog/evidence/graph.py - Evidence records
src/ontolog/models/evidence.py
Domain modeling
- Inference passes
src/ontolog/inference - Probabilistic aggregation
src/ontolog/inference/aggregate - Domain model
src/ontolog/models/domain.py
Model export
- Export registry
src/ontolog/export/registry.py - Format exporters
src/ontolog/export/exporters - Pydantic generator
src/ontolog/export/exporters/pydantic_gen.py - Export formats
src/ontolog/export/formats.py
Other components
- Raw logs
- Infer CLI
src/ontolog/cli/infer/commands.py - Inference pipeline
src/ontolog/pipeline.py - Exported artifact
Connections 23
- Raw logs → Infer CLI: supplied to
README.md - Infer CLI → Inference pipeline: calls
src/ontolog/cli/infer/commands.py - Inference pipeline → Log parsers: selects format
src/ontolog/pipeline.py - Log parsers → Log records: parses into
src/ontolog/ingestion/reader.py - Inference pipeline → Template extraction: runs extraction
src/ontolog/pipeline.py - Template extraction → Log parsers: ingests records
src/ontolog/templates/extractor.py - Template extraction → Templates and occurrences: mines
README.md - Template extraction → SQLite template store: persists
src/ontolog/templates/extractor.py - Inference pipeline → SQLite template store: builds from store
src/ontolog/pipeline.py - SQLite template store → Templates and occurrences: stores
src/ontolog/storage/sqlite.py - Templates and occurrences → Evidence providers: analyzed by
README.md - Evidence providers → Evidence graph: add evidence to
README.md - Evidence graph → Evidence records: contains records
src/ontolog/evidence/graph.py - Inference pipeline → Inference passes: builds model
src/ontolog/pipeline.py - Evidence graph → Inference passes: informs
README.md - Inference passes → Probabilistic aggregation: feeds
README.md - Probabilistic aggregation → Domain model: produces
README.md - Inference pipeline → Export registry: dispatches export
src/ontolog/pipeline.py - Domain model → Export registry: exported through
src/ontolog/export/registry.py - Export registry → Format exporters: dispatches formats
src/ontolog/export/registry.py - Format exporters → Pydantic generator: includes generator
src/ontolog/export/registry.py - Format exporters → Export formats: supports formats
src/ontolog/export/registry.py - Export registry → Exported artifact: renders