Complete collection of Policy Query Language examples for major compliance frameworks.
Coverage: Articles 5-85
Folder: eu_ai_act/
| Example | Article | Description |
|---|---|---|
| article_6_prohibited_practices.pql | Article 6 | Detect and prevent prohibited AI techniques |
Full Regulation: EUR-Lex 2024/1689
Coverage: All 99 Articles
Folder: gdpr/
| Example | Article | Description |
|---|---|---|
| consent_management.pql | Articles 6, 7, 8 | Consent validation and management |
Full Regulation: EUR-Lex 2016/679
Coverage: Privacy Rule, Security Rule
Folder: hipaa/
| Example | Section | Description |
|---|---|---|
| phi_access_control.pql | 45 CFR 164.502, 164.524 | PHI access controls and patient rights |
Full Regulation: HHS HIPAA
Coverage: AML-396, 31 CFR 1020
Folder: aml/
| Example | Standard | Description |
|---|---|---|
| customer_risk_assessment.pql | AML-396, 31 CFR 1020 | Customer Due Diligence (CDD/KYC) |
Full Guidance: Basel Committee
- SOX (Sarbanes-Oxley) - Section 404, 802
- PCI-DSS - Payment Card Industry Data Security Standard
- CCPA/CPRA - California Consumer Privacy Act
- FERPA - Family Educational Rights and Privacy Act
- GLBA - Gramm-Leach-Bliley Act
Read the examples to understand how to express compliance as code.
Copy and modify examples for your specific use case.
Always maintain the article_reference and regulation fields for auditability.
These examples compile via the OpenPQL platform (private beta).
Have examples for other regulations? We welcome contributions!
See CONTRIBUTING.md for guidelines.
These examples are for educational purposes to demonstrate policy-as-code principles. They are NOT:
- Legal advice
- Complete compliance implementations
- Substitutes for qualified legal counsel
Always consult compliance experts and legal advisors for production deployments.
Apache 2.0 License - See LICENSE
Built with precision. Compiled with confidence. Governed with cryptographic proof.
© 2025-2026 OpenPQL, Inc.