TripleT Sample Clauses
TripleT. TripleT (diagrammed in Figure 3.l) is an indexing scheme that uses only one B+ tree whose leaf nodes represent atoms. Each leaf node holds a pay- load that is further split into three buckets: subject, predicate, and object. For example, if the triple (▇▇▇▇▇▇▇▇▇▇▇, dc:author, ▇▇▇▇▇ and ▇▇▇▇▇▇) were stored into a TripleT index, there would be three leaf nodes in the B+ tree, “Shakespeare”, “dc:author”, and “▇▇▇▇▇ and ▇▇▇▇▇▇”, each of which have a payload. The triple would exist in the subject bucket of the “Shakespeare” payload, in the predicate bucket of the “dc:author” payload, and finally in the object bucket of the “▇▇▇▇▇ and ▇▇▇▇▇▇” payload. There is duplication in this scheme, as each triple appears in three different buckets. However, the triple can be accessed from any of its atoms through one index lookup. Additionally, only one B+ tree is necessary to store all of the data. Because TripleT is designed to be stored on disk, the payloads also have to be stored on disk. Thus, the buckets themselves may be split up into separate blocks whose size should be set to fit the filesystem. For TripleT, a traversal of all triples in a bucket will incur an I/O cost equal to the total number of blocks needed to store that bucket. This factor become an important when performing experiments using TripleT. Subject Bucket Predicate Bucket Object Bucket (▇▇▇, owns, Cat) (Mouse, prey_of, Cat) (Dog, dislikes, Cat) (Cat, has, claws) (Cat, typeof, mammal) (Cat, eats, mice) (None) Internal node (no payload) TripleT Diagram Leaf node (has payload) B+ Tree height: 3 Cat Cat Payload Figure 3.l: TripleT diagram This thesis builds on an implementation of TripleT written in Python that stores the index in main memory and simulates I/O accesses by keeping track of I/O operations needed if the index were stored on disk. All I/O measurements use this simulated metric. A “blockenize” function is used to calculate the number of blocks necessary to store any particular payload bucket. One of the most important and useful database operations is the join operation. In relational databases, this means that multiple tables are joined together based on some criteria, most often equality, resulting in a subset of the cartesian product of the participating tables. In SPARQL, a join occurs when the same variable exists in different SAPs. In the example of (▇▇▇▇, friendof, ?x), (?x, friendof, ▇▇▇), ?x exists in both SAPs and represents an equi-join. Because these joins frequently occur in SP...
