Download qusai_core/utils/constants.py from QalamABD/QOSAI: direct link, hf CLI and curl.
- Browser
- Download file 731 Bytes
-
https://huggingface.co/spaces/QalamABD/QOSAI/resolve/main/qusai_core/utils/constants.py
- Command line
-
hf download hf://spaces/QalamABD/QOSAI/qusai_core/utils/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/QalamABD/QOSAI/resolve/main/qusai_core/utils/constants.py
731 Bytes
| from rdflib import Namespace | |
| from pathlib import Path | |
| # Namespaces | |
| ALIGN = Namespace("http://ontology.alignment/core#") | |
| QURAN = Namespace("http://ontology.quran/") | |
| ROOT = Namespace("http://ontology.quran/root/") | |
| LEMMA = Namespace("http://ontology.quran/lemma/") | |
| # Paths (Assuming relative to the project root, can be overridden) | |
| # BASE_DIR is parent of qusai_core | |
| BASE_DIR = Path(__file__).resolve().parent.parent.parent | |
| DEFAULT_ONTOLOGY_PATH = BASE_DIR / "data" / "quran_root_ontology_v3.ttl" | |
| DEFAULT_GRAMMAR_PATH = BASE_DIR / "data" / "quranic_grammar_rules.json" | |
| # Axioms | |
| SOURCE_NAME = "Allah (الله)" | |
| SHAHADA = "لا إله إلا الله" | |
| NECESSARY_BEING = ALIGN.NecessaryBeing | |
| CONTINGENT_BEING = ALIGN.ContingentBeing | |