Files
ai-tax-agent/schemas/nodes_and_edges.schema.json
harkon fdba81809f
Some checks failed
CI/CD Pipeline / Generate SBOM (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Code Quality & Linting (push) Has been cancelled
CI/CD Pipeline / Policy Validation (push) Has been cancelled
CI/CD Pipeline / Test Suite (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-coverage) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-extract) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-firm-connectors) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-forms) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-hmrc) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-ingestion) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-kg) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-normalize-map) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-ocr) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rag-indexer) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rag-retriever) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-reason) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rpa) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (ui-review) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-coverage) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-extract) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-kg) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-rag-retriever) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (ui-review) (push) Has been cancelled
CI/CD Pipeline / Notifications (push) Has been cancelled
completed local setup with compose
2025-11-26 13:17:17 +00:00

105 lines
3.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Tax Agent Knowledge Graph Schema",
"description": "Schema for nodes and relationships in the AI Tax Agent knowledge graph",
"type": "object",
"properties": {
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string", "description": "Unique identifier for the node" },
"type": {
"type": "string",
"description": "Type of the node (e.g., TaxpayerProfile, IncomeItem)",
"enum": [
"TaxpayerProfile",
"TaxYear",
"Jurisdiction",
"TaxForm",
"Schedule",
"FormBox",
"Document",
"Evidence",
"Party",
"Account",
"IncomeItem",
"ExpenseItem",
"PropertyAsset",
"BusinessActivity",
"Allowance",
"Relief",
"PensionContribution",
"StudentLoanPlan",
"Payment",
"ExchangeRate",
"Calculation",
"Rule",
"NormalizationEvent",
"Reconciliation",
"Consent",
"LegalBasis",
"ImportJob",
"ETLRun"
]
},
"properties": {
"type": "object",
"description": "Key-value properties of the node",
"additionalProperties": true
}
},
"required": ["id", "type", "properties"],
"additionalProperties": false
}
},
"relationships": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string", "description": "Unique identifier for the relationship" },
"type": {
"type": "string",
"description": "Type of the relationship (e.g., BELONGS_TO, HAS_BOX)",
"enum": [
"BELONGS_TO",
"OF_TAX_YEAR",
"IN_JURISDICTION",
"HAS_SECTION",
"HAS_BOX",
"REPORTED_IN",
"COMPUTES",
"DERIVED_FROM",
"SUPPORTED_BY",
"PAID_BY",
"PAID_TO",
"OWNS",
"RENTED_BY",
"EMPLOYED_BY",
"APPLIES_TO",
"APPLIES",
"VIOLATES",
"NORMALIZED_FROM",
"HAS_VALID_BASIS",
"PRODUCED_BY",
"CITES",
"DESCRIBES"
]
},
"sourceId": { "type": "string", "description": "ID of the source node" },
"targetId": { "type": "string", "description": "ID of the target node" },
"properties": {
"type": "object",
"description": "Key-value properties of the relationship",
"additionalProperties": true
}
},
"required": ["id", "type", "sourceId", "targetId"],
"additionalProperties": false
}
}
},
"required": ["nodes", "relationships"]
}