function addTranslationEntry($enStr, $entryType, $arStr, $keyLang = "EN")
{
    global $CUSTOM_TRANSLATION_TABLE_EN_AR, $TABLE_LOADED;
    if (!$TABLE_LOADED) {
        loadTranslationTable();
    }
    // ALLOW DUPOLICATE ENGLISH KEYS
    //if ( !isFoundInTranslationTable($enStr) )
    //{
    if (empty($entryType)) {
        $entryType = "NONE";
    } else {
        $entryType = strtoupper($entryType);
    }
    if ($keyLang == "EN") {
        $CUSTOM_TRANSLATION_TABLE_EN_AR[$enStr] = array("EN_TEXT" => $enStr, "TYPE" => $entryType, "AR_TEXT" => $arStr, "KEY_LANG" => $keyLang);
    } else {
        $CUSTOM_TRANSLATION_TABLE_EN_AR[$arStr] = array("EN_TEXT" => $enStr, "TYPE" => $entryType, "AR_TEXT" => $arStr, "KEY_LANG" => $keyLang);
    }
    return true;
    //}
    //else
    //{
    //	return false;
    //}
}
require_once "../libs/owllib/writer/OWLWriter.php";
$ONTOLOGY_EXTRACTION_FOLDER = "../data/ontology/extraction/";
$lang = "AR";
if (isset($_GET['lang'])) {
    $lang = $_GET['lang'];
}
loadModels("core,search,qac,qurana,wordnet", $lang);
//$UTHMANI_TO_SIMPLE_WORD_MAP_AND_VS = loadUthmaniToSimpleMappingTable();
//preprint_r($UTHMANI_TO_SIMPLE_WORD_MAP_AND_VS);exit;
//$UTHMANI_TO_SIMPLE_LOCATION_MAP = apc_fetch("UTHMANI_TO_SIMPLE_LOCATION_MAP");
//$LEMMA_TO_SIMPLE_WORD_MAP = loadLemmaToSimpleMappingTable();
$pauseMarksArr = getPauseMarksArrByFile($pauseMarksFile);
$WORDS_TRANSLATIONS_EN_AR = apc_fetch("WORDS_TRANSLATIONS_EN_AR");
$WORDS_TRANSLATIONS_AR_EN = apc_fetch("WORDS_TRANSLATIONS_AR_EN");
$WORDS_TRANSLITERATION = apc_fetch("WORDS_TRANSLITERATION");
$CUSTOM_TRANSLATION_TABLE_EN_AR = loadTranslationTable();
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Quran Analytics | Ontology Extraction </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Semantic Ontology for the Quran">
    <meta name="author" content="">

	<script type="text/javascript" src="<?php 
echo $JQUERY_PATH;
?>
" ></script>
	<script type="text/javascript" src="<?php