AI4DRPM
  • Quick Start (Docker)
    • Prerequisites
    • Setup
    • Access
    • Verify
    • Stop
  • Installation (Manual)
    • Prerequisites
    • Setup
    • Run
    • Frontend (Optional)
    • Development Commands
    • Troubleshooting

Architecture

  • System Architecture Overview
    • Introduction
    • Architectural Layers
    • Layer Descriptions
      • 1. Web Layer
      • 2. Service Layer
        • Resource Services (services/resources/)
        • Engine Services (services/engine/)
        • Haystack Integration (services/haystack/)
        • Shared Services (services/shared/)
      • 3. Data Layer
      • 4. Task Queue & Workers
      • 5. Authentication & Security
      • 6. Utilities Layer
    • Technology Integration Points
      • External APIs
      • Databases
      • Message Queues
    • Configuration Management
    • Logging & Monitoring
      • Logging
    • Deployment Architecture
      • Docker Compose Deployment
  • Technology Stack
    • Core Technologies
      • Backend Framework
        • FastAPI (v0.115+)
      • Programming Language
        • Python 3.12+
    • Database & Persistence
      • Relational Database
        • PostgreSQL 12+
      • ORM
        • SQLAlchemy 2.0+
      • Database Migrations
        • Alembic 1.16+
    • Caching & Message Broker
      • Redis 6.4+
    • Asynchronous Task Processing
      • Celery 5.5+
    • AI & Machine Learning
      • Large Language Models
        • OpenAI-compatible API (v1.75+)
      • Machine Learning
        • scikit-learn 1.6+
        • joblib 1.5+
      • Natural Language Processing
        • spaCy 3.8+
    • Semantic Web & RDF
      • rdflib
      • SPARQL
      • SaxonC (saxonche) 12.6+
    • Authentication & Security
      • JWT (PyJWT) 2.10+
      • bcrypt 4.1+
    • HTTP & Networking
      • httpx
      • python-dotenv 1.1+
    • Document Processing
      • python-docx 1.1+
    • Development Tools
      • Testing
        • pytest 8.3+
        • coverage 7.9+
      • Documentation
        • Sphinx 8.2+
        • MyST Parser 4.0+
        • Sphinx RTD Theme 3.0+
      • Dependency Management
        • Poetry
    • Data Validation
      • Pydantic
      • jsonschema 4.25+
    • Containerization
      • Docker
      • Docker Compose
    • Web Server (Production)
      • Uvicorn
      • Gunicorn (Optional)
    • Monitoring & Logging
      • Python logging

API Layer

  • Overview
    • Application Entry Point
    • API Documentation
  • Middleware
    • Security Headers
    • CORS
  • API Dependencies
    • Overview
      • Database Dependencies
      • Authentication Dependencies
      • Permission Dependencies

Service Layer

  • Resource Services
    • Document Collection Service
    • Document Metadata Service
    • Document Parsing Service
    • Legal Resource Service
    • Provision Service
    • Classification Service
    • Analysis Service
    • Statement Service
    • Category Service
  • Engine Services
    • Pipeline Service
      • Key Dependencies
      • Execution Flow
    • Training Service
    • Prompt Service
    • Token Usage Service
      • Key Functions
        • extract_token_usage_from_pipeline_result()
        • aggregate_token_usage()
        • infer_provider_from_model()
  • Shared Services
    • User Service
    • Refresh Token Service
    • Statistics Service

Task Processing

  • Task Definitions
    • Available Tasks
  • Task Handlers
    • Handler Classes

Data Layer

  • Overview
    • Architecture
      • Layer Organization
      • Domain Organization
      • Entity Relationship Diagram
      • Migrations
      • Session Management
  • Database Configuration
    • Overview
    • Key Components
      • Database URL
      • SessionLocal
      • get_db Dependency
      • Engine Configuration
    • Features
    • Usage Example
  • Database Models
    • Overview
    • Model Architecture
      • Base Model
      • Relationships
      • Association Tables
    • Model Domains
      • Authentication Models
      • Resource Models
      • Analysis Models
      • Category Models
      • Classifier Models
      • Prompt Models
      • Pipeline Models
        • Pipeline
        • PipelineExecution
      • Task Models
  • Repositories
    • Base Repository
    • Legal Data Repositories
      • Legal Resource Repository
      • Classification Repository
      • Analysis Repository
    • Category Repository
    • Classifier Registry
    • Pipeline Repository
    • Prompt Repository
    • Task Repository
    • Token Usage Repository
    • Users Repository

Authentication

  • Authentication & Security
    • JWT Authentication
    • Security Module
  • Scopes & Permissions
    • Available Scopes
    • Scope-Based Authorization
    • Implementing Custom Scopes

Utilities

  • Utilities Overview
    • Modules
  • SPARQL Utilities
    • Key Features
  • General Utilities
    • Key Functions

Development

  • Testing
  • Contributing
    • Development Setup
    • Code Style
    • Commit Messages
    • Pull Request Process
AI4DRPM
  • Resource Services
  • Legal Resource Service
  • View page source

Legal Resource Service

Service for managing legal resources

Previous Next

© Copyright 2025, European Commission.

Built with Sphinx using a theme provided by Read the Docs.