alfanous
Kahraman (Cleaning)
| 作者: | 作者 |
|---|---|
| 發布: | 0.7.30 |
| 執照: | Agpl |
| 跟踪器: | Alfanous-Team/Alfanous/問題 |
| MailingList: | [email protected] |
從PYPI安裝它:
$ sudo pip install alfanous您可以從控制台中使用它:
$ alfanous-console -a search -q الله
$ alfanous-console -a search -q Allh或來自Python:
>> > import alfanous
>> > alfanous . search ( u"الله" )
>> > alfanous . do ({ "action" : "search" , "query" : u"الله" })
>> > alfanous . do ({ "action" : "search" , "query" : u"Allh" }) # Buckwalter transliteration您也可以從Web服務中使用它:
http://alfanous.org/api/search?query=الل杉
http://alfanous.org/api/search?query=allh
| 數字 | 旗幟 | 相關行動 | 相關單位 | 描述 | 預設值 | 接受的值 |
| 1 | 行動 | <none> | <none> | 執行動作 | "搜尋" | 搜索|建議|展示 |
| 2 | 單元 | 搜索,建議 | <none> | 搜索單元 | “啊” | 嗯|字|翻譯 |
| 2 | 識別 | <all> | <all> | 請求者的標識符[實驗] | “不明確的” | 不明確的 |
| 3 | 平台 | <all> | <all> | 請求者使用的平台 | “不明確的” | 未定義| WP7 | S60 | Android | ios | Linux |窗戶 |
| 4 | 領域 | <all> | <all> | 請求者的Web域(如果適用) | “不明確的” | * |
| 5a | 詢問 | 搜索,建議 | <all> | 附加在動作上的查詢 | “” | * |
| 5b | 詢問 | 展示 | <all> | 附加在動作上的查詢 | “” | 全部|翻譯|朗誦|信息|提示|調查|章節|默認值|標誌|字段| fields_reverse |錯誤|域| help_messages |根 |
| 6 | 強調 | 搜尋 | <all> | 突出顯示方法 | “ CSS” | CSS | html | Genshi |粗體| bbcode |
| 7 | 腳本 | 搜尋 | 啊,詞 | aya文字的劇本 | “標準” | 標準| Uthmani |
| 8 | 發聲 | 搜尋 | 啊,詞 | 啟用AYA文本的發聲 | “真的” | true |錯誤的 |
| 9 | 朗誦 | 搜尋 | 嗯 | 朗誦ID | “ 1” | 1至30 |
| 10 | 翻譯 | 搜尋 | 嗯,跨性別 | 翻譯ID | “沒有任何” | * |
| 11 | 羅馬化 | 搜尋 | 啊,詞 | 羅馬化的類型 | “沒有任何” | 無| Buckwalter | ISO |阿拉伯 |
| 12a | 看法 | 搜尋 | 啊,詞 | 預定義的配置以查看 | “風俗” | 最小|正常|完整|統計|語言|風俗 |
| 12b | 看法 | 搜尋 | 翻譯 | 預定義的配置以查看 | “風俗” | 最小|正常|完整|風俗 |
| 13 | prev_aya | 搜尋 | 嗯 | 啟用先前的aya檢索 | “錯誤的” | true |錯誤的 |
| 14 | next_aya | 搜尋 | 嗯 | 啟用下一個Aya檢索 | “錯誤的” | true |錯誤的 |
| 15 | sura_info | 搜尋 | 嗯 | 啟用Sura信息檢索 | “真的” | true |錯誤的 |
| 16 | sura_stat_info | 搜尋 | 嗯 | 啟用蘇拉統計數據檢索 | “錯誤的” | true |錯誤的 |
| 17 | Word_info | 搜尋 | 啊,詞 | 啟用單詞信息檢索 | “真的” | true |錯誤的 |
| 17a | word_synonyms | 搜尋 | 嗯 | 啟用取回關鍵字同義詞 | “錯誤的” | true |錯誤的 |
| 17b | word_derivations | 搜尋 | 嗯 | 啟用取回關鍵字推導 | “真的” | true |錯誤的 |
| 17C | word_vocalization | 搜尋 | 嗯 | 啟用關鍵字發聲的檢索 | “真的” | true |錯誤的 |
| 18 | aya_position_info | 搜尋 | 嗯 | 啟用AYA位置信息檢索 | “真的” | true |錯誤的 |
| 19 | aya_theme_info | 搜尋 | 嗯 | 啟用AYA主題信息檢索 | “真的” | true |錯誤的 |
| 20 | aya_stat_info | 搜尋 | 嗯 | 啟用AYA統計信息檢索 | “真的” | true |錯誤的 |
| 21 | aya_sajda_info | 搜尋 | 嗯 | 啟用Aya Sajda信息檢索 | “真的” | true |錯誤的 |
| 22 | Annotation_word | 搜尋 | 啊,詞 | 啟用查詢術語註釋檢索 | “錯誤的” | true |錯誤的 |
| 23 | Annotation_aya | 搜尋 | 嗯 | 啟用AYA單詞註釋檢索 | “錯誤的” | true |錯誤的 |
| 24 | 排序 | 搜尋 | 嗯 | 結果排序順序 | “分數” | 總計|得分| Mushaf |坦齊爾|主題 |
| 25 | 抵消 | 搜尋 | <all> | 啟動結果 | “ 1” | 1至6236 |
| 26 | 範圍 | 搜尋 | <all> | 結果範圍 | “ 10” | 1至25 |
| 27 | 頁 | 搜尋 | <all> | 頁碼[覆蓋偏移] | “ 1” | 1至6236 |
| 28 | 永恆 | 搜尋 | <all> | 每個頁面的結果[覆蓋範圍] | “ 10” | 1至25 |
| 29 | 模糊 | 搜尋 | 嗯 | 模糊搜索[剝奪] | “錯誤的” | true |錯誤的 |
| 30 | 嗯 | 搜尋 | 詞,trans | 啟用檢索Aya文本 | “真的” | true |錯誤的 |
aya搜索:
翻譯搜索:
| n | Eld | 英語 | 值 | 描述 |
| 1 | رقم | gid | 1至6236 | 整個古蘭經的全球AYA秩序 |
| 2 | 的 | aya_id | 1至300 | 蘇拉內部的aya命令 |
| 3 | آآ | 嗯 | 文字 | aya非數量的標准文本(用於搜索) |
| 4 | آآ_ | 嗯 | 文字 | AYA發聲的標准文本(用於顯示/搜索) |
| 5 | ث證 | Uth | 文字 | Aya發聲的Uthmani文本(用於顯示/搜索) |
| 6 | ث證 | uth_ | 文字 | Aya發聲的Uthmani文本(用於顯示) |
| 7 | &stal | 主題 | 文字 | 主題部門:章節>主題>子主題 |
| 8 | فص | 章 | 文字 | 主題部門:章節>主題>子主題 |
| 9 | ف | 話題 | 文字 | 主題部門:章節>主題>子主題 |
| 10 | 試 | 亞主題 | 文字 | 主題部門:章節>主題>子主題 |
| 11 | 阿I | sura_id | 1至114 | 蘇拉的命令在Mus-Haf |
| 12 | | sura_arabic | 文字 | 蘇拉的阿拉伯語名稱 |
| 12+ | | sura_english | 文字 | 蘇拉的英文名稱 |
| 12+ | __جئة | 蘇拉 | 文字 | 蘇拉的羅馬名稱 |
| 13 | نوع_السورة | sura_type_arabic | 假| | 蘇拉的啟示錄[阿拉伯語] |
| 13+ | نوع_السورة_إنجليزي | sura_type | Meccan | Medinan | 蘇拉的啟示錄[英語] |
| 14 | 碼 | sura_order | 1至114 | 蘇拉的啟示順序 |
| 15 | جزء | 朱茲 | 1至30 | 結構部: JUZ > HIZB>擦 |
| 16 | حز | 真主黨 | 1至60 | 結構部:JUZ> HIZB >擦 |
| 17 | qud | NISF | 1至2 | 棄用 |
| 18 | } | 擦 | 1至4 | 結構部:JUZ> HIZB>擦 |
| 19 | صفحة | 頁 | 數字 | 結構部:頁面 |
| 19+ | صفحة__兩個 | page_in | 數字 | 結構部:佩奇(印度穆沙夫) |
| 20 | 貴 | 曼茲爾 | 1至7 | 結構部門: Manzil > Ruku |
| 21 | 攻擊 | ruku | 數字 | 結構部門:Manzil> Ruku |
| 22 | ج | Sajda | q لا | 測試sajda的存在 |
| 23 | 的 | sajda_id | 1 | 14 | sajda的順序是否存在 |
| 24 | 貴利 | sajda_type | #| |惠 | sajda的類型如果存在 |
| 25 | ح__ | S_L | 數字 | 蘇拉的字母數量 |
| 26 | ك__ | S_W | 數字 | 蘇拉語中的單詞數 |
| 27 | ج__ | S_G | 數字 | 蘇拉的上帝名字數量 |
| 28 | آ__ | S_A | 數字 | 蘇拉的AYAS數量 |
| 29 | 。 | S_R | 數字 | Sura中的Ruku-S數量 |
| 30 | ح_آ | A_L | 數字 | aya中的字母數量 |
| 31 | ك_آ | A_W | 數字 | aya中的單詞數 |
| 32 | ج_آ | A_G | 數字 | 上帝的名字數量 |
| 選項 | 描述 |
| 分數 | 與查詢關鍵字相比,結果的相關性 |
| 穆沙夫 | Ayas在Mus-Haf的默認順序 |
| 坦齊爾 | 啟示順序 |
| 主題 | 受試者字段值的字母順序 |
| Ayalenght | 艾亞的長度從最短到最長 |
| 場地 | 服裝領域的數字順序或字母順序(請參閱字段_ ) |
標誌:
{
"action" = "suggest" ,
"query" = "مءصدة"
}回覆:
{
"suggest" : [
[ " u0645 u0621 u0635 u062f u0629 " ,
[ " u0645 u0642 u062a u0635 u062f u0629 " , " u0645 u0624 u0635 u062f u0629 " ]
]
],
"error" : {
"msg" : "success ## action=suggest ; query= u0645 u0621 u0635 u062f u0629 " ,
"code" : 0
}
}標誌:
{
"action" : "search" ,
"query" : "الكوثر" ,
"sortedby" : "score" ,
"page" : 1 ,
"word_info" : True ,
"highlight" : "css" ,
"script" : "standard" ,
"prev_aya" : True ,
"next_aya" : True ,
"sura_info" : True ,
"aya_position_info" : True ,
"aya_theme_info" : True ,
"aya_stat_info" : True ,
"aya_sajda_info" : True ,
"annotation_word" : True ,
"annotation_aya" : True ,
"translation" : "None" ,
"recitation" : 1
}回覆:
{
"search" : {
"runtime" : 1.0951571464538574 ,
"interval" : {
"start" : 1 ,
"total" : 1 ,
"end" : 1
}
" words ": {
"global" : {
"nb_words" : 1,
"nb_matches": 1,
"nb_vocalizations": 1,
} ,
"individual" : {
"1" : {
"word" : " u0627 u0644 u0643 u0648 u062b u0631 " ,
"nb_matches" : 1 ,
"nb_ayas" : 1 ,
"nb_vocalizations" : 1 ,
"vocalizations" : [ " u0627 u0644 u0652 u0643 u064e u0648 u0652 u062b u064e u0631 u064e " ],
},
},
},
"ayas" : {
"1" : {
"identifier" : {
"gid" : 6205 ,
"aya_id" : 1 ,
"sura_id" : 108 ,
"sura_name" : " u0627 u0644 u0643 u0648 u062b u0631 " ,
},
"aya" : {
"id" : 1 ,
"text" : " u0625 u0650 u0646 u0651 u064e u0627 u0623 u064e u0639 u0652 u0637 u064e u064a u0652 u0646 u064e u0627 u0643 u064e <span class= " match term0 " > u0627 u0644 u0652 u0643 u064e u0648 u0652 u062b u064e u0631 u064e </span>" ,
"recitation" : "http://www.everyayah.com/data/Abdul_Basit_Murattal_64kbps/108001.mp3" ,
"translation" : null ,
"prev_aya" : {
"id" : 7 ,
"sura" : " u0627 u0644 u0645 u0627 u0639 u0648 u0646 " ,
"text" : " u0648 u064e u064a u064e u0645 u0652 u0646 u064e u0639 u064f u0648 u0646 u064e u0627 u0644 u0652 u0645 u064e u0627 u0639 u064f u0648 u0646 u064e " ,
},
"next_aya" : {
"id" : 2 ,
"sura" : " u0627 u0644 u0643 u0648 u062b u0631 " ,
"text" : " u0641 u064e u0635 u064e u0644 u0651 u0650 u0644 u0650 u0631 u064e u0628 u0651 u0650 u0643 u064e u0648 u064e u0627 u0646 u0652 u062d u064e u0631 u0652 " ,
},
},
"sura" : {
"id" : 108 ,
"name" : " u0627 u0644 u0643 u0648 u062b u0631 " ,
"type" : " u0645 u0643 u064a u0629 " ,
"order" : 15 ,
"ayas" : 3 ,
"stat" : {
"words" : 10 ,
"letters" : 42 ,
"godnames" : 0 ,
},
},
"theme" : {
"chapter" : " u0623 u0631 u0643 u0627 u0646 u0627 u0644 u0625 u0633 u0644 u0627 u0645 " ,
"topic" : " u0627 u0644 u062d u062c u0648 u0627 u0644 u0639 u0645 u0631 u0629 " ,
"subtopic" : null
},
"position" : {
"rub" : 0 ,
"manzil" : 7 ,
"ruku" : 550 ,
"hizb" : 60 ,
"page" : 602
},
"sajda" : {
"exist" : false ,
"id" : null ,
"type" : null
},
"stat" : {
"letters" : 16 ,
"godnames" : 0 ,
"words" : 3
},
"annotations" : {
"1" : {
"arabicroot" : null ,
"arabicmood" : null ,
"number" : null ,
"spelled" : " u0627 u0646 u0627 u0653 " ,
"aspect" : null ,
"word_gid" : 75871 ,
"word_id" : 1 ,
"mood" : null ,
"arabicspecial" : " u0625 u0650 u0646 u0651 " ,
"state" : null ,
"arabiclemma" : " u0625 u0650 u0646 u0651 " ,
"gid" : 116333 ,
"type" : "Particles" ,
"aya_id" : 1 ,
"arabictoken" : null ,
"form" : null ,
"pos" : "Accusative particle" ,
"arabiccase" : " u0645 u0646 u0635 u0648 u0628 " ,
"part" : " u062c u0630 u0639 " ,
"normalized" : " u0625 u0646 u0627 u0653 " ,
"case" : "Accusative case" ,
"sura_id" : 108 ,
"word" : " u0625 u0650 u0646 u0651 u064e u0627 u0653 " ,
"derivation" : null ,
"arabicpos" : " u062d u0631 u0641 u0646 u0635 u0628 " ,
"person" : null ,
"token" : null ,
"gender" : null ,
"voice" : null ,
"order" : 1
},
"2" : {
"arabicroot" : " u0639 u0637 u0648 " ,
"arabicmood" : null ,
"number" : " u062c u0645 u0639 " ,
"spelled" : " u0627 u0639 u0637 u064a u0646 u0670 u0643 " ,
"aspect" : "Perfect verb" ,
"word_gid" : 75872 ,
"word_id" : 2 ,
"mood" : null ,
"arabicspecial" : null ,
"state" : null ,
"arabiclemma" : null ,
"gid" : 116335 ,
"type" : "Verbs" ,
"aya_id" : 1 ,
"arabictoken" : null ,
"form" : "Fourth form" ,
"pos" : "Verb" ,
"arabiccase" : null ,
"part" : " u062c u0630 u0639 " ,
"normalized" : " u0623 u0639 u0637 u064a u0646 u0670 u0643 " ,
"case" : null ,
"sura_id" : 108 ,
"word" : " u0623 u064e u0639 u0652 u0637 u064e u064a u0652 u0646 u064e u0670 u0643 u064e " ,
"derivation" : null ,
"arabicpos" : " u0641 u0639 u0644 " ,
"person" : " u0645 u062a u0643 u0644 u0645 " ,
"token" : null ,
"gender" : " u0645 u0630 u0651 u0643 u0631 " ,
"voice" : null ,
"order" : 1
},
"3" : {
"arabicroot" : null ,
"arabicmood" : null ,
"number" : null ,
"spelled" : " u0671 u0644 u0643 u0648 u062b u0631 " ,
"aspect" : null ,
"word_gid" : 75873 ,
"word_id" : 3 ,
"mood" : null ,
"arabicspecial" : null ,
"state" : null ,
"arabiclemma" : null ,
"gid" : 116337 ,
"type" : "determiner" ,
"aya_id" : 1 ,
"arabictoken" : " u0627 u0644 " ,
"form" : null ,
"pos" : null ,
"arabiccase" : null ,
"part" : " u0633 u0627 u0628 u0642 " ,
"normalized" : " u0671 u0644 u0643 u0648 u062b u0631 " ,
"case" : null ,
"sura_id" : 108 ,
"word" : " u0671 u0644 u0652 u0643 u064e u0648 u0652 u062b u064e u0631 u064e " ,
"derivation" : null ,
"arabicpos" : null ,
"person" : null ,
"token" : "al" ,
"gender" : null ,
"voice" : null ,
"order" : 1
}
},
},
},
"translation_info" : {},
},
"error" : {
"code" : 0 ,
"msg" : "success ## action=search ; query= u0627 u0644 u0643 u0648 u062b u0631 " ,
}
}托多
標誌:
{
"action" = "show" ,
"query" = "information"
}回覆:
{
"show" : {
"information" : {
"engine" : "Alfanous" ,
"wiki" : "http://wiki.alfanous.org/doku.php?id=json_web_service" ,
"description" : "Alfanous is a Quranic search engine provides simple and advanced search services in the diverse information of the Holy Quran ." ,
"author" : "Assem chelli" ,
"version" : "0.5" ,
"contact" : "[email protected]" ,
"console_note" : "this is console interface of Alfanous, try -h to get help " ,
"json_output_system_note" : " n This is the <a href='http://json.org/'>JSON</a> output system of <a href= " http://wiki.alfanous.org " >Alfanous</a> project .This feature is in Alpha test and the Json schema may be it's not stable . We are waiting for real feadbacks and suggestions to improve its efficacity,quality and stability. To contact the author ,please send a direct email to <b> assem.ch[at]gmail.com</b> or to the mailing list <b>alfanous [at] googlegroups.com</b> n <br/><br/> For more details visit the page of this service <a href= " http://wiki.alfanous.org/doku.php?id=json_web_service " >here</a> n "
}
},
"error" : {
"msg" : "success ## action=show ; query=information" ,
"code" : 0
}
}標誌:
{
"action" = "show" ,
"query" = "recitations"
}響應(樣本):
{
"show" : {
"recitations" : {
"45" : {
"bitrate" : "192kbps" ,
"name" : "English/Ibrahim Walk TEST" ,
"subfolder" : "English/Ibrahim_Walk_192kbps_TEST"
},
"54" : {
"bitrate" : "128kbps" ,
"name" : "Salah Al Budair" ,
"subfolder" : "Salah_Al_Budair_128kbps"
}
}
},
"error" : {
"msg" : "success ## action=show ; query=recitations" ,
"code" : 0
}
}標誌:
{
"action" = "show" ,
"query" = "fields"
}回覆:
{
"show" : {
"fields" : {
"جزء" : "juz" ,
"عثماني " : "uth" ,
"نوع_السورة" : "sura_type" ,
"رقم_السجدة" : "sajda_id" ,
"صفحة" : "page" ,
"ربع" : "rub" ,
"ر_س" : "s_r" ,
"ركوع" : "ruku" ,
"رقم_السورة" : "sura_id" ,
"آ_س" : "s_a" ,
"آية_" : "aya_" ,
"موضوع" : "subject" ,
"ج_س" : "s_g" ,
"ك_آ" : "a_w" ,
"فصل" : "chapter" ,
"ح_آ" : "a_l" ,
"سورة" : "sura" ,
"فرع" : "topic" ,
"آية" : "aya" ,
"رقم_الآية" : "aya_id" ,
"عثماني_" : "uth_" ,
"ك_س" : "s_w" ,
"نوع_السجدة" : "sajda_type" ,
"رقم" : "gid" ,
"باب" : "subtopic" ,
"نصف" : "nisf" ,
"ح_س" : "s_l" ,
"حزب" : "hizb" ,
"منزل" : "manzil" ,
"ج_آ" : "a_g" ,
"سجدة" : "sajda" ,
"ترتيب_السورة" : "sura_order"
}
},
"error" : {
"msg" : "success ## action=show ; query=fields" ,
"code" : 0
}
}API使用許多關鍵資源,必須下載和/或準備使用才能使用。為此,只需在項目的根路徑中運行此命令
安裝所有建築物依賴性:pyparsing,epydoc,sphinx。
(Ubuntu 12.04):
$ sudo apt-get install python-qt4 qt4-dev-tools python-qt4-dev pyqt4-dev-tools
$ sudo apt-get install python-distutils-extra
$ sudo easy_install pyparsing epydoc sphinx運行構建命令:
$ cd ../../
$ make build有關更多詳細信息,請檢查makefile
要從源安裝API(構建後):
$ sudo python setup.py install控制台接口將使用API自動安裝:
$ alfanous-console -h
usage: alfanous-console [flags]注意:如果您正在尋找Alfanous Legacy代碼,則可以在Legacy Branch下找到它