How privacy-analyzer-tamuct/privacy-compliance-checker works
This is a web-based privacy-compliance analyzer for IoT manufacturers. The principal workflow is a user submitting or selecting a manufacturer policy, optionally identifying applicable states, and receiving law-specific compliance scores and knowledge-graph context. Separate maintenance workflows discover and check policy URLs, update policy history, and add or refresh regulation knowledge. The graph reflects the README’s local web-app description and the sampled modules; unsampled routes and storage wiring are represented only where supported by the excerpts or source index.
Main entry points: app.py Web UI and API · agentic_kg_discovery_ALTERNATIVEpt2.py Agentic KG Writer · agentic_kg_discovery_ALTERNATIVE.py Agentic Discovery · agentic_policy_update_crawler.py Policy Crawler
Components 16
Web Application
- Web UI and API
app.py
Compliance Analysis
- State Detection
step2_state_detector.py - Policy Scoring
app.py - Weighted Grading
step3_agentic_weighted_grader.py - KG Law Context
app.py
Policy Maintenance
- Policy Crawler
agentic_policy_update_crawler.py - Agentic Discovery
agentic_kg_discovery_ALTERNATIVE.py - Agentic KG Writer
agentic_kg_discovery_ALTERNATIVEpt2.py - Policy History
step4a_timestamps.py
Regulation Knowledge
- Regulation Knowledge Graph
data/knowledge_graph_n8259a/inferred_merged.rdf - Add Regulation
step1_add_regulation.py - Refresh Regulation
step4b_regulation_update.py - Semantic Extraction
semantic_policy_extractor.py
Other components
- Analyst
- Web Search Service
- Groq LLM
Connections 21
- Analyst → Web UI and API: uses
README.md - Web UI and API → State Detection: detects states
app.py - Web UI and API → Policy Scoring: computes scores
app.py - Web UI and API → Weighted Grading: requests grading
app.py - Web UI and API → KG Law Context: queries context
app.py - Web UI and API → Regulation Knowledge Graph: reads graph
app.py - Web UI and API → Policy Crawler: invokes crawler
app.py - Web UI and API → Agentic Discovery: runs discovery
app.py - Web UI and API → Agentic KG Writer: runs writer
app.py - Web UI and API → Policy History: records history
app.py - Weighted Grading → Groq LLM: requests weights
step3_agentic_weighted_grader.py - Agentic Discovery → Policy Crawler: searches and fetches
agentic_kg_discovery_ALTERNATIVE.py - Agentic Discovery → Groq LLM: dispatches tools
agentic_kg_discovery_ALTERNATIVE.py - Agentic KG Writer → Agentic Discovery: queries and searches
agentic_kg_discovery_ALTERNATIVEpt2.py - Agentic KG Writer → Policy Crawler: checks policy date
agentic_kg_discovery_ALTERNATIVEpt2.py - Agentic KG Writer → Policy History: marks checked
agentic_kg_discovery_ALTERNATIVEpt2.py - Agentic KG Writer → Groq LLM: dispatches tools
agentic_kg_discovery_ALTERNATIVEpt2.py - Policy Crawler → Web Search Service: searches policies
agentic_policy_update_crawler.py - Add Regulation → Regulation Knowledge Graph: adds classes
- Add Regulation → Semantic Extraction: uses extraction pattern
- Refresh Regulation → Regulation Knowledge Graph: refreshes annotations