Optimal SenTree: representing RDF sentence as a tree with minimal reversed triples Qingxia Liu

Slides:



Advertisements
Similar presentations
Lecture 15. Graph Algorithms
Advertisements

Evaluating “find a path” reachability queries P. Bouros 1, T. Dalamagas 2, S.Skiadopoulos 3, T. Sellis 1,2 1 National Technical University of Athens 2.
CS 206 Introduction to Computer Science II 03 / 27 / 2009 Instructor: Michael Eckmann.
TECH Computer Science Graphs and Graph Traversals  // From Tree to Graph  // Many programs can be cast as problems on graph Definitions and Representations.
Chapter 8, Part I Graph Algorithms.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 27 Graph Applications.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 excerpts Graphs (breadth-first-search)
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 CHAPTER 4 - PART 2 GRAPHS 1.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
Graphs & Graph Algorithms 2
Facilities Planning Objectives and Agenda: 1. Different types of Facilities Planning Problems 2. Intro to Graphs as a tool for deterministic optimization.
CS Data Structures Chapter 6 Graphs.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 10 Instructor: Paul Beame.
Greedy Algorithms Like dynamic programming algorithms, greedy algorithms are usually designed to solve optimization problems Unlike dynamic programming.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Been-Chian Chien, Wei-Pang Yang, and Wen-Yang Lin 6-1 Chapter 6 Graphs Introduction to Data Structure CHAPTER 6 GRAPHS 6.1 The Graph Abstract Data Type.
Algorithms: Design and Analysis Summer School 2013 at VIASM: Random Structures and Algorithms Lecture 3: Greedy algorithms Phan Th ị Hà D ươ ng 1.
Chapter 2 Graph Algorithms.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 Graphs.
Chapter 14 Graphs. © 2004 Pearson Addison-Wesley. All rights reserved Terminology G = {V, E} A graph G consists of two sets –A set V of vertices,
 What is a graph? What is a graph?  Directed vs. undirected graphs Directed vs. undirected graphs  Trees vs graphs Trees vs graphs  Terminology: Degree.
Fundamental Data Structures and Algorithms (Spring ’05) Recitation Notes: Graphs Slides prepared by Uri Dekel, Based on recitation.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Graphs. Graphs Similar to the graphs you’ve known since the 5 th grade: line graphs, bar graphs, etc., but more general. Those mathematical graphs are.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Ver Chapter 13: Graphs Data Abstraction & Problem Solving with C++
© 2006 Pearson Addison-Wesley. All rights reserved 14 A-1 Chapter 14 Graphs.
Minimum Bottleneck Spanning Trees (MBST)
Spanning tree Lecture 4.
Graphs Upon completion you will be able to:
Graph Theory. undirected graph node: a, b, c, d, e, f edge: (a, b), (a, c), (b, c), (b, e), (c, d), (c, f), (d, e), (d, f), (e, f) subgraph.
Graphs 2015, Fall Pusan National University Ki-Joune Li.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
1) Find and label the degree of each vertex in the graph.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Chapter 05 Introduction to Graph And Search Algorithms.
CSE 589 Applied Algorithms Spring 1999 Prim’s Algorithm for MST Load Balance Spanning Tree Hamiltonian Path.
Lecture #13. Topics 1.The Graph Abstract Data Type. 2.Graph Representations. 3.Elementary Graph Operations.
1 Data Structures and Algorithms Graphs. 2 Graphs Basic Definitions Paths and Cycles Connectivity Other Properties Representation Examples of Graph Algorithms:
Graphs ORD SFO LAX DFW Graphs 1 Graphs Graphs
BCA-II Data Structure Using C Submitted By: Veenu Saini
Data Structures & Algorithm Analysis lec(8):Graph T. Souad alonazi
Tracing An Algorithm for Strongly Connected Components that uses Depth First Search Graph obtained from Text, page a-al: Geetika Tewari.
Data Structures 13th Week
Minimum Spanning Tree Chapter 13.6.
Hamiltonian Cycle and TSP
Hamiltonian Cycle and TSP
Csc 2720 Instructor: Zhuojun Duan
CS 3343: Analysis of Algorithms
I206: Lecture 15: Graphs Marti Hearst Spring 2012.
CS120 Graphs.
Query Construct Interfaces of RDF Data an introduction
Graph Algorithm.
Graphs Chapter 13.
Graphs Chapter 11 Objectives Upon completion you will be able to:
2018, Fall Pusan National University Ki-Joune Li
Chu-Liu/Edmonds’ Algorithm an introduction
What is a Graph? a b c d e V= {a,b,c,d,e} E= {(a,b),(a,c),(a,d),
Introduction Wireless Ad-Hoc Network
Chapter 11 Graphs.
2017, Fall Pusan National University Ki-Joune Li
Qingxia Liu Optimal SenTree: representing RDF sentence as a tree with minimal reversed triples Qingxia Liu
Chu-Liu/Edmonds’ Algorithm an introduction
Chapter 14 Graphs © 2006 Pearson Addison-Wesley. All rights reserved.
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Chapter 14 Graphs © 2011 Pearson Addison-Wesley. All rights reserved.
INTRODUCTION A graph G=(V,E) consists of a finite non empty set of vertices V , and a finite set of edges E which connect pairs of vertices .
Presentation transcript:

Optimal SenTree: representing RDF sentence as a tree with minimal reversed triples Qingxia Liu

Outline  Introduction  Preliminaries  The algorithm  Analysis  Related work  Conclusion  Reference

Introduction  RDF Sentence  A set of b-connected triples  Existence of Blank Node  Knowledge Representing necessity  Representing Predicates that have more than two arguments Population (America, 312.8million,2012) Population (America,bn_1) Value(bn_1,312.9million) Year(bn_1, 2012) 3

 Existence of Blank Node (con.)  Mallea et al. (ISWC 2011)[1] Introduction 783 domains crawled 55.9% 438 (55.9%) published blank nodes By domain Average percentage in terms of each domain 4 All domains 7.5% Avg %bnode = 7.5% Domains in LOD 6.1% Avg %bnode = 6.1%

Introduction  Existence of Blank Node  Falconet_v05  By document  total: ,  has bnode: , (39.72%)  by sentence  total:  has bnode: , (24.39%)  complex: , (2.29%) 5

The problem  How to represent an RDF sentence  A tree-oriented browser will feel natural [3]  To maintain the semantic  Each triple represents once and only once  Minimal number of inversed triples in the representing 6

Our Method  Overview Skeleton Graph RDF Sentence Cost Graph Minimum Spanning Tree Edmonds Algorithm Optimum SentTree simplification post processing assign cost 7

Preliminaries  SenTree  An out tree  For a directed labeled multigraph G, an SenTree of G is an out tree ST=(V,E,f,g,h,r) that  f: V->V(G), is a surjection. if v ∈ V and u ∈ V(G), f(v)=u  g:V(G)->V, for every vertex in G assign a vertex in ST that can act as parent  h: E->E(G) a bijection that if e ST ∈ E and e G ∈ E(G), h(e ST )=e G, then e ST and e G satisfy one of the relations bellow:  Case 1(parallel): f(tail(e ST ))=tail(e G ),f(head(e ST ))=head(e G ),label(e ST )=label(e G );  Case 2(inverse): f(tail(e ST ))=head(e G ),f(head(e ST ))=tail(e G ),label(e ST )=label(e G ); 8

Preliminaries 9

 Skeleton Graph  A simple digraph describes the relationship of resource terms (uris and blank nodes) in an RDF graph  the Skeleton Graph of an RDF graph G is a simple digraph Gs=(Vs,Es) that  Vs=V(G)-Literal(G)  Es: any two vertexes u,v ∈ Vs, if exist a statement (u, p, v) in G, then ordered pair ∈ Es  Simplification Operations  Delete Literals  Delete parallel edges  Delete loops 10

Preliminaries  Cost Graph  A weighted symmetric graph (every edge has its inverse edge)  A cost graph of a directed graph G satisfies that:  For every pair of adjacent vertexes u,v in G, there are only two directed edges e1=(u’,v’) and e2=(v’,u’) in G C  If edges between u,v in G in both direction, then cost(e1)=cost(e2)=0;  Else if all in one direction, for example u → v, then cost(e1)=0, cost(e2)=1; 11

The algorithm  Input  a directed labeled graph G of triples in an RDF sentence  Output  Optimal SenTree ST OPT of G 12

The algorithm  Simplification  Delete Literals  Reduce the problem size  Do not affect the b-connectivity of RDF sentence  Never has out degree  If act as inner vertex, at least one edge inversed  All hanging as leaves, never gain unsmoothness  Delete parallel edges  Will be hanging as leaves, never gain unsmoothness  Delete loops  Will be hanging as leaves, never gain unsmoothness res1 lit res1 lit 13

The algorithm  Assign cost  Init Gc as empty set  For each edge e= in Gs  if ∈ Gc, set cost( ) = 1;  Else put, into Gc, set cost( )=0, cost( )=1 14

The algorithm  Edmonds Algorithm  (Gc, r) → MST  O(m+nlogn) [4] 15

The algorithm  Post processing  Init ST = {r}  DFS traverse the MST  When processing vertex u For each edge in MST (u ∈ ST)  If cost( )=0, add all edge (u,p,v) ∈ G as children of u into ST, one of v as main vertex to expand in the next step  If cost( )=1, select one edge (v,p,u) ∈ G, put the inversed as children of u into ST, v as the main vertex to expand in the next step x  Other not visited edges (u,p,x) ∈ G, hanging as leaves of u into ST  x: literals, resources that expand at other place 16

Analysis  SenTree  vertexes  V(G)-Literal(G)=V(Gs)=V(Gc)=V(MST)  A literal connected to at lease one vertex in V(G)-Literal(G)  Literals processed as x in post processing  Edges  Processed once and only once  Optimal SenTree  Simplification : never gain the unsmoothness  Cost of Gc: max num of unsmoothness will gain when visiting along an directed edge  MST  Edge inversed only when cost( )=1 and inversed only one edge 17

References 1. Mallea, Alejandro, Marcelo Arenas, Aidan Hogan, and Axel Polleres. "On blank nodes." In The Semantic Web–ISWC 2011, pp Springer Berlin Heidelberg, Baase, Sara. Computer Algorithms: Introduction To Design & Analysis, 3/E. Pearson Education India, Berners-Lee, Tim, et al. "Tabulator: Exploring and analyzing linked data on the semantic web." Proceedings of the 3rd International Semantic Web User Interaction Workshop. Vol H. N. Gabow, Z. Galil, T. Spencer, and R. E. Tarjan, “Efficient algorithms for finding minimum spanning trees in undirected and directed graphs,” Combinatorica 6 (1986),

Thank you!