Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

PQL Examples by Regulation

Complete collection of Policy Query Language examples for major compliance frameworks.


🇪🇺 EU AI Act (2024)

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


🔒 GDPR (2018)

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


🏥 HIPAA (1996, updated 2013)

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


💰 Basel III / AML (2010)

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


📊 Coming Soon

  • 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

🎯 How to Use These Examples

1. Study the Patterns

Read the examples to understand how to express compliance as code.

2. Adapt to Your Needs

Copy and modify examples for your specific use case.

3. Cite the Regulations

Always maintain the article_reference and regulation fields for auditability.

4. Test with OpenPQL

These examples compile via the OpenPQL platform (private beta).


🤝 Contributing

Have examples for other regulations? We welcome contributions!

See CONTRIBUTING.md for guidelines.


⚠️ Disclaimer

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.


📜 License

Apache 2.0 License - See LICENSE


Built with precision. Compiled with confidence. Governed with cryptographic proof.

© 2025-2026 OpenPQL, Inc.