How vodan-development/safevoice works
SafeVoice is a Streamlit application for submitting human-trafficking reports and turning them into RDF triples stored in AllegroGraph. A source enters a report, which the app saves as raw JSON and passes to the pipeline. The pipeline cleans and anonymizes the data, maps it to N-Triples, uploads the file, and archives successful submissions; users can then view and filter archived reports. The README documents the major workflow, while the sampled source shows the key calls and file operations. The report-form domains are represented in the UI node rather than split into speculative components.
Main entry points: pipeline.py Workflow orchestrator · app.py Report UI · mapper.py RDF mapper · cleaner.py Cleaning and anonymization
Components 14
Report submission
- Report UI
app.py - Form options
config/UI_drop_downs.csv
Data processing
- Workflow orchestrator
src/orchestrator/pipeline.py - Cleaning and anonymization
src/cleaning/cleaner.py - CDM schema
config/CDM - Human Trafficking Sources EEPA.csv - RDF mapper
src/transform/mapper.py - YARRRML mapping
config/yml_mapping.yml
Files and storage
- Raw JSON reports
data/raw/raw_json_record - Staged N-Triples
data/intermediate - RDF ingestion
src/storage/ingest.py - AllegroGraph
- Processed N-Triples
data/processed/processed_nt_file
Report review
- Archived JSON reports
data/processed/processed_json_record
Other components
- Report source
Connections 15
- Report source → Report UI: submits report
README.md - Report UI → Form options: loads options
app.py - Report UI → Raw JSON reports: writes JSON
app.py - Report UI → Workflow orchestrator: runs pipeline
app.py - Workflow orchestrator → Cleaning and anonymization: cleans data
src/orchestrator/pipeline.py - Cleaning and anonymization → CDM schema: reads schema
README.md - Workflow orchestrator → RDF mapper: creates triples
src/orchestrator/pipeline.py - RDF mapper → YARRRML mapping: loads mapping
src/transform/mapper.py - RDF mapper → Staged N-Triples: writes N-Triples
src/transform/mapper.py - Workflow orchestrator → RDF ingestion: uploads file
src/orchestrator/pipeline.py - RDF ingestion → AllegroGraph: loads triples
src/storage/ingest.py - Workflow orchestrator → Processed N-Triples: archives N-Triples
src/orchestrator/pipeline.py - Workflow orchestrator → Raw JSON reports: moves JSON
src/orchestrator/pipeline.py - Workflow orchestrator → Archived JSON reports: archives JSON
src/orchestrator/pipeline.py - Report UI → Archived JSON reports: reads reports
app.py