API Reference
The Quran Knowledge Graph provides a comprehensive API for interacting with the graph database, performing queries, and leveraging the semantic capabilities of the system. This reference documentation will help you understand and use the API effectively.API Overview
The API is organized into several main components:Graph API
Access and query the graph structure, including nodes and relationships
Embedding API
Generate and search vector embeddings for semantic analysis
Getting Started with the API
Installation
To use the API in your Python project:Basic Usage
Here’s a simple example of using the API:Authentication
Currently, the API is designed for local use and does not require authentication. If you’re integrating with a hosted version of the API, authentication details will be provided separately.Rate Limits
When using the API locally, there are no rate limits. However, be mindful of resource usage, especially for computationally intensive operations like semantic search or large graph traversals.Error Handling
The API uses standard HTTP status codes and returns detailed error messages. Common errors include:400 Bad Request: Invalid parameters or request format404 Not Found: Requested resource not found500 Internal Server Error: Server-side error