TAILIEUCHUNG - Keyword Search in Databases- P8

Keyword Search in Databases- P8:Conceptually, a database can be viewed as a data graph GD(V ,E), where V represents a set of objects, and E represents a set of connections between objects. In this book, we concentrate on two kinds of databases, a relational database (RDB) and an XML database. In an RDB, an object is a tuple that consists of many attribute values where some attribute values are strings or full-text; there is a connection between two objects if there exists at least one reference from one to the other | 34 2. SCHEMA-BASED KEYWORD SEARCH ON RELATIONAL DATABASES Algorithm 10 Block-Pipelined the keyword query Q the top-k value k the CN C 1 topk 0 Q 0 2 c 1 1 . 1 USCORE 3 c uscore c 4 while score topk k Q do 5 c 6 if USCORE then 7 BSCORE 8 c bscore c 9 for i 1 to s do 10 c c c .status USCORE 11 c i c i 1 12 c uscore c 13 if c i 1 then 14 break 15 else 16 update topk using eval c 17 output topk OTHER KEYWORD SEARCH SEMANTICS In the above discussions for an l-keyword query on a relational database each result is an MTJNT. This is referred to as the connected tree semantics. There are two other semantics to answer an l-keyword query on a relational database namely distinct root semantics and distinct core semantics. In this section we will focus on how to answer keyword queries using rdbms given the schema graph. In the next chapter we will further discuss how to answer keyword queries under different semantics on a schema free database graph. Distinct Root Semantics An l-keyword query finds a collection of tuples that contain all the keywords and that are reachable from a root tuple center within a user-given distance Dmax .The distinct root semantics implies that the same root tuple determines the tuples uniquely Dalvi et al. 2008 He et al. 2007 Hristidis et al. 2008 Li et al. 2008a Qin et al. 2009a . Suppose that there is a result rooted at tuple tr. For any of the l keywords say ki there is a tuple t in the result that satisfies the following conditions 1 t contains keyword ki 2 among all tuples that contain ki the distance between t and tr is minimum3 and 3 the minimum distance between t and tr must be less than or equal to a user given parameter Dmax. Reconsider the DBLP database in Example with the same 2-keyword query Q Michelle XML and let Dmax 2. The 10 results are shown in Figure a . The root nodes are the nodes shown at the top and all root nodes are distinct. For example the .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.