How ilya-smirnov-de/boundary-agents-be works
Boundary Agents BE is a Flask API that serves agent, property, relation, court, and entity data from FactGrid. Requests enter the route handlers in main.py, which build SPARQL queries where needed, execute them through the FactGrid client, and return result bindings. A separate recache endpoint starts a background download of project entities. Configuration supplies endpoint URLs and the server port. The excerpts show these call paths; the cache directory is referenced in code but is absent from the tree, so it is not modeled as a repository component.
Main entry points: Client.py FactGrid Client · Queries.py SPARQL Queries · Downloader.py Entity Downloader · main.py Agent Routes
Components 15
HTTP API
- Agent Routes
main.py - Property Routes
main.py - Relation Routes
main.py - Court Routes
main.py - Entity Route
main.py - Recache Route
main.py
Querying
- SPARQL Queries
factgrid/Queries.py - Type Mappings
constants.py
FactGrid Integration
- FactGrid Client
factgrid/Client.py - Entity Downloader
factgrid/Downloader.py - FactGrid SPARQL
- Entity Data Service
Runtime Configuration
- Configuration
config/Configuration.py - Config File
config/config.json
Other components
- API Caller
Connections 25
- API Caller → Agent Routes: requests
main.py - API Caller → Property Routes: requests
main.py - API Caller → Relation Routes: requests
main.py - API Caller → Court Routes: requests
main.py - API Caller → Entity Route: requests
main.py - API Caller → Recache Route: requests
main.py - Agent Routes → SPARQL Queries: builds queries
main.py - Agent Routes → FactGrid Client: executes queries
main.py - Property Routes → SPARQL Queries: builds queries
main.py - Property Routes → FactGrid Client: executes queries
main.py - Relation Routes → SPARQL Queries: builds queries
main.py - Relation Routes → FactGrid Client: executes queries
main.py - Court Routes → SPARQL Queries: builds queries
main.py - Court Routes → FactGrid Client: executes queries
main.py - Entity Route → FactGrid Client: fetches entity
main.py - Recache Route → Entity Downloader: starts download
main.py - SPARQL Queries → Type Mappings: uses constants
factgrid/Queries.py - FactGrid Client → Configuration: reads URLs
factgrid/Client.py - FactGrid Client → FactGrid SPARQL: sends queries
factgrid/Client.py - FactGrid Client → Entity Data Service: fetches JSON
factgrid/Client.py - Entity Downloader → SPARQL Queries: requests project items
factgrid/Downloader.py - Entity Downloader → FactGrid Client: executes query
factgrid/Downloader.py - Entity Downloader → Entity Data Service: downloads entities
factgrid/Downloader.py - Configuration → Config File: loads settings
config/Configuration.py - Configuration → Type Mappings: imports constants
config/Configuration.py