• 沒有找到結果。

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

26

位置並且給予作者與發佈單位及時間,可以是一篇新聞報導的註解,或著是機關 組織公文發布時的註解,有了這些註解之後,可以幫助讀者來快速檢閱被標註的 物件內容,以及在瀏覽內容時做更貼切的閱讀推薦。

搜尋建議也就是上個段落提到的閱讀推薦,在本論文實作的系統中只列了 4 項:與搜尋標的同時出現人物或地點及時間。如果程式能夠對自然語言做一定的 理解,讓使用者可以在延伸搜尋時自由輸入。比如「和某人的最早出現時間」以 及「和某人的最近出現時間」,可以交集出一個時間區間更進一步的對兩人關係 做追蹤搜尋。

[1] George W. Furnas , Caterina Fake , Luis von Ahn , Joshua Schachter , Scott Golder , Kevin Fox , Marc Davis , Cameron Marlow , Mor Naaman, Why do tagging systems work?, CHI '06 extended abstracts on Human factors in computing systems, April 22-27, 2006, Montréal, Québec, Canada.

[2] Lassila, O., Swick, R. (1998). The Resource Description Framework (RDF) Model & Syntax. W3C Working Draft. http://www.w3.org/TR/WD-rdf-syntax.

[3] Stefan Decker, Dan Brickley, Janne Saarela, Jürgen Angele, A Query and Inference Service for RDF, W3C Query Languages Workshop (1998), http://purl.org/net/rdf/papers/QL98-queryservice

[4] B. McBride, "Jena: A Semantic Web Toolkit", IEEE Internet Computing, November - December 2002.

[5] Ariel Ortiz, Web development with python and django, Proceedings of the 43rd ACM technical symposium on Computer science education. ACM, 2012. P. 686.

[6] Datta, R., Joshi, D., Li, J. and Wang, J., Image Retrieval: Ideas, Influences, and Trends of the New Age. in ACM Computing Surveys, (2008).

[7] Yan, R., Natsev, A., and Campbell, M. 2007., An efficient manual image annotation approach based on tagging and browsing. In Workshop on

Multimedia Information Retrieval on the Many Faces of Multimedia Semantics.

ACM, New York, 13–20.

[8] A. Leff and J. Rayfield "Web-application development using the

Model/View/Controller design pattern", Proc. Int. Enterprise Distrib. Object Comput. Conf., pp.118 -127 2001

[9] Lavrenko, V., R. Manmatha, and J. Jeon: 2004, ‘A model for learning the semantics of pictures’. In: Advances in Neural Information Processing Systems 16.

[10] A. Goodrum. Image information retrieval: An overview of current research.

Informing Science, 3(2):63–67, 2000.

[11] Blei, D. M. and M. I. Jordan: 2003, ‘Modeling annotated data’. In: Proc. ACM SIGIR. pp. 127–134.

[12] Carneiro, G. and N. Vasconcelos: 2005a, ‘A database centric view of semantic image annotation and retrieval’. In: SIGIR. pp. 559 – 566.

[13] Makadia, A.; Pavlovic, V.; and Kumar, S. 2010. Baselines for image annotation.

In IJCV, 90(1):88–105.

[14] S.-J. P. Jae-Hun Choi, Seong-Hee Park, "Design and imple-mentation of a concept-based image retrieval system with edge description templates," in SPIE Storage and Retrieval Methods and Application for Multmedia, vol. 5307, 2004, pp. 571–581.

[15] Wilson, G., Aruliah, D., Brown, C.T., Hong, N.P.C., Davis, M., Guy, R.T., Haddock, S.H., Huff, K., Mitchell, I.M., Plumbley, M.D., et al. (2012). Best practices for scientific computing.

[16] Google. Protocol Buffers: Google's Data Interchange Format. Documentation and open source release, http://code.google.com/p/protobuf/

[17] Datta, Ritendra, Joshi, Dhiraj, Li, Jia, Wang, James Z., 2008. Image retrieval:

Ideas, influences, and trends of the new age. ACM Computing Surveys 40 (2) (Article 5).

[18] P. Enser, Visual image retrieval: Seeking the alliance of concept-based and content-based paradigms, Journal of Information Science 26(4) (2000) 199–210.

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

29

附錄

一、 資料庫的 model schema (/photos/models.py)

Album

Photo 及其背景資料

Photo 與使用者互動相關的 metadata

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

30

詮釋資料(Annotations)

二、 網頁瀏覽的 URL Patterns 的 regular expression 規則

(/photos/urls.py)

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

31

三、 多個 API 之呼叫處理器(/api/handlers.py)

處理詮釋資料的建立與讀取之類別

Server 將詮釋資料送到前端的 JSON 打包,annotationdata 是該照片的詮釋資料串 列。

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

32

詮釋資料上傳到 Server 後,經過剖析處理並儲存到資料庫。

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

33

將詮釋資料匯入進 RDF Graph 內,並建立這張照片上的詮釋資料之兩兩關係。

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

34

刪除詮釋資料用另一個處理器應用 PUT method 使之較為彈性。

處理單一搜尋請求的處理器。

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

35

判斷使用者給予的型態限制去做關鍵字剖析與執行搜尋。

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

36

剖析多個關鍵字時的布林邏輯關係。

多個關鍵字會做多次搜尋,該函數是在處理每次搜尋結果的合併。

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

37

搜尋流程將先做關鍵字的前處理,接著執行一個迴圈根據關鍵字的數目去執行 doSerch(),並將搜尋結果相關的照片預覽資料打包準備回傳。

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

38

作為搜尋結果延伸建議的分析,從 RDF Graph 讀取相關資料後分析並記錄。

將搜尋結果打包成一個 JSON 並傳至前端。

‧ 國

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

39

使用者使用多選搜尋時的處理器,根據型態限制的多寡(主要在時間)做搜尋的 語意判斷,最後將結果包成一個 JSON 傳至前端。

相關文件