SlideShare a Scribd company logo
1 of 24
1
08.09.2017 | Knowledge Management Group | Sven Hertling | 1
Top-k Shortest Paths in Directed Labeled
Multigraphs
Sven Hertling, Markus Schröder, Christian Jilek, Andreas Dengel
Top-K Shortest Path in
Large Typed RDF Graphs
Challenge
ESWC 2016
1
Motivation
– Shortest path is obvious link between two resources
– Subsequent shortest paths: maybe even more interesting
relationships
– Approach based on common top-k shortest path algorithm
08.09.2017 | Knowledge Management Group | Sven Hertling | 2
dbr:Felipe_Massa dbr:Red_Bull
?
1
Outline
– Top-k shortest path introduction
– Approach based on eppstein algorithm
– Evaluation based on challenge training and test set
– SPARQL implementation
– Conclusion
08.09.2017 | Knowledge Management Group | Sven Hertling | 3
intro | approach | eval | sparql | conclusion
1
INTRODUCTION
– Finding not only shortest path but also subsequent ones
– Based on knowledge represented as RDF (Resource Description
Framework)
– Additional constraints
– a path is valid only if it contains unique triples
– but can have multiply visited vertices
– Common algorithms cannot be applied
08.09.2017 | Knowledge Management Group | Sven Hertling | 4
intro | approach | eval | sparql | conclusion
1
INTRODUCTION
08.09.2017 | Knowledge Management Group | Sven Hertling | 5
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
p4
intro | approach | eval | sparql | conclusion
1
INTRODUCTION
– Multiply visited u3
– But used each triple
(vertex, edge, vertex)
only once
08.09.2017 | Knowledge Management Group | Sven Hertling | 6
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
p4
intro | approach | eval | sparql | conclusion
1
INTRODUCTION
– Multiply used triple
(u3, p4, u4)
08.09.2017 | Knowledge Management Group | Sven Hertling | 7
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
p4
intro | approach | eval | sparql | conclusion
1
INTRODUCTION
– Thus common algorithms (e.g. Dijkstra,
Yen, Eppstein, …) cannot be applied
without further ado
08.09.2017 | Knowledge Management Group | Sven Hertling | 8
• Two tasks in ESWC top-k shortest path challenge:
1. top-k shortest valid paths
2. every path should have the edge P as the outgoing edge
of source or the incoming edge of destination
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
p4
intro | approach | eval | sparql | conclusion
1
APPROACH
08.09.2017 | Knowledge Management Group | Sven Hertling | 9
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
p4
• Based on Eppstein
algorithm
(k shortest path algorithm
with loops)
• Core idea: make a heap
where elements are
complete paths
intro | approach | eval | sparql | conclusion
1
APPROACH
– Compute single destination shortest path
tree T (e.g. Dijkstra)
– All other edges are called sidetracks (G
– T)
08.09.2017 | Knowledge Management Group | Sven Hertling | 10
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
p4
Shortest Path Tree (T)
Sidetracks (G – T)
intro | approach | eval | sparql | conclusion
1
APPROACH
– Now it is possible to “activate” one or
more sidetracks
– A complete path is represented by a set
of activated sidetracks
08.09.2017 | Knowledge Management Group | Sven Hertling | 11
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
Shortest Path Tree (T)
Sidetracks (G – T)
p4
• A path is built up by using activated sidetracks or
otherwise shortest path
• e.g. the empty set corresponds to (A, P, u3, p7,B)
• set {p3} corresponds to (A, p3, u6, P, B)
intro | approach | eval | sparql | conclusion
1
APPROACH
– Build a graph P(G) based on heaps
𝐻 𝐺(𝑣) which orders all sidestracks on the
shortest path from v to the destination
08.09.2017 | Knowledge Management Group | Sven Hertling | 12
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
Shortest Path Tree (T)
Sidetracks (G – T)
p4
… A
…
A u6
p3
u3 u4
p4
A u1
p1
A, P, u3, p7, B
A, p3, u6, P, B
A, P, u3, p4, u4,
p5, u5, p6,
u3, p7, B
A, p1, u1, p2,
u2, p8, B
u3 u4
p4 pruning because of duplicate
sidetracks
𝐻 𝐺(𝐴)
𝑖𝑛𝑖𝑡
𝐻 𝐺(𝑢4)
heap edge
cross edge
intro | approach | eval | sparql | conclusion
1
APPROACH
– Special case:
– Assume p4 and new edge p4’ are activated
– Cycle u3, u4, u5 used twice
– Thus edge p5 used twice
– In P(G) we will not detect it because it only
contains sidetracks
– Thus when extending P(G) build path and
check if the path is valid
08.09.2017 | Knowledge Management Group | Sven Hertling | 13
Shortest Path Tree (T)
Sidetracks (G – T)
P
B
p8
A
u6
u3
u1 u2
u4 u5
p1
p2
p3
P
p5
p6
p7
p4
p4‘
intro | approach | eval | sparql | conclusion
1
APPROACH
– Special case:
– Assume new edge p4’, p5’ and p6’
– Assume p4 and p4’ are activated
– We cannot prune P(G) because p5’ and p6’
can be activated in the future
08.09.2017 | Knowledge Management Group | Sven Hertling | 14
Shortest Path Tree (T)
Sidetracks (G – T)
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
p4
p4‘
p5‘
p6‘
intro | approach | eval | sparql | conclusion
1
APPROACH
• Task two: all paths starting or ending on P
• Paths starting with P
– New dummy vertex A’ is created
– All P-edges starting in A are duplicated
– Run modified Eppstein with A’ as the starting
node
08.09.2017 | Knowledge Management Group | Sven Hertling | 15
Shortest Path Tree (T)
Sidetracks (G – T)
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
p4A‘
P
intro | approach | eval | sparql | conclusion
1
APPROACH
• Task two: all paths starting or ending on P
• Paths ending with P
– invert every edge
– execute same procedure
– Merge results
08.09.2017 | Knowledge Management Group | Sven Hertling | 16
Shortest Path Tree (T)
Sidetracks (G – T)
A
u6
u3
u1 u2
B
u4 u5
p1
p2
p3
P
p5
p6
p7
p8
P
p4
intro | approach | eval | sparql | conclusion
1
• Why not “deleting” p1 and p3?
– what about p9?
– (A, u3, B, A, u6, B) is also valid
– A shortest path can also contain the target
vertex in the middle
– When visiting A the second time the restriction
is cancelled
08.09.2017 | Knowledge Management Group | Sven Hertling | 17
p9
B
p1
A
u6
u3
u1 u2
u4 u5
p2
p3
P
p5
p6
p7
p8
P
p4
intro | approach | eval | sparql | conclusion
APPROACH
1
EVALUATION
– Based on the training set of the ESWC Top-k Shortest Path Challenge
– Successfully solved all queries
– Training set (10% DBpedia SPARQL Benchmark)
– 9,996,907 triples (394,085 multiple edges, 407 reflexive)
– 7,598,913 of them being literal statements
– Evaluation set (100% DBpedia SPARQL Benchmark)
– 110,621,287 triples
08.09.2017 | Knowledge Management Group | Sven Hertling | 18
intro | approach | eval | sparql | conclusion
1
EVALUATION
– The relation between k and
the overhead of all queries
– High k results in a high
overhead since more
potentially invalid paths are
found
08.09.2017 | Knowledge Management Group | Sven Hertling | 19
intro | approach | eval | sparql | conclusion
1
SPARQL
– We implemented an add-on for
FUSEKI – a SPARQL endpoint
– With this add-on, k shortest paths can be retrived
– Example query:
08.09.2017 | Knowledge Management Group | Sven Hertling | 20
SELECT *
WHERE {
dbr:Felipe_Massa !:* dbr:Red_Bull.
FILTER(?r1 = dbp:after).
}
LIMIT 2
intro | approach | eval | sparql | conclusion
1
SPARQL
– Example result:
08.09.2017 | Knowledge Management Group | Sven Hertling | 21
?length ?r0 ?r1 ?r2 ?r3 ?r4 ?r5 ?r6
7 dbr:Felipe_M
assa
dbp:after dbr:Robert
_Kubica
dbp:first
Win
dbr:2008
_Canadian
_Grand
_Prix
dbp:third
Team
dbr:Red
_Bull
7 dbr:Felipe_M
assa
dbp:after dbr:Robert
_Kubica
dbo:first
Win
dbr:2008
_Canadian
_Grand
_Prix
dbp:third
Team
dbr:Red
_Bull
intro | approach | eval | sparql | conclusion
1
CONCLUSION
– Approach for finding top-k shortest paths based on Eppstein’s algorithm
which induces only moderate overhead
– Successfully solved all tasks given in the ESWC 2016 Top-k Shortest
Path Challenge
– In future versions we intend to lazily build heaps and try to predict invalid
paths earlier
08.09.2017 | Knowledge Management Group | Sven Hertling | 22
intro | approach | eval | sparql | conclusion
1
Thank you
– Questions, opinions, suggestions, discussions
08.09.2017 | Knowledge Management Group | Sven Hertling | 23
?
1
Id k Iterations Overhead Time
(ms)
Pruned |V P(G)| |H|
1 8 8 0.00% 6531 0 83 15
1 344 362 5.23% 6663 6 4401 715
1 1068 1128 5.61% 6833 12 16408 2296
1 20152 21663 7.49% 12404 407 293527 43701
2 3 3 0.00% 5528 0 64 6
2 4 4 0.00% 5662 0 80 8
2 79 91 15.18% 5783 4 1702 174
2 154 169 9.74% 5908 4 3193 336
3 36 36 0.00% 5785 0 64 6
3 336 336 0.00% 5932 0 80 8
3 4866 5034 3.45% 8147 4 1702 174
4 2 2 0.00% 6137 0 78 4
4 16 16 0.00% 6230 0 524 34
4 250 254 1.60% 6416 0 7389 515
4 1906 1980 3.88% 8393 34 58426 3984
4 20224 21858 8.07% 13980 678 619359 42879
4 175560 192367 9.57% 45785 7592 5628758 380839
(𝑖𝑡𝑒𝑟𝑎𝑡𝑖𝑜𝑛𝑠 − 𝑘)
𝑘
𝑃 𝐺 𝑛𝑜𝑡
𝑒𝑥𝑡𝑒𝑛𝑑𝑒𝑑
08.09.2017 | Knowledge Management Group | Sven Hertling | 24

More Related Content

Recently uploaded

Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
ELKO dropshipping via API with DroFx.pptx
ELKO dropshipping via API with DroFx.pptxELKO dropshipping via API with DroFx.pptx
ELKO dropshipping via API with DroFx.pptxolyaivanovalion
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...SUHANI PANDEY
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 

Recently uploaded (20)

Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
ELKO dropshipping via API with DroFx.pptx
ELKO dropshipping via API with DroFx.pptxELKO dropshipping via API with DroFx.pptx
ELKO dropshipping via API with DroFx.pptx
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Top k shortest-paths in directed labelled multi-graphs

  • 1. 1 08.09.2017 | Knowledge Management Group | Sven Hertling | 1 Top-k Shortest Paths in Directed Labeled Multigraphs Sven Hertling, Markus Schröder, Christian Jilek, Andreas Dengel Top-K Shortest Path in Large Typed RDF Graphs Challenge ESWC 2016
  • 2. 1 Motivation – Shortest path is obvious link between two resources – Subsequent shortest paths: maybe even more interesting relationships – Approach based on common top-k shortest path algorithm 08.09.2017 | Knowledge Management Group | Sven Hertling | 2 dbr:Felipe_Massa dbr:Red_Bull ?
  • 3. 1 Outline – Top-k shortest path introduction – Approach based on eppstein algorithm – Evaluation based on challenge training and test set – SPARQL implementation – Conclusion 08.09.2017 | Knowledge Management Group | Sven Hertling | 3 intro | approach | eval | sparql | conclusion
  • 4. 1 INTRODUCTION – Finding not only shortest path but also subsequent ones – Based on knowledge represented as RDF (Resource Description Framework) – Additional constraints – a path is valid only if it contains unique triples – but can have multiply visited vertices – Common algorithms cannot be applied 08.09.2017 | Knowledge Management Group | Sven Hertling | 4 intro | approach | eval | sparql | conclusion
  • 5. 1 INTRODUCTION 08.09.2017 | Knowledge Management Group | Sven Hertling | 5 A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P p4 intro | approach | eval | sparql | conclusion
  • 6. 1 INTRODUCTION – Multiply visited u3 – But used each triple (vertex, edge, vertex) only once 08.09.2017 | Knowledge Management Group | Sven Hertling | 6 A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P p4 intro | approach | eval | sparql | conclusion
  • 7. 1 INTRODUCTION – Multiply used triple (u3, p4, u4) 08.09.2017 | Knowledge Management Group | Sven Hertling | 7 A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P p4 intro | approach | eval | sparql | conclusion
  • 8. 1 INTRODUCTION – Thus common algorithms (e.g. Dijkstra, Yen, Eppstein, …) cannot be applied without further ado 08.09.2017 | Knowledge Management Group | Sven Hertling | 8 • Two tasks in ESWC top-k shortest path challenge: 1. top-k shortest valid paths 2. every path should have the edge P as the outgoing edge of source or the incoming edge of destination A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P p4 intro | approach | eval | sparql | conclusion
  • 9. 1 APPROACH 08.09.2017 | Knowledge Management Group | Sven Hertling | 9 A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P p4 • Based on Eppstein algorithm (k shortest path algorithm with loops) • Core idea: make a heap where elements are complete paths intro | approach | eval | sparql | conclusion
  • 10. 1 APPROACH – Compute single destination shortest path tree T (e.g. Dijkstra) – All other edges are called sidetracks (G – T) 08.09.2017 | Knowledge Management Group | Sven Hertling | 10 A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P p4 Shortest Path Tree (T) Sidetracks (G – T) intro | approach | eval | sparql | conclusion
  • 11. 1 APPROACH – Now it is possible to “activate” one or more sidetracks – A complete path is represented by a set of activated sidetracks 08.09.2017 | Knowledge Management Group | Sven Hertling | 11 A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P Shortest Path Tree (T) Sidetracks (G – T) p4 • A path is built up by using activated sidetracks or otherwise shortest path • e.g. the empty set corresponds to (A, P, u3, p7,B) • set {p3} corresponds to (A, p3, u6, P, B) intro | approach | eval | sparql | conclusion
  • 12. 1 APPROACH – Build a graph P(G) based on heaps 𝐻 𝐺(𝑣) which orders all sidestracks on the shortest path from v to the destination 08.09.2017 | Knowledge Management Group | Sven Hertling | 12 A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P Shortest Path Tree (T) Sidetracks (G – T) p4 … A … A u6 p3 u3 u4 p4 A u1 p1 A, P, u3, p7, B A, p3, u6, P, B A, P, u3, p4, u4, p5, u5, p6, u3, p7, B A, p1, u1, p2, u2, p8, B u3 u4 p4 pruning because of duplicate sidetracks 𝐻 𝐺(𝐴) 𝑖𝑛𝑖𝑡 𝐻 𝐺(𝑢4) heap edge cross edge intro | approach | eval | sparql | conclusion
  • 13. 1 APPROACH – Special case: – Assume p4 and new edge p4’ are activated – Cycle u3, u4, u5 used twice – Thus edge p5 used twice – In P(G) we will not detect it because it only contains sidetracks – Thus when extending P(G) build path and check if the path is valid 08.09.2017 | Knowledge Management Group | Sven Hertling | 13 Shortest Path Tree (T) Sidetracks (G – T) P B p8 A u6 u3 u1 u2 u4 u5 p1 p2 p3 P p5 p6 p7 p4 p4‘ intro | approach | eval | sparql | conclusion
  • 14. 1 APPROACH – Special case: – Assume new edge p4’, p5’ and p6’ – Assume p4 and p4’ are activated – We cannot prune P(G) because p5’ and p6’ can be activated in the future 08.09.2017 | Knowledge Management Group | Sven Hertling | 14 Shortest Path Tree (T) Sidetracks (G – T) A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P p4 p4‘ p5‘ p6‘ intro | approach | eval | sparql | conclusion
  • 15. 1 APPROACH • Task two: all paths starting or ending on P • Paths starting with P – New dummy vertex A’ is created – All P-edges starting in A are duplicated – Run modified Eppstein with A’ as the starting node 08.09.2017 | Knowledge Management Group | Sven Hertling | 15 Shortest Path Tree (T) Sidetracks (G – T) A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P p4A‘ P intro | approach | eval | sparql | conclusion
  • 16. 1 APPROACH • Task two: all paths starting or ending on P • Paths ending with P – invert every edge – execute same procedure – Merge results 08.09.2017 | Knowledge Management Group | Sven Hertling | 16 Shortest Path Tree (T) Sidetracks (G – T) A u6 u3 u1 u2 B u4 u5 p1 p2 p3 P p5 p6 p7 p8 P p4 intro | approach | eval | sparql | conclusion
  • 17. 1 • Why not “deleting” p1 and p3? – what about p9? – (A, u3, B, A, u6, B) is also valid – A shortest path can also contain the target vertex in the middle – When visiting A the second time the restriction is cancelled 08.09.2017 | Knowledge Management Group | Sven Hertling | 17 p9 B p1 A u6 u3 u1 u2 u4 u5 p2 p3 P p5 p6 p7 p8 P p4 intro | approach | eval | sparql | conclusion APPROACH
  • 18. 1 EVALUATION – Based on the training set of the ESWC Top-k Shortest Path Challenge – Successfully solved all queries – Training set (10% DBpedia SPARQL Benchmark) – 9,996,907 triples (394,085 multiple edges, 407 reflexive) – 7,598,913 of them being literal statements – Evaluation set (100% DBpedia SPARQL Benchmark) – 110,621,287 triples 08.09.2017 | Knowledge Management Group | Sven Hertling | 18 intro | approach | eval | sparql | conclusion
  • 19. 1 EVALUATION – The relation between k and the overhead of all queries – High k results in a high overhead since more potentially invalid paths are found 08.09.2017 | Knowledge Management Group | Sven Hertling | 19 intro | approach | eval | sparql | conclusion
  • 20. 1 SPARQL – We implemented an add-on for FUSEKI – a SPARQL endpoint – With this add-on, k shortest paths can be retrived – Example query: 08.09.2017 | Knowledge Management Group | Sven Hertling | 20 SELECT * WHERE { dbr:Felipe_Massa !:* dbr:Red_Bull. FILTER(?r1 = dbp:after). } LIMIT 2 intro | approach | eval | sparql | conclusion
  • 21. 1 SPARQL – Example result: 08.09.2017 | Knowledge Management Group | Sven Hertling | 21 ?length ?r0 ?r1 ?r2 ?r3 ?r4 ?r5 ?r6 7 dbr:Felipe_M assa dbp:after dbr:Robert _Kubica dbp:first Win dbr:2008 _Canadian _Grand _Prix dbp:third Team dbr:Red _Bull 7 dbr:Felipe_M assa dbp:after dbr:Robert _Kubica dbo:first Win dbr:2008 _Canadian _Grand _Prix dbp:third Team dbr:Red _Bull intro | approach | eval | sparql | conclusion
  • 22. 1 CONCLUSION – Approach for finding top-k shortest paths based on Eppstein’s algorithm which induces only moderate overhead – Successfully solved all tasks given in the ESWC 2016 Top-k Shortest Path Challenge – In future versions we intend to lazily build heaps and try to predict invalid paths earlier 08.09.2017 | Knowledge Management Group | Sven Hertling | 22 intro | approach | eval | sparql | conclusion
  • 23. 1 Thank you – Questions, opinions, suggestions, discussions 08.09.2017 | Knowledge Management Group | Sven Hertling | 23 ?
  • 24. 1 Id k Iterations Overhead Time (ms) Pruned |V P(G)| |H| 1 8 8 0.00% 6531 0 83 15 1 344 362 5.23% 6663 6 4401 715 1 1068 1128 5.61% 6833 12 16408 2296 1 20152 21663 7.49% 12404 407 293527 43701 2 3 3 0.00% 5528 0 64 6 2 4 4 0.00% 5662 0 80 8 2 79 91 15.18% 5783 4 1702 174 2 154 169 9.74% 5908 4 3193 336 3 36 36 0.00% 5785 0 64 6 3 336 336 0.00% 5932 0 80 8 3 4866 5034 3.45% 8147 4 1702 174 4 2 2 0.00% 6137 0 78 4 4 16 16 0.00% 6230 0 524 34 4 250 254 1.60% 6416 0 7389 515 4 1906 1980 3.88% 8393 34 58426 3984 4 20224 21858 8.07% 13980 678 619359 42879 4 175560 192367 9.57% 45785 7592 5628758 380839 (𝑖𝑡𝑒𝑟𝑎𝑡𝑖𝑜𝑛𝑠 − 𝑘) 𝑘 𝑃 𝐺 𝑛𝑜𝑡 𝑒𝑥𝑡𝑒𝑛𝑑𝑒𝑑 08.09.2017 | Knowledge Management Group | Sven Hertling | 24