Property Path Query in SPARQL 1.1

Size: px
Start display at page:

Download "Property Path Query in SPARQL 1.1"

Transcription

1 Property Path Query in SPARQL 1.1 Worarat Krathu Guohui Xiao Institute of Information Systems, Vienna University of Technology July 2012 Property Path Query in SPARQL 1.1 0/27

2 Overview Introduction Limitation of navigational capabilities in SPARQL 1.0 SPARQL 1.1 property path Experiments on Evaluation and Counting Complexity Evaluation Complexity Counting Complexity Conclusion

3 Outline Introduction Limitation of navigational capabilities in SPARQL 1.0 SPARQL 1.1 property path Experiments on Evaluation and Counting Complexity Evaluation Complexity Counting Complexity Conclusion Property Path Query in SPARQL 1.1 1/27

4 Outline Introduction Limitation of navigational capabilities in SPARQL 1.0 SPARQL 1.1 property path Experiments on Evaluation and Counting Complexity Evaluation Complexity Counting Complexity Conclusion Property Path Query in SPARQL 1.1 2/27

5 Property Path: in SPARQL 1.0 Query SPARQL 1.0 provides limited navigational capabilities : knows : knows : knows URI 1 URI 2 URI 3 URI 4 : name : name : name : name Worarat XXX Guohui Axel Example Query SELECT?x WHERE {?x :knows?y.?y :name "Axel". } Property Path Query in SPARQL 1.1 3/27

6 Property Path: in SPARQL 1.0 Query SPARQL 1.0 provides limited navigational capabilities : knows : knows : knows URI 1 URI 2 URI 3 URI 4 : name : name : name : name Worarat XXX Guohui Axel Example Query SELECT?x WHERE {?x :knows?y.?y :name "Axel". } Property Path Query in SPARQL 1.1 3/27

7 Property Path: in SPARQL 1.0 Query SPARQL 1.0 provides limited navigational capabilities : knows : knows : knows URI 1 URI 2 URI 3 URI 4 : name : name : name : name Worarat XXX Guohui Axel Example Query SELECT?x WHERE {?x (:knows)*?y. # Property Path in SPARQL 1.1?y :name "Axel". } Property Path Query in SPARQL 1.1 3/27

8 Outline Introduction Limitation of navigational capabilities in SPARQL 1.0 SPARQL 1.1 property path Experiments on Evaluation and Counting Complexity Evaluation Complexity Counting Complexity Conclusion Property Path Query in SPARQL 1.1 4/27

9 Property Path Syntax in SPARQL 1.1 Syntax Form Matches iri An IRI. A path of length one. ˆelt Inverse path (object to subject).!iri or!(iri 1... iri n) An IRI. Negated property set. An IRI which is not one of iri i.!iri is short for!(iri).!ˆiri or An IRI. Negated property set. An IRI which is not one of iri i.!(iri 1... iri j ˆiri j+1... ˆiri n )!iri is short for!(iri). (elt) A group path elt, brackets control precedence. (elt1) / (elt2) A sequence path of elt1 followed by elt2. (elt1) (elt2) A alternative path of elt1 or elt2 (all possibilities are tried). elt A path of zero or more occurrences of elt. elt + A path of one or more occurrences of elt. elt? A path of zero or one occurrences of elt. elt{n, m} A path of between n and m occurrences of elt. elt{n} A path of exactly n occurrences of elt. elt{n, } A path of n or more occurrences of elt. elt{, n} A path of between 0 and n occurrences of elt. elt: is a path element, which may itself be composed of path syntax constructs. Property Path Query in SPARQL 1.1 5/27

10 Property Path Property Path (SPARQL 1.1 Spec. [Harris et al., 2012]) A property path is a possible route through a graph between two graph nodes. a 1 c e 4 g b 2 d f 5 h Main interesting problems: Evaluation Is there a path from 0 to 6? - Yes! Counting How many different paths between 0 to 6? - 4 paths (i.e. aceg, acfh, bdeg, and bdfh) Property Path Query in SPARQL 1.1 6/27

11 Property Path Property Path (SPARQL 1.1 Spec. [Harris et al., 2012]) A property path is a possible route through a graph between two graph nodes. a 1 c e 4 g b 2 d f 5 h Main interesting problems: Evaluation Is there a path from 0 to 6? - Yes! Counting How many different paths between 0 to 6? - 4 paths (i.e. aceg, acfh, bdeg, and bdfh) Property Path Query in SPARQL 1.1 6/27

12 Property Path Property Path (SPARQL 1.1 Spec. [Harris et al., 2012]) A property path is a possible route through a graph between two graph nodes. a 1 c e 4 g b 2 d f 5 h Main interesting problems: Evaluation Is there a path from 0 to 6? - Yes! Counting How many different paths between 0 to 6? - 4 paths (i.e. aceg, acfh, bdeg, and bdfh) Property Path Query in SPARQL 1.1 6/27

13 Property Path Property Path (SPARQL 1.1 Spec. [Harris et al., 2012]) A property path is a possible route through a graph between two graph nodes. a 1 c e 4 g b 2 d f 5 h Main interesting problems: Evaluation Is there a path from 0 to 6? - Yes! Counting How many different paths between 0 to 6? - 4 paths (i.e. aceg, acfh, bdeg, and bdfh) Property Path Query in SPARQL 1.1 6/27

14 Property Path Property Path (SPARQL 1.1 Spec. [Harris et al., 2012]) A property path is a possible route through a graph between two graph nodes. a 1 c e 4 g b 2 d f 5 h Main interesting problems: Evaluation Is there a path from 0 to 6? - Yes! Counting How many different paths between 0 to 6? - 4 paths (i.e. aceg, acfh, bdeg, and bdfh) Property Path Query in SPARQL 1.1 6/27

15 Property Path Property Path (SPARQL 1.1 Spec. [Harris et al., 2012]) A property path is a possible route through a graph between two graph nodes. a 1 c e 4 g b 2 d f 5 h Main interesting problems: Evaluation Is there a path from 0 to 6? - Yes! Counting How many different paths between 0 to 6? - 4 paths (i.e. aceg, acfh, bdeg, and bdfh) Property Path Query in SPARQL 1.1 6/27

16 Property Path Property Path (SPARQL 1.1 Spec. [Harris et al., 2012]) A property path is a possible route through a graph between two graph nodes. a 1 c e 4 g b 2 d f 5 h Main interesting problems: Evaluation Is there a path from 0 to 6? - Yes! Counting How many different paths between 0 to 6? - 4 paths (i.e. aceg, acfh, bdeg, and bdfh) Property Path Query in SPARQL 1.1 6/27

17 Outline Introduction Limitation of navigational capabilities in SPARQL 1.0 SPARQL 1.1 property path Experiments on Evaluation and Counting Complexity Evaluation Complexity Counting Complexity Conclusion Property Path Query in SPARQL 1.1 7/27

18 60,000 h is used in, e.g., ARQ), Sesame, RDF::Query, and e 3.0. Experiments on Evaluation 3 We asked the four frameworks to answer the 50,000 ASK WHERE { x (a b){1,k} y } for increasing values 40,000 n the graph 30,000 b a [Arenas et 20,000 al., 2012] x y 10,000 a b ASK WHERE { x (a b){1,k} y } sting of two nodes and four labeled edges. Formally, (a) Evaluation time for Jena and orresponds to answering the Evaluation problemrdf::query. on bove graph for the expression (a + b) 1,k. (Notice that 5,000 Jena Sesame 60,000 fail RDF::Query nswer is always true.) 50,000 4,000 e performance of three of the four systems is depicted (1,1) (3,13) fail (1,2) (3,5) gure 1. The results are obtained from evaluation on a (1,3) (3,6) 40,000 3,000 (1,4) 3, 5 (1,2) (4,5) (1,5) (2,3) (4,6) op PC with 2 GB of RAM. For the Jena and Sesame... 30,000 (3,4)... work the points in the graph depict all the points we + (4,5) 2,000 b (4,12) (5,6) (1,2) 20,000 obtain data on. When we increased the number k by... (3,4) b c (5,6) 1,000 (4,12) ore as shown 10,000 on the graphic, the systems ran out of (1,2) (2,3)... (3,4) (4,5) ry. Our conclusion from our measurements is that all (5,6) 0 0 (4,12) systems seem to exhibit a double exponential behavior: k k a certain (a) point, Evaluation whenever time weforincrease Jena the and number k by (a) Part of a run on the expression (b + c) (b) Evaluation graph in Fig. time 2(b). for Sesame. which does RDF::Query. not mean that one more bit is needed to Figure: Evaluation time for Jena Figure: Evaluation b c btimec for b b b b sent it), the 5,000processing time doubles. Corese 3.0 evaluqueries of and therdf::query. above form very quickly. However, when RDF::Query Sesame Figure 1: Time taken by Jena, Sesame a fail Sesame. for evaluatingb the expression b (a + b ked the query 4,000 ASK WHERE {x ((a b)/(a b)){1,k} for y}, increasing values of k on a 12 graph 13 with two no b and four edges. ms ms ms Jena RDF::Query fail k Property Path Query in SPARQL 1.1 8/27

19 Experiments on Counting tabyte, or how SPARQL 1.1 ent Adoption of the Standard [Losemann and Martens, 2012] SELECT * WHERE { :a0 (p)* :a1 } stián Conca of Computer Science UC Chile nca@puc.cl o- a- as in Jorge Pérez Department of Computer Science Universidad de Chile jperez@dcc.uchile.cl + ARQ RDFQ KGram Sesame + a) a0 p a1 p p p a2 p a3 opds e ct ty of s- - of ey nt er r- ur cs on Figure 1: Time in seconds for processing Cliq-1 w.r.t. the clique size n (time axis in log-scale) Figure: Time in seconds for processing the queries w.r.t. the clique size n (time axis in : < :a0 :p :a1, :a2, :a3, :a4, :a5, :a6, :a7. :a1 :p :a0, :a2, :a3, :a4, :a5, :a6, :a7. :a2 :p :a0, :a1, :a3, :a4, :a5, :a6, :a7. :a3 :p :a0, :a1, :a2, :a4, :a5, :a6, :a7. :a4 :p :a0, :a1, :a2, :a3, :a5, :a6, :a7. :a5 :p :a0, :a1, :a2, :a3, :a4, :a6, :a7. :a6 :p :a0, :a1, :a2, :a3, :a4, :a5, :a7. :a7 :p :a0, :a1, :a2, :a3, :a4, :a5, :a6. Figure 2: RDF graph representing a clique with 8 nodes + + Property in a reasonable Path Query time in(one SPARQL hour) 1.1 even for small input graphs and 9/27 q : :a0 :p :a1, :a2, :a3. :a1 :p :a0, :a2, :a3. :a2 :p :a0, :a1, :a3. :a3 :p :a0, :a1, :a2. Figure: a) Clique with 4 nodes, b) RDF graph representing a clique with 4 nodes

20 Outline Introduction Limitation of navigational capabilities in SPARQL 1.0 SPARQL 1.1 property path Experiments on Evaluation and Counting Complexity Evaluation Complexity Counting Complexity Conclusion Property Path Query in SPARQL /27

21 Outline Introduction Limitation of navigational capabilities in SPARQL 1.0 SPARQL 1.1 property path Experiments on Evaluation and Counting Complexity Evaluation Complexity Counting Complexity Conclusion Property Path Query in SPARQL /27

22 Property Path Evaluation In the experiment, the evaluation algorithm is shown as double exponential behavior This depends on which semantics that algorithm relies on: Regular path Simple walk (or simple path and simple cycle): a path that does not visit the same node twice, but is allowed to return to its first node (cycle). Under the semantics of regular path, the evaluation can be improved to polynomial-time Under the simple path, the evaluation is intractable Property Path Query in SPARQL /27

23 Property Path Evaluation In the experiment, the evaluation algorithm is shown as double exponential behavior This depends on which semantics that algorithm relies on: Regular path Simple walk (or simple path and simple cycle): a path that does not visit the same node twice, but is allowed to return to its first node (cycle). Under the semantics of regular path, the evaluation can be improved to polynomial-time Under the simple path, the evaluation is intractable Property Path Query in SPARQL /27

24 Property Path Evaluation In the experiment, the evaluation algorithm is shown as double exponential behavior This depends on which semantics that algorithm relies on: Regular path Simple walk (or simple path and simple cycle): a path that does not visit the same node twice, but is allowed to return to its first node (cycle). Under the semantics of regular path, the evaluation can be improved to polynomial-time Under the simple path, the evaluation is intractable Property Path Query in SPARQL /27

25 Property Path Evaluation In the experiment, the evaluation algorithm is shown as double exponential behavior This depends on which semantics that algorithm relies on: Regular path Simple walk (or simple path and simple cycle): a path that does not visit the same node twice, but is allowed to return to its first node (cycle). Under the semantics of regular path, the evaluation can be improved to polynomial-time Under the simple path, the evaluation is intractable Property Path Query in SPARQL /27

26 Simple Path vs. Regular Path Simple path A simple path in a graph is a sequence of nodes such that each node in a path occurs exactly once Regular path (path) A path in a graph is a sequence of nodes such that from each of its nodes there is an edge to the next node in the sequence Find paths from x to z. w a 1 x a 2 y a 5 a 3 z a 4 Path a 4 a 1, a 2, a 3 a 1, a 2, a 5, a 4 Regular? Simple? (x visited twice) Property Path Query in SPARQL /27

27 Evaluation under Regular Path Semantics (1,1) (1,2) (1,3) (1,4) (1,5)... b (1,2) (3,4) (5,6) (4,12)... + c (2,3) (4,5) (1,2) (2,3) (3,4) (4,5) (4,12) (5,6)... 3, 5 b (1,2) (3,4) (5,6) (4,12)... (3,13) (3,5) (3,6) (4,5) (4,6)... (1,13) (1,5) (1,6)... (1,11) (2,8)... (a) Part of a run on the expression (b + c) b 3,5 and the graph in Fig. 2(b). b c b c b b b b b b b b b (b) An edge-labeled graph. Figure 2: Illustration of the polynomial-time dynamic programming algorithm. Figure: Illustration of polynomial-time dynamic programming algorithm If s =, then Rs := {(u, v) a s.t. (u, a, v) E}. If s = s1 + s2, then Rs = Rs1 Rs2. If s = s1 s2, then Rs := π1,3(rs1 Rs 1.2=Rs 2.1 Rs2 ), where Under the semantics of regular path, the evaluation can be done in polynomial-time denotes the ternary relation obtained by joining Rs 1.2=Rs 2.1 Property Path Query in SPARQL /27 by using dynamic programming approach The Complexity of Evaluation The complexity of evaluation under regular path semantics is in polynomial time (PTIME).

28 Evaluation under Regular Path Semantics (1,1) (1,2) (1,3) (1,4) (1,5)... b (1,2) (3,4) (5,6) (4,12)... + c (2,3) (4,5) (1,2) (2,3) (3,4) (4,5) (4,12) (5,6)... 3, 5 b (1,2) (3,4) (5,6) (4,12)... (3,13) (3,5) (3,6) (4,5) (4,6)... (1,13) (1,5) (1,6)... (1,11) (2,8)... (a) Part of a run on the expression (b + c) b 3,5 and the graph in Fig. 2(b). b c b c b b b b b b b b b (b) An edge-labeled graph. Figure 2: Illustration of the polynomial-time dynamic programming algorithm. Figure: Illustration of polynomial-time dynamic programming algorithm If s =, then Rs := {(u, v) a s.t. (u, a, v) E}. If s = s1 + s2, then Rs = Rs1 Rs2. If s = s1 s2, then Rs := π1,3(rs1 Rs 1.2=Rs 2.1 Rs2 ), where Under the semantics of regular path, the evaluation can be done in polynomial-time denotes the ternary relation obtained by joining Rs 1.2=Rs 2.1 Property Path Query in SPARQL /27 by using dynamic programming approach The Complexity of Evaluation The complexity of evaluation under regular path semantics is in polynomial time (PTIME).

29 Evaluation under Regular Path Semantics (1,1) (1,2) (1,3) (1,4) (1,5)... b (1,2) (3,4) (5,6) (4,12)... + c (2,3) (4,5) (1,2) (2,3) (3,4) (4,5) (4,12) (5,6)... 3, 5 b (1,2) (3,4) (5,6) (4,12)... (3,13) (3,5) (3,6) (4,5) (4,6)... (1,13) (1,5) (1,6)... (1,11) (2,8)... (a) Part of a run on the expression (b + c) b 3,5 and the graph in Fig. 2(b). b c b c b b b b b b b b b (b) An edge-labeled graph. Figure 2: Illustration of the polynomial-time dynamic programming algorithm. Figure: Illustration of polynomial-time dynamic programming algorithm If s =, then Rs := {(u, v) a s.t. (u, a, v) E}. If s = s1 + s2, then Rs = Rs1 Rs2. If s = s1 s2, then Rs := π1,3(rs1 Rs 1.2=Rs 2.1 Rs2 ), where Under the semantics of regular path, the evaluation can be done in polynomial-time denotes the ternary relation obtained by joining Rs 1.2=Rs 2.1 Property Path Query in SPARQL /27 by using dynamic programming approach The Complexity of Evaluation The complexity of evaluation under regular path semantics is in polynomial time (PTIME).

30 Figure: Simple Path in SPARQL 1.1 Last Call Property Path Query in SPARQL /27

31 Evaluation under Simple Path Semantics Reduction Chain of NP-completeness Problems Path evaluation in SPARQL 1.1 Even length simple path Path via a node in digraph Directed subgraph homeomorphism 3-SAT Property Path Query in SPARQL /27

32 Evaluation under Simple Path Semantics Reduction Chain of NP-completeness Problems Path evaluation in SPARQL 1.1 Even length simple path Path via a node in digraph Directed subgraph homeomorphism 3-SAT Path evaluation in SPARQL 1.1 [Losemann and Martens, 2012] Path evaluation under simple walk (simple path and simple cycle) semantics is NP-complete for the expression (aa) and for the expression (aa) + Property Path Query in SPARQL /27

33 Evaluation under Simple Path Semantics Reduction Chain of NP-completeness Problems Path evaluation in SPARQL 1.1 Even length simple path Path via a node in digraph Directed subgraph homeomorphism 3-SAT Even length simple path [Mendelzon and Wood, 1989, Lapaugh and Papadimitriou, 1984] Let 0 and 1 be distinct symbols in Σ. FIXED REGULAR PATH(R), in which is either (1) (00), or (2) 0 10 is NP-complete Proof. of (1) EVEN PATH is shown to be NP-complete We can reduce even path to FIXED REGULAR PATH(R), where R = (00) as follows Property Path Query in SPARQL /27

34 Evaluation under Simple Path Semantics Reduction Chain of NP-completeness Problems Path evaluation in SPARQL 1.1 Even length simple path Path via a node in digraph Directed subgraph homeomorphism 3-SAT Even length simple path [Mendelzon and Wood, 1989, Lapaugh and Papadimitriou, 1984] Given a digraph D = (V, A) and s, t V, it is NP-complete to decide whether there is an even-length simple path from s to t Property Path Query in SPARQL /27

35 Evaluation under Simple Path Semantics Reduction Chain of NP-completeness Problems Path evaluation in SPARQL 1.1 Even length simple path Path via a node in digraph Directed subgraph homeomorphism 3-SAT Path via a node in digraph [Lapaugh and Papadimitriou, 1984] Path via a node problem, is NP-complete: Given a digraph D = (V, A) and s, t, m V,is there a simple path from s to t via m? Property Path Query in SPARQL /27

36 Evaluation under Simple Path Semantics Reduction Chain of NP-completeness Problems Path evaluation in SPARQL 1.1 Even length simple path Path via a node in digraph Directed subgraph homeomorphism 3-SAT Directed subgraph homeomorphism [Fortune et al., 1980] For each P not in C the fixed subgraph homeomorphism problem with pattern P is NP-complete C = or In the reduction of Directed subgraph homeomorphism to Path via a node problem, we use P = Property Path Query in SPARQL /27

37 Evaluation under Simple Path Semantics Reduction Chain of NP-completeness Problems Path evaluation in SPARQL 1.1 Even length simple path Path via a node in digraph Directed subgraph homeomorphism 3-SAT 3-SAT 3-SAT is well-know NP-complete. The reduction of 3-SAT to Directed subgraph homeomorphism is very complicated [Fortune et al., 1980]. Property Path Query in SPARQL /27

38 Outline Introduction Limitation of navigational capabilities in SPARQL 1.0 SPARQL 1.1 property path Experiments on Evaluation and Counting Complexity Evaluation Complexity Counting Complexity Conclusion Property Path Query in SPARQL /27

39 Duplicates in SPARQL 1.1 Draft Property Path Query in SPARQL /27

40 Example of Counting SELECT * WHERE { :0 (p)* :1 } on clique(n) = {(: i p : j) 0 i, j n, i j} Solution: {{ [], [],..., [] }} }{{} duplicates of S n times 2 3 length p* path count 1 p 01 P 0 3 = 1 2 pp 021, 031, 041 P 1 3 = 3 3 ppp 0231, 0241, 0321, 0341, 0421, 0431 P 2 3 = 6 4 pppp 02341, 02431, 03241, 03421, 04231, P 3 3 = 6 sum S 5 = 16 Table: Compute S 5. Recall that P k n = n(n 1)... (n k + 1) S n+1 = P 0 n 1 + P1 n Pn 1 n 1 > Pn 1 n 1 = (n 1)! Property Path Query in SPARQL /27

41 Example of Counting SELECT * WHERE { :0 (p)* :1 } on clique(n) = {(: i p : j) 0 i, j n, i j} Solution: {{ [], [],..., [] }} }{{} duplicates of S n times 2 3 length p* path count 1 p 01 P 0 3 = 1 2 pp 021, 031, 041 P 1 3 = 3 3 ppp 0231, 0241, 0321, 0341, 0421, 0431 P 2 3 = 6 4 pppp 02341, 02431, 03241, 03421, 04231, P 3 3 = 6 sum S 5 = 16 Table: Compute S 5. Recall that P k n = n(n 1)... (n k + 1) S n+1 = P 0 n 1 + P1 n Pn 1 n 1 > Pn 1 n 1 = (n 1)! Property Path Query in SPARQL /27

42 Example of Counting SELECT * WHERE { :0 (p)* :1 } on clique(n) = {(: i p : j) 0 i, j n, i j} Solution: {{ [], [],..., [] }} }{{} duplicates of S n times 2 3 length p* path count 1 p 01 P 0 3 = 1 2 pp 021, 031, 041 P 1 3 = 3 3 ppp 0231, 0241, 0321, 0341, 0421, 0431 P 2 3 = 6 4 pppp 02341, 02431, 03241, 03421, 04231, P 3 3 = 6 sum S 5 = 16 Table: Compute S 5. Recall that P k n = n(n 1)... (n k + 1) S n+1 = P 0 n 1 + P1 n Pn 1 n 1 > Pn 1 n 1 = (n 1)! Property Path Query in SPARQL /27

43 Example of Counting SELECT * WHERE { :0 (p)* :1 } on clique(n) = {(: i p : j) 0 i, j n, i j} Solution: {{ [], [],..., [] }} }{{} duplicates of S n times 2 3 length p* path count 1 p 01 P 0 3 = 1 2 pp 021, 031, 041 P 1 3 = 3 3 ppp 0231, 0241, 0321, 0341, 0421, 0431 P 2 3 = 6 4 pppp 02341, 02431, 03241, 03421, 04231, P 3 3 = 6 sum S 5 = 16 Table: Compute S 5. Recall that P k n = n(n 1)... (n k + 1) S n+1 = P 0 n 1 + P1 n Pn 1 n 1 > Pn 1 n 1 = (n 1)! Property Path Query in SPARQL /27

44 Example of Counting SELECT * WHERE { :0 (p)* :1 } on clique(n) = {(: i p : j) 0 i, j n, i j} Solution: {{ [], [],..., [] }} }{{} duplicates of S n times 2 3 length p* path count 1 p 01 P 0 3 = 1 2 pp 021, 031, 041 P 1 3 = 3 3 ppp 0231, 0241, 0321, 0341, 0421, 0431 P 2 3 = 6 4 pppp 02341, 02431, 03241, 03421, 04231, P 3 3 = 6 sum S 5 = 16 Table: Compute S 5. Recall that P k n = n(n 1)... (n k + 1) S n+1 = P 0 n 1 + P1 n Pn 1 n 1 > Pn 1 n 1 = (n 1)! Property Path Query in SPARQL /27

45 Nesting of s = 1: SELECT * WHERE { :a0 (p)* :a1 } s = 2: SELECT * WHERE { :a0 ((p)*)* :a1 } s = 3: SELECT * WHERE { :a0 (((p)*)*)* :a1 } Figure: Number of occurrences of the mapping in the answer to property-path triple (a 1, p s, a n ) over RDF graph clique(n)[arenas et al., 2012] Property Path Query in SPARQL /27

46 Data Complexity of Counting Data complexity [Losemann and Martens, 2012, Arenas et al., 2012] Counting in SPARQL 1.1 Draft is #P-complete for the expressions a and a +. #P Complexity Class The class of function problems of the form "compute f (x)," where f is the number of accepting paths of an NP machine. The canonical #P-complete problem is #SAT. More difficult than NP, thus intractible Proof of #P-completeness #P-membership. The non-deterministic TM simply guesses a path of a certain length and tests whether it matches #P-hardness. Reductions from #DNF Property Path Query in SPARQL /27

47 An Existential Semantics to the Rescue the core of this problem the necessity of counting different paths. Existential Semantics usde in Graph DB, XML is tractalbe Possible solution: Discarding duplicates from the standard SELECT DISTINCT * WHERE {... } Figure: Experiement with Existential Semantics Property Path Query in SPARQL /27

48 Outline Introduction Limitation of navigational capabilities in SPARQL 1.0 SPARQL 1.1 property path Experiments on Evaluation and Counting Complexity Evaluation Complexity Counting Complexity Conclusion Property Path Query in SPARQL /27

49 Conclusion The property path in SPARQL 1.1 query can make it intractable Two requirements makes property queries difficult Simple path requirement Duplicates in path counting Possible solutions: Avoid simple path requirement (like XPATH) Existential Semantics Only count paths for some specific number of occurrence (e.g. shortest paths) Property Path Query in SPARQL /27

50 Conclusion The property path in SPARQL 1.1 query can make it intractable Two requirements makes property queries difficult Simple path requirement Duplicates in path counting Possible solutions: Avoid simple path requirement (like XPATH) Existential Semantics Only count paths for some specific number of occurrence (e.g. shortest paths) Property Path Query in SPARQL /27

51 Conclusion The property path in SPARQL 1.1 query can make it intractable Two requirements makes property queries difficult Simple path requirement Duplicates in path counting Possible solutions: Avoid simple path requirement (like XPATH) Existential Semantics Only count paths for some specific number of occurrence (e.g. shortest paths) Property Path Query in SPARQL /27

52 Conclusion The property path in SPARQL 1.1 query can make it intractable Two requirements makes property queries difficult Simple path requirement Duplicates in path counting Possible solutions: Avoid simple path requirement (like XPATH) Existential Semantics Only count paths for some specific number of occurrence (e.g. shortest paths) Property Path Query in SPARQL /27

53 Conclusion The property path in SPARQL 1.1 query can make it intractable Two requirements makes property queries difficult Simple path requirement Duplicates in path counting Possible solutions: Avoid simple path requirement (like XPATH) Existential Semantics Only count paths for some specific number of occurrence (e.g. shortest paths) Property Path Query in SPARQL /27

54 Latest Stories in Editors Draft Simple path requirements in ZeroOrMorePath (*), OneOrMorePath (+) are removed Property Path Query in SPARQL /27

55 Latest Stories in Editors Draft Property Path Query in SPARQL /27

56 References Arenas, M., Conca, S., and Pérez, J. (2012). Counting beyond a yottabyte, or how SPARQL 1.1 property paths will prevent adoption of the standard. In WWW 12, pages , New York, NY, USA. ACM. Fortune, S., Hopcroft, J. E., and Wyllie, J. (1980). The directed subgraph homeomorphism problem. Theor. Comput. Sci., 10: Harris, S., Seaborne, A., and Prud hommeaux, E. (2012). SPARQL 1.1 query language (W3C working draft 05 january 2012). Lapaugh, A. S. and Papadimitriou, C. H. (1984). The even-path problem for graphs and digraphs. Networks, 14(4): Losemann, K. and Martens, W. (2012). The complexity of evaluating path expressions in SPARQL. In PODS 12, pages ACM. Mendelzon, A. O. and Wood, P. T. (1989). Finding regular simple paths in graph databases. In VLDB 89, pages Morgan Kaufmann Publishers Inc. Property Path Query in SPARQL /27

On the Hardness of Counting the Solutions of SPARQL Queries

On the Hardness of Counting the Solutions of SPARQL Queries On the Hardness of Counting the Solutions of SPARQL Queries Reinhard Pichler and Sebastian Skritek Vienna University of Technology, Faculty of Informatics {pichler,skritek}@dbai.tuwien.ac.at 1 Introduction

More information

Evaluation of SPARQL Property Paths via Recursive SQL

Evaluation of SPARQL Property Paths via Recursive SQL Evaluation of SPARQL Property Paths via Recursive SQL Nikolay Yakovets, Parke Godfrey, and Jarek Gryz Department of Computer Science and Engineering, York University, Canada {hush,godfrey,jarek}@cse.yorku.ca

More information

Foundations of SPARQL Query Optimization

Foundations of SPARQL Query Optimization Foundations of SPARQL Query Optimization Michael Schmidt, Michael Meier, Georg Lausen Albert-Ludwigs-Universität Freiburg Database and Information Systems Group 13 th International Conference on Database

More information

Revisiting Blank Nodes in RDF to Avoid the Semantic Mismatch with SPARQL

Revisiting Blank Nodes in RDF to Avoid the Semantic Mismatch with SPARQL Revisiting Blank Nodes in RDF to Avoid the Semantic Mismatch with SPARQL Marcelo Arenas 1, Mariano Consens 2, and Alejandro Mallea 1,3 1 Pontificia Universidad Católica de Chile 2 University of Toronto

More information

Semantic Web Information Management

Semantic Web Information Management Semantic Web Information Management Norberto Fernández ndez Telematics Engineering Department berto@ it.uc3m.es.es 1 Motivation n Module 1: An ontology models a domain of knowledge n Module 2: using the

More information

A General Approach to Query the Web of Data

A General Approach to Query the Web of Data A General Approach to Query the Web of Data Xin Liu 1 Department of Information Science and Engineering, University of Trento, Trento, Italy liu@disi.unitn.it Abstract. With the development of the Semantic

More information

A TriAL: A navigational algebra for RDF triplestores

A TriAL: A navigational algebra for RDF triplestores A TriAL: A navigational algebra for RDF triplestores Navigational queries over RDF data are viewed as one of the main applications of graph query languages, and yet the standard model of graph databases

More information

Logical reconstruction of RDF and ontology languages

Logical reconstruction of RDF and ontology languages Logical reconstruction of RDF and ontology languages Jos de Bruijn 1, Enrico Franconi 2, and Sergio Tessaris 2 1 Digital Enterprise Research Institute, University of Innsbruck, Austria jos.debruijn@deri.org

More information

Structural Characterization of Graph Navigational Languages (Extended Abstract)

Structural Characterization of Graph Navigational Languages (Extended Abstract) Structural Characterization of Graph Navigational Languages (Extended Abstract) Valeria Fionda 1 and Giuseppe Pirrò 2 1 DeMaCS, University of Calabria, Italy fionda@mat.unical.it 2 Institute for High Performance

More information

The NP-Completeness of Some Edge-Partition Problems

The NP-Completeness of Some Edge-Partition Problems The NP-Completeness of Some Edge-Partition Problems Ian Holyer y SIAM J. COMPUT, Vol. 10, No. 4, November 1981 (pp. 713-717) c1981 Society for Industrial and Applied Mathematics 0097-5397/81/1004-0006

More information

Towards Equivalences for Federated SPARQL Queries

Towards Equivalences for Federated SPARQL Queries Towards Equivalences for Federated SPARQL Queries Carlos Buil-Aranda 1? and Axel Polleres 2?? 1 Department of Computer Science, Pontificia Universidad Católica, Chile cbuil@ing.puc.cl 2 Vienna University

More information

Data Exchange in the Relational and RDF Worlds

Data Exchange in the Relational and RDF Worlds Data Exchange in the Relational and RDF Worlds Marcelo Arenas Department of Computer Science Pontificia Universidad Católica de Chile This is joint work with Jorge Pérez, Juan Reutter, Cristian Riveros

More information

KNOWLEDGE GRAPHS. Lecture 4: Introduction to SPARQL. TU Dresden, 6th Nov Markus Krötzsch Knowledge-Based Systems

KNOWLEDGE GRAPHS. Lecture 4: Introduction to SPARQL. TU Dresden, 6th Nov Markus Krötzsch Knowledge-Based Systems KNOWLEDGE GRAPHS Lecture 4: Introduction to SPARQL Markus Krötzsch Knowledge-Based Systems TU Dresden, 6th Nov 2018 Review We can use reification to encode complex structures in RDF graphs: Film Actor

More information

FOUNDATIONS OF DATABASES AND QUERY LANGUAGES

FOUNDATIONS OF DATABASES AND QUERY LANGUAGES FOUNDATIONS OF DATABASES AND QUERY LANGUAGES Lecture 14: Database Theory in Practice Markus Krötzsch TU Dresden, 20 July 2015 Overview 1. Introduction Relational data model 2. First-order queries 3. Complexity

More information

Best known solution time is Ω(V!) Check every permutation of vertices to see if there is a graph edge between adjacent vertices

Best known solution time is Ω(V!) Check every permutation of vertices to see if there is a graph edge between adjacent vertices Hard Problems Euler-Tour Problem Undirected graph G=(V,E) An Euler Tour is a path where every edge appears exactly once. The Euler-Tour Problem: does graph G have an Euler Path? Answerable in O(E) time.

More information

SPARQL with Property Paths

SPARQL with Property Paths SPARQL with Property Paths Egor V. Kostylev 1, Juan L. Reutter 2, Miguel Romero 3, and Domagoj Vrgoč 2 1 University of Oxford 2 PUC Chile and Center for Semantic Web Research 3 University of Chile and

More information

SPARQL Protocol And RDF Query Language

SPARQL Protocol And RDF Query Language SPARQL Protocol And RDF Query Language WS 2011/12: XML Technologies John Julian Carstens Department of Computer Science Communication Systems Group Christian-Albrechts-Universität zu Kiel March 1, 2012

More information

The Inverse of a Schema Mapping

The Inverse of a Schema Mapping The Inverse of a Schema Mapping Jorge Pérez Department of Computer Science, Universidad de Chile Blanco Encalada 2120, Santiago, Chile jperez@dcc.uchile.cl Abstract The inversion of schema mappings has

More information

Lecture 21: Other Reductions Steven Skiena

Lecture 21: Other Reductions Steven Skiena Lecture 21: Other Reductions Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.stonybrook.edu/ skiena Problem of the Day Show that the dense

More information

Lecture 7: Counting classes

Lecture 7: Counting classes princeton university cos 522: computational complexity Lecture 7: Counting classes Lecturer: Sanjeev Arora Scribe:Manoj First we define a few interesting problems: Given a boolean function φ, #SAT is the

More information

Grid Resources Search Engine based on Ontology

Grid Resources Search Engine based on Ontology based on Ontology 12 E-mail: emiao_beyond@163.com Yang Li 3 E-mail: miipl606@163.com Weiguang Xu E-mail: miipl606@163.com Jiabao Wang E-mail: miipl606@163.com Lei Song E-mail: songlei@nudt.edu.cn Jiang

More information

Benchmarking RDF Production Tools

Benchmarking RDF Production Tools Benchmarking RDF Production Tools Martin Svihla and Ivan Jelinek Czech Technical University in Prague, Karlovo namesti 13, Praha 2, Czech republic, {svihlm1, jelinek}@fel.cvut.cz, WWW home page: http://webing.felk.cvut.cz

More information

Finding Similarity and Comparability from Merged Hetero Data of the Semantic Web by Using Graph Pattern Matching

Finding Similarity and Comparability from Merged Hetero Data of the Semantic Web by Using Graph Pattern Matching Finding Similarity and Comparability from Merged Hetero Data of the Semantic Web by Using Graph Pattern Matching Hiroyuki Sato, Kyoji Iiduka, Takeya Mukaigaito, and Takahiko Murayama Information Sharing

More information

Steven Skiena. skiena

Steven Skiena.   skiena Lecture 22: Introduction to NP-completeness (1997) Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Among n people,

More information

Federation and Navigation in SPARQL 1.1

Federation and Navigation in SPARQL 1.1 Federation and Navigation in SPARQL 1.1 Marcelo Arenas 1 and Jorge Pérez 2 1 Department of Computer Science, Pontificia Universidad Católica de Chile 2 Department of Computer Science, Universidad de Chile

More information

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W.

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W. : Coping with NP-Completeness Course contents: Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems Reading: Chapter 34 Chapter 35.1, 35.2 Y.-W. Chang 1 Complexity

More information

Classical DB Questions on New Kinds of Data

Classical DB Questions on New Kinds of Data 1 Classical DB Questions on New Kinds of Data Marcelo Arenas & Pablo Barceló, Center for Semantic Web Research PUC Chile Universidad de Chile Evolution of data models 80s early 90s Overcome expressiveness

More information

Index Support for SPARQL

Index Support for SPARQL Index Support for SPARQL Ralf Heese, Ulf Leser, Bastian Quilitz, and Christian Rothe Humboldt-Universität zu Berlin Department of Computer Science (rheese leser quilitz rothe)@informatik.hu-berlin.de Abstract.

More information

CS 125 Section #10 Midterm 2 Review 11/5/14

CS 125 Section #10 Midterm 2 Review 11/5/14 CS 125 Section #10 Midterm 2 Review 11/5/14 1 Topics Covered This midterm covers up through NP-completeness; countability, decidability, and recognizability will not appear on this midterm. Disclaimer:

More information

Lecture 21: Other Reductions Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY

Lecture 21: Other Reductions Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY Lecture 21: Other Reductions Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Problem of the Day Show that the Dense

More information

P and NP (Millenium problem)

P and NP (Millenium problem) CMPS 2200 Fall 2017 P and NP (Millenium problem) Carola Wenk Slides courtesy of Piotr Indyk with additions by Carola Wenk CMPS 2200 Introduction to Algorithms 1 We have seen so far Algorithms for various

More information

Navigation in SPARQL 1.1

Navigation in SPARQL 1.1 Navigation in SPARQL 1.1 Marcelo Arenas PUC Chile & U. of Oxford Oxford, November 2012 Semantic Web The Semantic Web is an extension of the current web in which information is given well-defined meaning,

More information

Graph Databases. Advanced Topics in Foundations of Databases, University of Edinburgh, 2017/18

Graph Databases. Advanced Topics in Foundations of Databases, University of Edinburgh, 2017/18 Graph Databases Advanced Topics in Foundations of Databases, University of Edinburgh, 2017/18 Graph Databases and Applications Graph databases are crucial when topology is as important as the data Several

More information

NP-Complete Reductions 2

NP-Complete Reductions 2 x 1 x 1 x 2 x 2 x 3 x 3 x 4 x 4 12 22 32 CS 447 11 13 21 23 31 33 Algorithms NP-Complete Reductions 2 Prof. Gregory Provan Department of Computer Science University College Cork 1 Lecture Outline NP-Complete

More information

Semantic reasoning for dynamic knowledge bases. Lionel Médini M2IA Knowledge Dynamics 2018

Semantic reasoning for dynamic knowledge bases. Lionel Médini M2IA Knowledge Dynamics 2018 Semantic reasoning for dynamic knowledge bases Lionel Médini M2IA Knowledge Dynamics 2018 1 Outline Summary Logics Semantic Web Languages Reasoning Web-based reasoning techniques Reasoning using SemWeb

More information

Computational problems. Lecture 2: Combinatorial search and optimisation problems. Computational problems. Examples. Example

Computational problems. Lecture 2: Combinatorial search and optimisation problems. Computational problems. Examples. Example Lecture 2: Combinatorial search and optimisation problems Different types of computational problems Examples of computational problems Relationships between problems Computational properties of different

More information

A Retrospective on Datalog 1.0

A Retrospective on Datalog 1.0 A Retrospective on Datalog 1.0 Phokion G. Kolaitis UC Santa Cruz and IBM Research - Almaden Datalog 2.0 Vienna, September 2012 2 / 79 A Brief History of Datalog In the beginning of time, there was E.F.

More information

A Model of Distributed Query Computation in Client-Server Scenarios on the Semantic Web

A Model of Distributed Query Computation in Client-Server Scenarios on the Semantic Web A Model of Distributed Query Computation in Client-Server Scenarios on the Semantic Web Olaf Hartig 1, Ian Letter 2, Jorge Pérez 3,4 1 Dept. of Computer and Information Science (IDA), Linköping University,

More information

OWL 2 Profiles. An Introduction to Lightweight Ontology Languages. Markus Krötzsch University of Oxford. Reasoning Web 2012

OWL 2 Profiles. An Introduction to Lightweight Ontology Languages. Markus Krötzsch University of Oxford. Reasoning Web 2012 University of Oxford Department of Computer Science OWL 2 Profiles An Introduction to Lightweight Ontology Languages Markus Krötzsch University of Oxford Reasoning Web 2012 Remark for the Online Version

More information

Chapter 8. NP-complete problems

Chapter 8. NP-complete problems Chapter 8. NP-complete problems Search problems E cient algorithms We have developed algorithms for I I I I I finding shortest paths in graphs, minimum spanning trees in graphs, matchings in bipartite

More information

Module 6 NP-Complete Problems and Heuristics

Module 6 NP-Complete Problems and Heuristics Module 6 NP-Complete Problems and Heuristics Dr. Natarajan Meghanathan Professor of Computer Science Jackson State University Jackson, MS 39217 E-mail: natarajan.meghanathan@jsums.edu P, NP-Problems Class

More information

The Logic of the Semantic Web. Enrico Franconi Free University of Bozen-Bolzano, Italy

The Logic of the Semantic Web. Enrico Franconi Free University of Bozen-Bolzano, Italy The Logic of the Semantic Web Enrico Franconi Free University of Bozen-Bolzano, Italy What is this talk about 2 What is this talk about A sort of tutorial of RDF, the core semantic web knowledge representation

More information

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES Semantics of SPARQL Sebastian Rudolph Dresden, June 14 Content Overview & XML 9 APR DS2 Hypertableau II 7 JUN DS5 Introduction into RDF 9 APR DS3 Tutorial 5 11

More information

One of the main selling points of a database engine is the ability to make declarative queries---like SQL---that specify what should be done while

One of the main selling points of a database engine is the ability to make declarative queries---like SQL---that specify what should be done while 1 One of the main selling points of a database engine is the ability to make declarative queries---like SQL---that specify what should be done while leaving the engine to choose the best way of fulfilling

More information

Some Hardness Proofs

Some Hardness Proofs Some Hardness Proofs Magnus Lie Hetland January 2011 This is a very brief overview of some well-known hard (NP Hard and NP complete) problems, and the main ideas behind their hardness proofs. The document

More information

Answering Aggregate Queries Over Large RDF Graphs

Answering Aggregate Queries Over Large RDF Graphs 1 Answering Aggregate Queries Over Large RDF Graphs Lei Zou, Peking University Ruizhe Huang, Peking University Lei Chen, Hong Kong University of Science and Technology M. Tamer Özsu, University of Waterloo

More information

Name: CS 341 Practice Final Exam. 1 a 20 b 20 c 20 d 20 e 20 f 20 g Total 207

Name: CS 341 Practice Final Exam. 1 a 20 b 20 c 20 d 20 e 20 f 20 g Total 207 Name: 1 a 20 b 20 c 20 d 20 e 20 f 20 g 20 2 10 3 30 4 12 5 15 Total 207 CS 341 Practice Final Exam 1. Please write neatly. You will lose points if we cannot figure out what you are saying. 2. Whenever

More information

Partha Sarathi Mandal

Partha Sarathi Mandal MA 515: Introduction to Algorithms & MA353 : Design and Analysis of Algorithms [3-0-0-6] Lecture 39 http://www.iitg.ernet.in/psm/indexing_ma353/y09/index.html Partha Sarathi Mandal psm@iitg.ernet.in Dept.

More information

Binary Decision Diagrams

Binary Decision Diagrams Logic and roof Hilary 2016 James Worrell Binary Decision Diagrams A propositional formula is determined up to logical equivalence by its truth table. If the formula has n variables then its truth table

More information

SAT Solver. CS 680 Formal Methods Jeremy Johnson

SAT Solver. CS 680 Formal Methods Jeremy Johnson SAT Solver CS 680 Formal Methods Jeremy Johnson Disjunctive Normal Form A Boolean expression is a Boolean function Any Boolean function can be written as a Boolean expression s x 0 x 1 f Disjunctive normal

More information

Keyword query interpretation over structured data

Keyword query interpretation over structured data Keyword query interpretation over structured data Advanced Methods of Information Retrieval Elena Demidova SS 2018 Elena Demidova: Advanced Methods of Information Retrieval SS 2018 1 Recap Elena Demidova:

More information

Graph Databases. Guilherme Fetter Damasio. University of Ontario Institute of Technology and IBM Centre for Advanced Studies IBM Corporation

Graph Databases. Guilherme Fetter Damasio. University of Ontario Institute of Technology and IBM Centre for Advanced Studies IBM Corporation Graph Databases Guilherme Fetter Damasio University of Ontario Institute of Technology and IBM Centre for Advanced Studies Outline Introduction Relational Database Graph Database Our Research 2 Introduction

More information

Learning Queries for Relational, Semi-structured, and Graph Databases

Learning Queries for Relational, Semi-structured, and Graph Databases Learning Queries for Relational, Semi-structured, and Graph Databases Radu Ciucanu University of Lille & INRIA, France Supervised by Angela Bonifati & S lawek Staworko SIGMOD 13 PhD Symposium June 23,

More information

1 Definition of Reduction

1 Definition of Reduction 1 Definition of Reduction Problem A is reducible, or more technically Turing reducible, to problem B, denoted A B if there a main program M to solve problem A that lacks only a procedure to solve problem

More information

Module 6 P, NP, NP-Complete Problems and Approximation Algorithms

Module 6 P, NP, NP-Complete Problems and Approximation Algorithms Module 6 P, NP, NP-Complete Problems and Approximation Algorithms Dr. Natarajan Meghanathan Associate Professor of Computer Science Jackson State University Jackson, MS 39217 E-mail: natarajan.meghanathan@jsums.edu

More information

Flat triples approach to RDF graphs in JSON

Flat triples approach to RDF graphs in JSON Flat triples approach to RDF graphs in JSON Dominik Tomaszuk Institute of Computer Science, University of Bialystok, Poland Abstract. This paper describes a syntax that can be used to write Resource Description

More information

P and NP CISC4080, Computer Algorithms CIS, Fordham Univ. Instructor: X. Zhang

P and NP CISC4080, Computer Algorithms CIS, Fordham Univ. Instructor: X. Zhang P and NP CISC4080, Computer Algorithms CIS, Fordham Univ. Instructor: X. Zhang Efficient Algorithms So far, we have developed algorithms for finding shortest paths in graphs, minimum spanning trees in

More information

Using RDF to Model the Structure and Process of Systems

Using RDF to Model the Structure and Process of Systems Using RDF to Model the Structure and Process of Systems Marko A. Rodriguez Jennifer H. Watkins Johan Bollen Los Alamos National Laboratory {marko,jhw,jbollen}@lanl.gov Carlos Gershenson New England Complex

More information

Foundations of RDF and SPARQL

Foundations of RDF and SPARQL Foundations of RDF and SPARQL (An Alternative Approach to Statement-Level Metadata in RDF) Olaf Hartig Dept. of Computer and Information Science (IDA), Linköping University, Sweden olaf.hartig@liu.se Abstract

More information

Unit 1 a Bird s Eye View on RDF(S), OWL & SPARQL

Unit 1 a Bird s Eye View on RDF(S), OWL & SPARQL Unit 1 a Bird s Eye View on RDF(S), OWL & SPARQL Axel Polleres Siemens AG Österreich VU 184.729 Semantic Web Technologies A. Polleres VU 184.729 1/48 Unit Outline 1. Motivation Aggregating Web Data 2.

More information

Extracting knowledge from Ontology using Jena for Semantic Web

Extracting knowledge from Ontology using Jena for Semantic Web Extracting knowledge from Ontology using Jena for Semantic Web Ayesha Ameen I.T Department Deccan College of Engineering and Technology Hyderabad A.P, India ameenayesha@gmail.com Khaleel Ur Rahman Khan

More information

Efficient Optimization of Sparql Basic Graph Pattern

Efficient Optimization of Sparql Basic Graph Pattern Efficient Optimization of Sparql Basic Graph Pattern Ms.M.Manju 1, Mrs. R Gomathi 2 PG Scholar, Department of CSE, Bannari Amman Institute of Technology, Sathyamangalam, Tamilnadu, India 1 Associate Professor/Senior

More information

Keyword query interpretation over structured data

Keyword query interpretation over structured data Keyword query interpretation over structured data Advanced Methods of IR Elena Demidova Materials used in the slides: Jeffrey Xu Yu, Lu Qin, Lijun Chang. Keyword Search in Databases. Synthesis Lectures

More information

Graph and Digraph Glossary

Graph and Digraph Glossary 1 of 15 31.1.2004 14:45 Graph and Digraph Glossary A B C D E F G H I-J K L M N O P-Q R S T U V W-Z Acyclic Graph A graph is acyclic if it contains no cycles. Adjacency Matrix A 0-1 square matrix whose

More information

Hardness of Subgraph and Supergraph Problems in c-tournaments

Hardness of Subgraph and Supergraph Problems in c-tournaments Hardness of Subgraph and Supergraph Problems in c-tournaments Kanthi K Sarpatwar 1 and N.S. Narayanaswamy 1 Department of Computer Science and Engineering, IIT madras, Chennai 600036, India kanthik@gmail.com,swamy@cse.iitm.ac.in

More information

Semantics. KR4SW Winter 2011 Pascal Hitzler 1

Semantics. KR4SW Winter 2011 Pascal Hitzler 1 Semantics KR4SW Winter 2011 Pascal Hitzler 1 Knowledge Representation for the Semantic Web Winter Quarter 2011 Pascal Hitzler Slides 5 01/20+25/2010 Kno.e.sis Center Wright State University, Dayton, OH

More information

Orchestrating Music Queries via the Semantic Web

Orchestrating Music Queries via the Semantic Web Orchestrating Music Queries via the Semantic Web Milos Vukicevic, John Galletly American University in Bulgaria Blagoevgrad 2700 Bulgaria +359 73 888 466 milossmi@gmail.com, jgalletly@aubg.bg Abstract

More information

COMPUTER AND INFORMATION SCIENCE JENA DB. Group Abhishek Kumar Harshvardhan Singh Abhisek Mohanty Suhas Tumkur Chandrashekhara

COMPUTER AND INFORMATION SCIENCE JENA DB. Group Abhishek Kumar Harshvardhan Singh Abhisek Mohanty Suhas Tumkur Chandrashekhara JENA DB Group - 10 Abhishek Kumar Harshvardhan Singh Abhisek Mohanty Suhas Tumkur Chandrashekhara OUTLINE Introduction Data Model Query Language Implementation Features Applications Introduction Open Source

More information

A Foundations of Modern Query Languages for Graph Databases 1

A Foundations of Modern Query Languages for Graph Databases 1 A Foundations of Modern Query Languages for Graph Databases 1 RENZO ANGLES, Universidad de Talca & Center for Semantic Web Research MARCELO ARENAS, Pontificia Universidad Católica de Chile & Center for

More information

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch] NP Completeness Andreas Klappenecker [partially based on slides by Jennifer Welch] Overview We already know the following examples of NPC problems: SAT 3SAT We are going to show that the following are

More information

Query Evaluation on Probabilistic Databases

Query Evaluation on Probabilistic Databases Query Evaluation on Probabilistic Databases Christopher Ré, Nilesh Dalvi and Dan Suciu University of Washington 1 The Probabilistic Data In this paper we consider the query evaluation problem: how can

More information

P and NP CISC5835, Algorithms for Big Data CIS, Fordham Univ. Instructor: X. Zhang

P and NP CISC5835, Algorithms for Big Data CIS, Fordham Univ. Instructor: X. Zhang P and NP CISC5835, Algorithms for Big Data CIS, Fordham Univ. Instructor: X. Zhang Efficient Algorithms So far, we have developed algorithms for finding shortest paths in graphs, minimum spanning trees

More information

Query Evaluation on Probabilistic Databases

Query Evaluation on Probabilistic Databases Query Evaluation on Probabilistic Databases Christopher Ré, Nilesh Dalvi and Dan Suciu University of Washington 1 The Probabilistic Data In this paper we consider the query evaluation problem: how can

More information

A Formal Framework for Comparing Linked Data Fragments

A Formal Framework for Comparing Linked Data Fragments A Formal Framework for Comparing Linked Data Fragments Olaf Hartig 1, Ian Letter 2, and Jorge Pérez 3 1 Dept. of Computer and Information Science (IDA), Linköping University, Sweden olaf.hartig@liu.se

More information

Regular Expressions for Data Words

Regular Expressions for Data Words Regular Expressions for Data Words Leonid Libkin and Domagoj Vrgoč School of Informatics, University of Edinburgh Abstract. In data words, each position carries not only a letter form a finite alphabet,

More information

Computability Theory

Computability Theory CS:4330 Theory of Computation Spring 2018 Computability Theory Other NP-Complete Problems Haniel Barbosa Readings for this lecture Chapter 7 of [Sipser 1996], 3rd edition. Sections 7.4 and 7.5. The 3SAT

More information

NP-Completeness. Algorithms

NP-Completeness. Algorithms NP-Completeness Algorithms The NP-Completeness Theory Objective: Identify a class of problems that are hard to solve. Exponential time is hard. Polynomial time is easy. Why: Do not try to find efficient

More information

XML Research for Formal Language Theorists

XML Research for Formal Language Theorists XML Research for Formal Language Theorists Wim Martens TU Dortmund Wim Martens (TU Dortmund) XML for Formal Language Theorists May 14, 2008 1 / 65 Goal of this talk XML Research vs Formal Languages Wim

More information

Introduction III. Graphs. Motivations I. Introduction IV

Introduction III. Graphs. Motivations I. Introduction IV Introduction I Graphs Computer Science & Engineering 235: Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu Graph theory was introduced in the 18th century by Leonhard Euler via the Königsberg

More information

Chapter 4. Relations & Graphs. 4.1 Relations. Exercises For each of the relations specified below:

Chapter 4. Relations & Graphs. 4.1 Relations. Exercises For each of the relations specified below: Chapter 4 Relations & Graphs 4.1 Relations Definition: Let A and B be sets. A relation from A to B is a subset of A B. When we have a relation from A to A we often call it a relation on A. When we have

More information

Introduction to Algorithms

Introduction to Algorithms Introduction to Algorithms 6.046J/18.401 Lecture 21 Prof. Piotr Indyk P vs NP (interconnectedness of all things) A whole course by itself We ll do just two lectures More in 6.045, 6.840J, etc. Introduction

More information

Ecient XPath Axis Evaluation for DOM Data Structures

Ecient XPath Axis Evaluation for DOM Data Structures Ecient XPath Axis Evaluation for DOM Data Structures Jan Hidders Philippe Michiels University of Antwerp Dept. of Math. and Comp. Science Middelheimlaan 1, BE-2020 Antwerp, Belgium, fjan.hidders,philippe.michielsg@ua.ac.be

More information

Lecture 20: Satisfiability Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY

Lecture 20: Satisfiability Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY Lecture 20: Satisfiability Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Problem of the Day Suppose we are given

More information

Semantics in RDF and SPARQL Some Considerations

Semantics in RDF and SPARQL Some Considerations Semantics in RDF and SPARQL Some Considerations Dept. Computer Science, Universidad de Chile Center for Semantic Web Research http://ciws.cl Dagstuhl, June 2017 Semantics RDF and SPARQL 1 / 7 Semantics

More information

On Distributed Querying of Linked Data

On Distributed Querying of Linked Data On Distributed Querying of Linked Data Martin Svoboda, Jakub Stárka, and Irena Mlýnková Martin Svoboda, Jakub Stárka, and Irena Mlýnková XML and Web Engineering Research Group Faculty of Mathematics XML

More information

Inverting Schema Mappings: Bridging the Gap between Theory and Practice

Inverting Schema Mappings: Bridging the Gap between Theory and Practice Inverting Schema Mappings: Bridging the Gap between Theory and Practice Marcelo Arenas Jorge Pérez Juan Reutter Cristian Riveros PUC Chile PUC Chile PUC Chile R&M Tech marenas@ing.puc.cl jperez@ing.puc.cl

More information

Layers of Abstraction to Semantic Web Programming

Layers of Abstraction to Semantic Web Programming Reasoning Applications activity UML Activity Diagrams EPC Diagrams... activity split decision-split join decision-and decision-or decision-xor join-and join-or join-xor start decision-join end followed-by

More information

NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT

NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT 3SAT The 3SAT problem is the following. INSTANCE : Given a boolean expression E in conjunctive normal form (CNF) that is the conjunction of clauses, each

More information

Core Membership Computation for Succinct Representations of Coalitional Games

Core Membership Computation for Succinct Representations of Coalitional Games Core Membership Computation for Succinct Representations of Coalitional Games Xi Alice Gao May 11, 2009 Abstract In this paper, I compare and contrast two formal results on the computational complexity

More information

Recursion in SPARQL. Juan L. Reutter, Adrián Soto, and Domagoj Vrgoč. PUC Chile and Center for Semantic Web Research

Recursion in SPARQL. Juan L. Reutter, Adrián Soto, and Domagoj Vrgoč. PUC Chile and Center for Semantic Web Research Recursion in SPARQL Juan L. Reutter, Adrián Soto, and Domagoj Vrgoč PUC Chile and Center for Semantic Web Research Abstract. The need for recursive queries in the Semantic Web setting is becoming more

More information

Joint Entity Resolution

Joint Entity Resolution Joint Entity Resolution Steven Euijong Whang, Hector Garcia-Molina Computer Science Department, Stanford University 353 Serra Mall, Stanford, CA 94305, USA {swhang, hector}@cs.stanford.edu No Institute

More information

Logic and Computation

Logic and Computation Logic and Computation From Conceptualization to Formalization Here's what we do when we build a formal model (or do a computation): 0. Identify a collection of objects/events in the real world. This is

More information

Semantic Processing of Sensor Event Stream by Using External Knowledge Bases

Semantic Processing of Sensor Event Stream by Using External Knowledge Bases Semantic Processing of Sensor Event Stream by Using External Knowledge Bases Short Paper Kia Teymourian and Adrian Paschke Freie Universitaet Berlin, Berlin, Germany {kia, paschke}@inf.fu-berlin.de Abstract.

More information

A Relaxed Approach to RDF Querying

A Relaxed Approach to RDF Querying A Relaxed Approach to RDF Querying Carlos A. Hurtado 1, Alexandra Poulovassilis 2, and Peter T. Wood 2 1 Universidad de Chile (churtado@dcc.uchile.cl) 2 Birkbeck, University of London ({ap,ptw}@dcs.bbk.ac.uk)

More information

Apache Marmotta. Multimedia Management

Apache Marmotta. Multimedia Management for Multimedia Management Jakob Frank, Thomas Kurz http://marmotta.apache.org/ Who are we? Jakob Frank Researcher at Salzburg Research Solution Architect at Redlink GmbH ASF Committer of Marmotta Thomas

More information

Querying the Semantic Web

Querying the Semantic Web Querying the Semantic Web CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University http://www3.cs.stonybrook.edu/~pfodor/courses/cse595.html Lecture Outline SPARQL Infrastructure Basics:

More information

Processing Regular Path Queries Using Views or What Do We Need for Integrating Semistructured Data?

Processing Regular Path Queries Using Views or What Do We Need for Integrating Semistructured Data? Processing Regular Path Queries Using Views or What Do We Need for Integrating Semistructured Data? Diego Calvanese University of Rome La Sapienza joint work with G. De Giacomo, M. Lenzerini, M.Y. Vardi

More information

Towards an Integrated Information Framework for Service Technicians

Towards an Integrated Information Framework for Service Technicians Towards an Integrated Information Framework for Service Technicians Sebastian Bader, Jan Oevermann KIT The Research University in the Helmholtz Association www.kit.edu How it should be: I need to do maintenance

More information

Semantic Web. Querying on the Web: XQuery, RDQL, SparQL. Morteza Amini. Sharif University of Technology Fall 94-95

Semantic Web. Querying on the Web: XQuery, RDQL, SparQL. Morteza Amini. Sharif University of Technology Fall 94-95 ه عا ی Semantic Web Querying on the Web: XQuery, RDQL, SparQL Morteza Amini Sharif University of Technology Fall 94-95 Outline XQuery Querying on XML Data RDQL Querying on RDF Data SparQL Another RDF query

More information

Unit 2 RDF Formal Semantics in Detail

Unit 2 RDF Formal Semantics in Detail Unit 2 RDF Formal Semantics in Detail Axel Polleres Siemens AG Österreich VU 184.729 Semantic Web Technologies A. Polleres VU 184.729 1/41 Where are we? Last time we learnt: Basic ideas about RDF and how

More information