Spaces:
Sleeping
Sleeping
Download utils/constants.py from QalamABD/QUS-AI-PCRI: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/spaces/QalamABD/QUS-AI-PCRI/resolve/main/utils/constants.py
- Command line
-
hf download hf://spaces/QalamABD/QUS-AI-PCRI/utils/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/QalamABD/QUS-AI-PCRI/resolve/main/utils/constants.py
611 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) | |
| DEFAULT_ONTOLOGY_PATH = Path("quran_root_ontology_v3.ttl") | |
| DEFAULT_GRAMMAR_PATH = Path("quranic_grammar_rules.json") | |
| # Axioms | |
| SOURCE_NAME = "Allah (الله)" | |
| SHAHADA = "لا إله إلا الله" | |
| NECESSARY_BEING = ALIGN.NecessaryBeing | |
| CONTINGENT_BEING = ALIGN.ContingentBeing | |