1 / 24

Business Intelligence on Complex Graph Data

Business Intelligence on Complex Graph Data. Dritan Bleco Yannis Kotidis ( dritanbleco@aueb.gr ) ( kotidis@aueb.gr ) Department of Informatics Athens University Of Economics and Business. BEWEB 2012 Berlin. Outline. Motivation Graph Data Model

arwen
Télécharger la présentation

Business Intelligence on Complex Graph Data

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. Business Intelligence on Complex Graph Data Dritan Bleco Yannis Kotidis (dritanbleco@aueb.gr) (kotidis@aueb.gr) Department of Informatics Athens University Of Economics and Business BEWEB 2012Berlin

  2. Outline • Motivation • Graph Data Model • Operators on Graph Data • Querying Graph Records • Query Rewrites • Experiments • Conclusions Dritan Bleco

  3. Motivational Example • A Supply Chain Management (SCM) application • Tracks the different routes that articles of a customer order follows from production lines to the consumer hands • Multiple warehouses are located among the production lines and the shipping points and can stage the products while the order is being assembled • RFID readers are used to keep track of the location of the articles • An order follows one or more paths so our web supply chain application produces graph like data Dritan Bleco

  4. :1 43 G C 11 7 A 9 2 :8 F E 5 4 4 15 9 D B H 6 Production Lines Warehouses Shipping Points Dritan Bleco

  5. C:1 G 43 11 9 7 :8 F 2 E A 4 5 4 15 B D H 9 6 Q1: What is the total order completion time? The longest path between nodes A and G,H Q2: What is the total processing time for parts that are shipped through warehouses located in Athens? The longest path between nodes A and G,H considering only paths that transverse at least one location in Athens. Dritan Bleco

  6. Aggregate Nodes C:1 G 43 11 9 7 :8 F 2 E A 4 5 4 15 B D H 9 6 U Aggregate Node U coalesces Warehouses located in Athens Dritan Bleco Set In(U) contains the set of nodes of U that have at least one incoming edge from nodes that do not belong U: In(U)={D, E} Set Out(u) contains nodes in U that have at least one outgoing edge towards a node that does not belong to U: Out(U)={D,F} A single node can be abstracted as an aggregate node whose internal structure is not revealed to the query: E =[in(E) ,out(E)] :8

  7. (AE) (AE] Path C:1 C:1 43 G 11 11 9 7 E:8 :8 F 7 2 E A 4 5 4 15 B D H 9 6 Different simple Paths (ACE) starting from out(A) end ending to in(E) (internal measure 8 is not included) Dritan Bleco (ACE] starting from out(A) end ending to out(E) (internal measure 8 is included)

  8. E - Path [EE] Node C:1 43 G 11 9 7 E:8 :8 F 2 E A 4 5 4 15 B D H 9 6 Different simple Paths (ACE) starting from out(A) end ending to in(E) (internal measure 8 is not included) Dritan Bleco (ACE] starting from out(A) end ending to out(E) (internal measure 8 is included) Starting from in(E) end ending to out(E) [in(E),out(E)]= E

  9. Composite Path [AE]* C:1 C:1 G 43 11 11 9 7 :8 E:8 F 2 7 E A A 5 4 5 4 15 15 B D H 9 B 6 Composite Paths: Paths with same Starting and Ending Node [A,E]* ={ [ACE], [ABE] } Dritan Bleco

  10. Composite Path [A in(u))* C:1 C:1 G 43 11 11 9 7 :8 F 2 7 E A A 5 4 5 4 15 9 15 B D H 9 B U 6 Composite Paths: Paths with same Starting and Ending Node [A,E]* ={ [ACE], [ABE] } [A, in(U))* ={ [ACE),[ABE),[ABD)} Dritan Bleco

  11. Composite Path [in(U)out(U)]* C:1 G 43 11 9 2 7 :8 E:8 F 2 F E A 4 5 4 4 15 B D H D 9 U 6 Composite Paths: Paths with same Starting and Ending Node [A,E]* ={ [ACE], [ABE] } [A, in(U))* ={ [ACE),[ABE),[ABD)} [in(U),out(U)]* ={ [EF],[ED] } Dritan Bleco

  12. Operators on Graph Data C:1 C:1 G 43 G 11 11 9 9 2 7 :8 E:8 7 F 2 F E A A 4 5 4 15 B D H 9 6 • Path-join operator concatenates two paths p1 and p2 • Ending node of p1 is the same as the starting node of p2 • One of the two paths is open-ended at the common end-point. • [ACE) [EFG]= [ACEFG] Dritan Bleco

  13. Operators on Graph Data C:1 C:1 G G 43 11 11 9 Sr 9 2 7 :8 E:8 7 F 2 F E A A 4 5 4 5 4 4 15 6 Pr 9 15 B B D H H 9 D 6 U • Path-join operator concatenates two paths p1 and p2 • Ending node of p1 is the same as the starting node of p2 • One of the two paths is open-ended at the common end-point. • [ACE) [EFG]= [ACEFG] • [Pr, in(U))[in(U), out(U)] (out(U), Sr] Dritan Bleco

  14. Operators on Graph Data C:1 C:1 G 43 11 11 9 7 :8 7 F 2 E A A 5 4 5 4 15 9 15 B B D H 9 6 Dritan Bleco πp(r) Path projection operator projects the record on the edges defined in path p, while retaining their measures. Π[ACE)(r)={(A,C):11, (C,C):1, (C,E):7 } The projection of a record on a composite path is computed as a set containing the projections into the constituent paths. Π[AE)*(r)={ {(A,C):11, (C,C):1, (C,E):7 } , {(A,B):15, (B,E):5 } }

  15. BI on Graph Data C:1 G 43 [ACE):19 11 Sr 9 7 :8 F 2 E A [ABE):20 5 15 4 4 Pr B D H 9 U 6 Intra-Path Aggregate Function Fp(r) : applied on the measures resulting from the projection of record r on path p Sum[ACE)(r)=[ACE):19 Sum[AE)*(r)={ [ACE):19 , [ABE):20} Dritan Bleco Inter-Path Aggregate Function G(Fp(r) ): consolidates the result(s) obtained via Inter- Path aggregation. Max(Sum[ACE)*(r) )=Max({ [ACE):19, [ABE):20 })=[ABE):20 Max(Sum[Pr, Sr]*(r)) returns the order completion time for the order depicted in record r

  16. Queries using operators C:1 G 43 11 Sr 9 7 :8 2 F E A 4 5 4 15 Pr B D H 9 U 6 Dritan Bleco

  17. Query Rewrite C:1 C:1 G G 43 11 Sr 9 7 :8 E:8 F 2 F E A A 4 5 4 15 Pr B B D H H 9 D 6 U ΜΑΧ( SUM[Pr, in(U)) [in(U), out(U)] (out(U, Sr] (r)) = MAX (SUM[Pr, in(U))(r) SUM SUM[in(U), out(U)] (r) SUMSUM(out(U, Sr] (r)) Generally G(Fp=p1 p2 (r)) = G ( Fp1(r) H Fp2(r) ) : pushing intra-path on a path Dritan Bleco

  18. Query Rewrite C:1 C:1 G G 43 (FG]:9 [ACE):19 11 Sr 9 7 :8 E:8 F 2 F E A A [ABE):20 [EF]:10 [ED]:12 [DD]:0 [ABD):24 4 5 (FH]:4 4 15 Pr B B D H H 9 D 6 U (DH]:6 ΜΑΧ( SUM[Pr, in(U)) [in(U), out(U)] (out(U, Sr] (r)) = MAX (SUM[Pr, in(U))(r) SUM SUM[in(U), out(U)] (r) SUMSUM(out(U, Sr] (r)) MAX ({[ABE):20 ,[ACE):19,[ABD):24} SUM{ [EF] :10,[ED]:12,[DD]:0} SUM{ (FG] :9, (FH]:4, (DH]:6}) MAX( {[ABEFG]:39, [ACEFG]:38, [ABEFH]:34, [ACEFH]:33, [ABEDH]:38, [ABEDH]:37 [ABDH]:30} ) = [ABEFG]:39 Dritan Bleco

  19. Experiments (I) • Two real Schema Graphs: • * BAY: Depicts San Francisco Bay Area roads and • **Gnutella: Describes connections among Gnutella hosts from August 2002. • 120 million records are synthesized and assigned random real values to the labels of each record. • Experimental evaluation using the PBS (Pick By Size) • Queries 50% intra-path and 50% inter-path chosen with zipf or unif. • Independent evaluation of the Cost via the total number of tuples that need to be retrieved • * http://www.dis.uniroma1.it/~challenge9/download.shtml • ** http://snap.stanford.edu/data/p2p-Gnutella05.html

  20. Experiments (II) PBS, Bay Data Set, Uniform 100 Queries PBS, Bay Data Set, Zipf 100 Queries Dritan Bleco PBS-1 considers only intra-path materialized aggregates PBS-2 considers only inter-path materialized aggregates PBS selects and materializes both types of views depending on the query workload

  21. Experiments (III) PBS, Gnutella Data Set, Uniform 100 Queries PBS, Gnutella Data Set, Zipf 100 Queries Dritan Bleco PBS-1 considers only intra-path materialized aggregates PBS-2 considers only inter-path materialized aggregates PBS selects and materializes both types of views depending on the query workload

  22. Experiments (IV) Varying Query Mix, BAY Data Set, Uniform Queries Varying Query Mix, BAY Data Set, Zipf Queries Dritan Bleco Mix of intra-/inter-path queries in the BAY dataset for a fixed budget of 20%. For inter-paths queries PBS and PBS-2 have the same performance For only intra-path queries PBS-1 and PBS give the best performance. PBS that considers both types of views provides consistently the largest reduction in query cost.

  23. Conclusions • A framework for modeling analytical queries in a graph database independent of the • underlying storage representation of the records • the query language used • Our framework • Permits rewriting of complex aggregations into smaller computational units • Enables cost-based query optimization and pre-computation of frequently used calculations. • Experimental results show that proper selection of materialized views can provide substantial gains in a large data warehouse containing millions of graph records. Dritan Bleco

  24. Thank you, Questions? Dritan Bleco

More Related