1 / 19

RCQ-ACS: RDF Chain Query Optimization Using an Ant Colony System

RCQ-ACS: RDF Chain Query Optimization Using an Ant Colony System. Frederik Hogenboom Erasmus University Rotterdam fhogenboom@ese.eur.nl. Introduction (1). The Semantic Web allows for an ever-growing amount of data to be stored in many heterogeneous, yet interconnected sources

roger
Download Presentation

RCQ-ACS: RDF Chain Query Optimization Using an Ant Colony System

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RCQ-ACS: RDF Chain Query Optimization Using an Ant Colony System • Frederik Hogenboom • Erasmus University Rotterdam • fhogenboom@ese.eur.nl WI 2012

  2. Introduction (1) • The Semantic Web allows for an ever-growing amount of data to be stored in many heterogeneous, yet interconnected sources • Fast query engines are needed for efficient querying of large amounts of data, typically represented by means of the Resource Description Framework (RDF) WI 2012

  3. Introduction (2) • A major challenge lies in optimizing query paths: the order in which distinct parts of a query are evaluated • Existing solutions for Semantic Web: • Two-phase optimization (2PO): • Iterative Improvement (II) • Simulated Annealing (SA) • Genetic Algorithm (GA) • Ant Colony Optimization (ACO) appears to be a feasible alternative for the dynamic Semantic Web WI 2012

  4. RDF and Query Paths (1) • An RDF model is a collection of facts declared in RDF • Facts are triples in the form of a node-arc-node link consisting of a subject, a predicate, and an object • RDF sources can be queried using SPARQL WI 2012

  5. RDF and Query Paths (2) • We consider a subset of SPARQL queries: chain queries, where a query path is followed by performing joins between its subpaths of length 1 • Example RDF chain query:1. PREFIX c: <http://www.daml.org/2001/09/countries/fips#>2. PREFIX o: <http://www.daml.org/2003/09/factbook/factbook-ont#>3. SELECT ?partner4. WHERE { c:NL o:exportPartner ?expPartner . 5. ?expPartner o:country ?partner . 6. ?partner o:dependentArea ?area . 7. ?area o:internationalDispute ?conflict . 9. } WI 2012

  6. RDF and Query Paths (3) Left-deep query tree Bushy query tree WI 2012

  7. RDF Query Path Optimization (1) • Challenge: determine the right order in which the joins should be computed • Optimize the overall response time • Explore a solution space with query paths • Solution space size exponential in number of concepts WI 2012

  8. RDF Query Path Optimization (2) • Solutions are associated with data transmission and processing costs • Data processing costs are the sum of all join costs, which are influenced by the cardinalities of each operand and the join method used (nested-loop) • Neighboring solutions in the solution space can be identified using transformation rules WI 2012

  9. RDF Query Path Optimization (3) Join commutativity Join associativity Left join exchange Right join exchange WI 2012

  10. RDF Query Path Optimization (4) • Exploring the solution space by means of 2PO: • Using II, local optima are found by walking through the solution space (from random starting points), while only taking steps yielding improvement in solution quality • The best local optimum thus found is used as starting point for SA: a walk through the solution space, where moves not yielding improvement are accepted with a declining probability • A GA has proven to outperform 2PO • As ACO has proven to outperform GAs in solving other complex problems and ACO can deal with continuously changing environments, ACO is a promising alternative WI 2012

  11. RDF Chain Query Optimization with Ants (1) • Artificial ants explore a solution space by iteratively: • Constructing a path from a starting point to an ending point • Updating pheromone traces marking their paths • Steps depend on pheromone traces and local heuristics • Ant Colony System (ACS) is a faster converging ACO variant, differing from classic ACO algorithms in that: • Ants occasionally simply take the step with the highest probability rather than possibly taking less likely steps • Pheromone traces are only deposited on parts of the best-so-far solution instead of on all paths taken by all ants • Pheromone evaporation only takes place on paths visited by ants, rather than on all paths WI 2012

  12. RDF Chain Query Optimization with Ants (2) • We model the solution space based on an ordinal number scheme for encoding chain queries • The encoding scheme iteratively joins two concepts in an ordered list of concepts, while saving the result on the position of first appearing concept • Example: • (t1, t2, t3, t4): join 2 and 4 • (t1, t2t4, t3): join 2 and 1 • (t2t4t1, t3): join 2 and 1 • (t3t2t4t1) • Encoded solution: ((2,4),(2,1),(2,1)) WI 2012

  13. RDF Chain Query Optimization with Ants (3) WI 2012

  14. Evaluation (1) • We evaluate RDF chain query optimization (RCQ) by means of 2PO, a GA, and ACS on an RDF version of the CIA World Factbook (over 100,000 triples) • The full solution space is considered • Each algorithm is assessed in terms of execution time and solution quality, for chain queries varying in length from 3 to 20 predicates (2 to 19 joins) • Each experiment is iterated 100 times • We assess significance of performance differences by means of a paired, two-sided Wilcoxon signed rank test WI 2012

  15. Evaluation (2) WI 2012

  16. Evaluation (3) WI 2012

  17. Conclusions • We have proposed an ACS approach in which artificial ants identify low-cost query paths guided by previously encountered solutions and local heuristics • Our approach significantly outperforms existing work when optimizing RDF chain queries consisting of up to approximately 10 joins WI 2012

  18. Future Work • Optimize parameters and perform a sensitivity analysis • Make our ACS approach more scalable • Evaluate our method in a real-world query execution engine in a dynamic, distributed setting WI 2012

  19. Questions? Alexander HogenboomErasmus School of EconomicsErasmus University RotterdamP.O. Box 1738, NL-3000 DRRotterdam, the Netherlands hogenboom@ese.eur.nl WI 2012

More Related