SPARQL Formalization
|
|
- Primrose Gaines
- 5 years ago
- Views:
Transcription
1 SPARQL Formalization Marcelo Arenas, Claudio Gutierrez, Jorge Pérez Department of Computer Science Pontificia Universidad Católica de Chile Universidad de Chile Center for Web Research M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 1 / 34
2 SPARQL: A simple RDF query language SELECT?Name? WHERE {?X :name?name?x : ? } The semantics of simple SPARQL queries is easy to understand, at least intuitively. Give me the name and of the resources in the datasource M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 2 / 34
3 But things can become more complex... Interesting features of pattern matching on graphs Grouping Optional parts Nesting Union of patterns Filtering... { { P1 P2 } OPTIONAL { P5 } } { P3 P4 } OPTIONAL { P7 } } OPTIONAL { P8 } } } } UNION { P9 } FILTER ( R ) } M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 3 / 34
4 A formal semantics for SPARQL is needed. A formal approach would be beneficial Clarifying corner cases Helping in the implementation process Providing sound foundations We will see: A formal compositional semantics based on [PAG06: Semantics and Complexity of SPARQL] This formalization is the starting point of the official semantics of the SPARQL language by the W3C. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 4 / 34
5 Outline Motivation Basic Syntax Semantics Datasets Query result forms Dealing with bnodes Dealing with duplicates M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 5 / 34
6 First of all, a simplified algebraic syntax Triple patterns: RDF triple + variables (no bnodes for now) (?X, name,?name) The base case for the algebra is a set of triple patterns {t 1,t 2,...,t k }. This is called basic graph pattern (BGP). Example { (?X, name,?name), (?X, ,? ) } M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 6 / 34
7 First of all, a simplified algebraic syntax (cont.) We consider initially three basic operators: AND, UNION, OPT. We will use them to construct graph pattern expressions from basic graph patterns. A SPARQL graph pattern: ((({t 1,t 2 } AND t 3 ) OPT {t 4,t 5 }) AND (t 6 UNION {t 7,t 8 })) it is a full parenthesized expression Full parenthesized expressions give us explicit precedence/association. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 7 / 34
8 Mappings: building block for the semantics Definition A mapping is a partial function from variables to RDF terms. Given a mapping µ and a basic graph pattern P: dom(µ): the domain of µ. µ(p): the set obtained from P replacing the variables according to µ Example µ = {?X R 1,?Y R 2,?Name john,? J@ed.ex} P = {(?X, name,?name), (?X, ,? )} µ(p) = {(R 1, name, john), (R 1, , J@ed.ex)} M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 8 / 34
9 The semantics of basic graph pattern Definition The evaluation of the BGP P over a graph G, denoted by [[P]] G, is the set of all mappings µ such that: dom(µ) is exactly the set of variables occurring in P µ(p) G M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 9 / 34
10 Example G (R 1, name, john) (R 1, , J@ed.ex) (R 2, name, paul) [[{(?X, name,?y )}]] G { µ1 = {?X R 1,?Y john} µ 2 = {?X R 2,?Y paul} }?X?Y µ 1 R 1 john µ 2 R 2 paul [[{(?X, name,?y ), (?X, ,?z)}]] G { µ = {?X R1,?Y john,?z J@ed.ex} }?X?Y?Z µ R 1 john J@ed.ex M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 10 / 34
11 Example G (R 1, name, john) (R 1, , J@ed.ex) (R 2, name, paul) [[{(R 1, webpage,?w)}]] G { } [[{(R 3, name, ringo)}]] G { } [[{(R 2, name, paul)}]] G { µ = { } } [[{ }]] G { µ = { } } M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 11 / 34
12 Compatible mappings: mappings that can be merged. Definition The mappings µ 1, µ 2 are compatibles iff they agree in their shared variables: µ 1 (?X) = µ 2 (?X) for every?x dom(µ 1 ) dom(µ 2 ). µ 1 µ 2 is also a mapping. Example?X?Y?U?V µ 1 R 1 john µ 2 R 1 J@edu.ex µ 3 P@edu.ex R 2 µ 1 µ 2 R 1 john J@edu.ex µ 1 µ 3 R 1 john P@edu.ex R 2 µ = { } is compatible with every mapping. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 12 / 34
13 Sets of mappings and operations Let M 1 and M 2 be sets of mappings: Definition Join: M 1 M 2 {µ 1 µ 2 µ 1 M 1,µ 2 M 2, and µ 1,µ 2 are compatibles} extending mappings in M 1 with compatible mappings in M 2 will be used to define AND Definition Union: M 1 M 2 {µ µ M 1 or µ M 2 } mappings in M 1 plus mappings in M 2 (the usual set union) will be used to define UNION M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 13 / 34
14 Sets of mappings and operations Definition Difference: M 1 M 2 {µ M 1 for all µ M 2, µ and µ are not compatibles} mappings in M 1 that cannot be extended with mappings in M 2 Definition Left outer join: M 1 M 2 = (M 1 M 2 ) (M 1 M 2 ) extension of mappings in M 1 with compatible mappings in M 2 plus the mappings in M 1 that cannot be extended. will be used to define OPT M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 14 / 34
15 Semantics of general graph patterns Definition Given a graph G the evaluation of a pattern is recursively defined [[(P 1 AND P 2 )]] G = [[P 1 ]] G [[P 2 ]] G [[(P 1 UNION P 2 )]] G = [[P 1 ]] G [[P 2 ]] G [[(P 1 OPT P 2 )]] G = [[P 1 ]] G [[P 2 ]] G the base case is the evaluation of a BGP. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 15 / 34
16 Example (AND) G : (R 1, name, john) (R 2, name, paul) (R 3, name, ringo) (R 1, , J@ed.ex) (R 3, , R@ed.ex) (R 3, webpage, [[{(?X, name,?n)} AND {(?X, ,?e)}]] G [[{(?X, name,?n)}]] G?X?N µ 1 R 1 john µ 2 R 2 paul µ 3 R 3 ringo [[{(?Y, ,?e)}]] G?X?E µ 4 R 1 J@ed.ex µ 5 R 3 R@ed.ex?X?N?E µ 1 µ 4 R 1 john J@ed.ex µ 3 µ 5 R 3 ringo R@ed.ex M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 16 / 34
17 Example (OPT) G : (R 1, name, john) (R 2, name, paul) (R 3, name, ringo) (R 1, , J@ed.ex) (R 3, , R@ed.ex) (R 3, webpage, [[{(?X, name,?n)} OPT {(?X, ,?e)}]] G [[{(?X, name,?n)}]] G?X?N µ 1 R 1 john µ 2 R 2 paul µ 3 R 3 ringo [[{(?X, ,?e)}]] G?X?E µ 4 R 1 J@ed.ex µ 5 R 3 R@ed.ex?X?N?E µ 1 µ 4 R 1 john J@ed.ex µ 3 µ 5 R 3 ringo R@ed.ex µ 2 R 2 paul M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 17 / 34
18 Example (UNION) G : (R 1, name, john) (R 2, name, paul) (R 3, name, ringo) (R 1, , J@ed.ex) (R 3, , R@ed.ex) (R 3, webpage, [[{(?X, ,?info)} UNION {(?X, webpage,?info)}]] G [[{(?X, ,?info)}]] G [[{(?X, webpage,?info)}]] G?X?Info µ 1 R 1 J@ed.ex µ 2 R 3 R@ed.ex?X?Info µ 3 R 3 µ 1 R 1 J@ed.ex µ 2 R 3 R@ed.ex µ 3 R 3 M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 18 / 34
19 Boolean filter expressions (value constraints) In filter expressions we consider the equality = among variables and RDF terms a unary predicate bound boolean combinations (,, ) A mapping µ satisfies?x = c if µ(?x) = c?x =?Y if µ(?x) = µ(?y ) bound(?x) if µ is defined in?x, i.e.?x dom(µ) M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 19 / 34
20 Satisfaction of value constraints If P is a graph pattern and R is a value constraint then (P FILTER R) is also a graph pattern. Definition Given a graph G [[(P FILTER R)]] G = {µ [[P]] G µ satisfies R} i.e. mappings in the evaluation of P that satisfy R. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 20 / 34
21 Example (FILTER) G : (R 1, name, john) (R 2, name, paul) (R 3, name, ringo) (R 1, , J@ed.ex) (R 3, , R@ed.ex) (R 3, webpage, [[({(?X, name,?n)} FILTER (?N = ringo?n = paul))]] G?X?N µ 1 R 1 john µ 2 R 2 paul µ 3 R 3 ringo?n = ringo?n = paul?x?n µ 2 R 2 paul µ 3 R 3 ringo M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 21 / 34
22 Example (FILTER) G : (R 1, name, john) (R 2, name, paul) (R 3, name, ringo) (R 1, , J@ed.ex) (R 3, , R@ed.ex) (R 3, webpage, [[(({(?X, name,?n)} OPT {(?X, ,?e)}) FILTER bound(?e))]] G?X?N?E µ 1 µ 4 R 1 john J@ed.ex µ 3 µ 5 R 3 ringo R@ed.ex µ 2 R 2 paul bound(?e)?x?n µ 2 R 2 paul M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 22 / 34
23 FILTER: differences with the official specification We restrict to the case in which all variables in R are mentioned in P. This restriction is not imposed in the official specification by W3C. The semantics without the restriction does not modify the expressive power of the language. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 23 / 34
24 SPARQL Datasets One of the interesting features of SPARQL is that a query may retrieve data from different sources. Definition A SPARQL dataset is a set D = {G 0, u 1,G 1, u 2,G 2,..., u n,g n } G 0 is the default graph, u i,g i are named graphs name(d) = {u 1,u 2,...,u n } d D is a function such d D (u i ) = G i. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 24 / 34
25 The GRAPH operator if u is an IRI,?X is a variable and P is a graph pattern, then (u GRAPH P) is a graph pattern (?X GRAPH P) is a graph pattern GRAPH will permit us to dynamically change the graph against which our pattern is evaluated. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 25 / 34
26 Semantics of GRAPH Definition Given a dataset D and a graph pattern P [[(u GRAPH P)]] G = [[P]] dd (u) ( [[(?X GRAPH P)]] G = [[P]] dd (u) u name(d) ) {{?X u}} Definition The evaluation of a general pattern P against a dataset D, denoted by [[P]] D, is the set [[P]] G0 where G 0 is the default graph in D. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 26 / 34
27 Example (GRAPH) G 0 : tb, G 1 : trs, G 2 : D (R 1, name, john) (R 1, , J@ed.ex) (R 2, name, paul) (R 4, name, mick) (R 5, name, keith) (R 4, , M@ed.ex) (R 5, , K@ed.ex) [[( trs GRAPH {(?X, name,?n)})]] D [[( trs GRAPH {(?X, name,?n)})]] G0 [[{(?X, name,?n)}]] G2?X?N µ 1 R 4 mick µ 2 R 5 keith M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 27 / 34
28 Example (GRAPH) G 0 : tb, G 1 : trs, G 2 : D (R 1, name, john) (R 1, , J@ed.ex) (R 2, name, paul) (R 4, name, mick) (R 5, name, keith) (R 4, , M@ed.ex) (R 5, , K@ed.ex)?X?N µ 1 R 1 john µ 2 R 2 paul [[(?G GRAPH {(?X, name,?n)})]] D [[{(?X, name,?n)}]] G1 [[{(?X, name,?n)}]] G2 {{?G tb}}?g?x?n tb R 1 john tb R 2 paul trs R 4 mick trs R 5 keith {{?G tb}} {{?G trs}}?x?n µ 3 R 4 mick µ 4 R 5 keith {{?G trs}} M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 28 / 34
29 SELECT Up to this point we have concentrated in the body of a SPARQL query, i.e. in the graph pattern matching expression. A query can also process the values of the variables. The most simple processing operation is the selection of some variables appearing in the query. Definition A SELECT query is a tuple (W,P) where P is a graph pattern and W is a set of variable. The answer of a SELECT query against a dataset D is {µ W µ [[P]] D } where µ W is the restriction of µ to domain W. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 29 / 34
30 CONSTRUCT A query can also output an RDF graph. The construction of the output graph is based on a template. A template is a set of triple patterns possibly with bnodes. Example T 1 = {(?X, name,?y ), (?X, info,?i), (?X, addr, B)} with B a bnode Definition A CONSTRUCT query is a tuple (T,P) where P is a graph pattern and T is a template. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 30 / 34
31 CONSTRUCT: Semantics Definition The answer of a CONSTRUCT query (T,P) against a dataset D is obtained by for every µ [[P]] D create a template T µ with fresh bnodes take the union of µ(t µ ) for every µ [[P]] D discard the not valid RDF triples some variables have not been instantiated. bnodes in predicate positions M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 31 / 34
32 Blank nodes in graph patterns We allow now bnodes in triple patterns. Bnodes act as existentials scoped to the basic graph pattern. Definition The evaluation of the BGP P with bnodes over the graph G denoted [[P]] G, is the set of all mappings µ such that: dom(µ) is exactly the set of variables occurring in P, there exists a function θ from bnodes of P to G such that µ(θ(p)) G. A natural extension of BGPs without bnodes. The algebra remains the same. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 32 / 34
33 Bag/Multiset semantics In a bag, a mapping can have cardinality greater than one. Every mapping µ in a bag M is annotated with an integer c M (µ) that represents its cardinality (c M (µ) = 0 if µ / M). Operations between sets of mappings can be extended to bags maintaining duplicates: Definition µ M = M 1 M 2, c M (µ) = c M1 (µ 1 ) c M2 (µ 2 ), µ=µ 1 µ 2 µ M = M 1 M 2, c M (µ) = c M1 (µ) + c M2 (µ), µ M = M 1 M 2, c M (µ) = c M1 (µ). Intuition: we simply do not discard duplicates. M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 33 / 34
34 References R. Cyganiak, A Relational Algebra for SPARQL. Tech Report HP Laboratories, HPL E. Prud hommeaux, A. Seaborne, SPARQL Query Language for RDF. W3C Working Draft, J. Pérez, M. Arenas, C. Gutierrez, Semantics and Complexity of SPARQL. In Int. Semantic Web Conference J. Pérez, M. Arenas, C. Gutierrez, Semantics of SPARQL. Tech Report Universidad de Chile 2006, TR/DCC M. Arenas, C. Gutierrez, J. Pérez SPARQL Formalization 34 / 34
arxiv:cs/ v1 [cs.db] 26 May 2006
Semantics and Complexity of SPARQL Jorge Pérez 1, Marcelo Arenas 2, and Claudio Gutierrez 3 arxiv:cs/0605124v1 [cs.db] 26 May 2006 1 Universidad de Talca 2 Pontificia Universidad Católica de Chile 3 Universidad
More informationThe Expressive Power of SPARQL
The Expressive Power of SPARQL Renzo Angles and Claudio Gutierrez Technical Report TR/DCC-2008-5 Department of Computer Science, Universidad de Chile {rangles,cgutierr}@dcc.uchile.cl Abstract. This paper
More informationSPARQL Extensions and Outlook
SPARQL Extensions and Outlook Axel Polleres 1 1 DERI Galway, National University of Ireland, Galway axel.polleres@deri.org European Semantic Web Conference 2007 A. Polleres SPARQL Extensions and Outlook
More informationIncomplete Information in RDF
Incomplete Information in RDF Charalampos Nikolaou and Manolis Koubarakis charnik@di.uoa.gr koubarak@di.uoa.gr Department of Informatics and Telecommunications National and Kapodistrian University of Athens
More informationThe Expressive Power of SPARQL
The Expressive Power of SPARQL Renzo Angles and Claudio Gutierrez Technical Report TR/DCC-2008-5 Department of Computer Science, Universidad de Chile {rangles,cgutierr}@dcc.uchile.cl Abstract. This paper
More informationDesigning a Query Language for RDF: Marrying Open and Closed Worlds
Designing a Query Language for RDF: Marrying Open and Closed Worlds Marcelo Arenas Pontificia Universidad Católica de Chile & Center for Semantic Web Research marenas@ing.puc.cl Martín Ugarte Université
More informationnsparql: A Navigational Language for RDF 1
nsparql: A Navigational Language for RDF 1 Jorge Pérez a,c, Marcelo Arenas a,c, Claudio Gutierrez b,c a Department of Computer Science, Pontificia Universidad Católica de Chile b Department of Computer
More informationNested Constructs vs. Sub-Selects in SPARQL
Nested Constructs vs. Sub-Selects in SPARQL Axel Polleres 1, Juan Reutter 2, and Egor V. Kostylev 3 1 Vienna University of Economics and Business, AT 2 Pontificia Universidad Católica de Chile and Center
More informationOn the Semantics of SPARQL Queries with Optional Matching under Entailment Regimes
On the Semantics of SPARQL Queries with Optional Matching under Entailment Regimes Egor V. Kostylev and Bernardo Cuenca Grau Department of Computer Science, University of Oxford Abstract. We study the
More informationThe Expressive Power of SPARQL
The Expressive Power of SPARQL Renzo Angles and Claudio Gutierrez Department of Computer Science, Universidad de Chile {rangles,cgutierr}@dcc.uchile.cl Abstract. This paper studies the expressive power
More informationDesigning a Query Language for RDF: Marrying Open and Closed Worlds
Designing a Query Language for RDF: Marrying Open and Closed Worlds MARCELO ARENAS, Pontificia Universidad Católica de Chile & Center for Semantic Web Research MARTIN UGARTE, Université Libre de Bruxelles
More informationQuerying for Provenance, Trust, Uncertainty and other Meta Knowledge in RDF 1
Querying for Provenance, Trust, Uncertainty and other Meta Knowledge in RDF 1 Renata Dividino a, Sergej Sizov a, Steffen Staab a, Bernhard Schueler a a ISWeb - Information Systems and Semantic Web University
More informationSemantic Reasoning with SPARQL in Heterogeneous Multi-Context Systems
Semantic Reasoning with SPARQL in Heterogeneous Multi-Context Systems Peter Schüller and Antonius Weinzierl Institut für Informationssysteme, Technische Universität Wien Favoritenstraße 9-11, A-1040 Vienna,
More informationIncremental SPARQL Evaluation for Query Answering on Linked Data
Incremental SPARQL Evaluation for Query Answering on Linked Data Florian Schmedding Department of Computer Science Albert Ludwig University of Freiburg, ermany schmeddi@informatik.uni-freiburg.de Abstract.
More informationRepresenting and Querying Validity Time in RDF and OWL: A Logic-Based Approach
Representing and Querying Validity Time in RDF and OWL: A Logic-Based Approach Boris Motik a a Oxford University Computing Laboratory, Oxford, UK Abstract RDF(S) and OWL 2 can currently represent only
More informationSPARQL Algebra Sebastian Rudolph
FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES SPARQL Algebra Sebastian Rudolph The SPARQL Query Language TU Dresden Foundations of Semantic Web Technologies slide 2 of 56 The SPARQL Query Language TU Dresden
More informationMinimal Deductive Systems for RDF
Minimal Deductive Systems for RDF Sergio Muñoz, Jorge Pérez, Claudio Gutierrez Department of Computer Science Universidad de Chile Pontificia Universidad Católica de Chile Center for Web Research http://www.cwr.cl
More informationExchanging More than Complete Data
Exchanging More than Complete Data Marcelo Arenas Jorge Pérez Juan Reutter PUC Chile, Universidad de Chile, University of Edinburgh Father Andy Bob Bob Danny Danny Eddie Mother Carrie Bob Father(x, y)
More informationPreserving Information Content in RDF using Bounded Homomorphisms
Preserving Information Content in RDF using Bounded Homomorphisms (Extended version) Audun Stolpe and Martin G. Skjæveland {audus,martige}@ifi.uio.no Department of Informatics, University of Oslo, Norway
More informationFoundations of SPARQL Query Optimization
Foundations of SPARQL Query Optimization Michael Schmidt Michael Meier Georg Lausen University of Freiburg Institute for Computer Science Georges-Köhler-Allee, Building 051 79110 Freiburg i. Br., Germany
More informationUnit 4: SPARQL1.0 in Detail & SPARQL s formal semantics. Axel Polleres. Siemens AG Österreich All rights reserved.
Unit 4: SPARQL1.0 in Detail & SPARQL s formal semantics. Siemens AG Österreich. 2013. All rights reserved. Recall from Lecture 1/Assignment 1 Lots of RDF data already published, e.g. about Tim Berners-Lee
More informationRDFLog: It s like Datalog for RDF
RDFLog: It s like Datalog for RDF François Bry 1, Tim Furche 1, Clemens Ley 2, Benedikt Linse 1, and Bruno Marnette 2 1 Institute for Informatics, University of Munich, Oettingenstraße 67, D-80538 München,
More informationOn the Satisfiability Problem of Patterns in SPARQL 1.1
On the Satisfiability Problem of Patterns in SPARQL 1.1 Xiaowang Zhang 1,5 and Jan Van den Bussche 3 and Kewen Wang 2,4 and Zhe Wang 4 1 School of Computer Science and Technology, Tianjin University, Tianjin,
More informationProvenance Semirings. Todd Green Grigoris Karvounarakis Val Tannen. presented by Clemens Ley
Provenance Semirings Todd Green Grigoris Karvounarakis Val Tannen presented by Clemens Ley place of origin Provenance Semirings Todd Green Grigoris Karvounarakis Val Tannen presented by Clemens Ley place
More informationQuery-based Linked Data Anonymization
Query-based Linked Data Anonymization Companion appendix Remy Delanaux 1, Angela Bonifati 1, Marie-Christine Rousset 2,3, and Romuald Thion 1 1 Université Lyon 1, LIRIS CNRS, 69100 Villeurbanne, France
More informationPreliminaries. Introduction to EF-games. Inexpressivity results for first-order logic. Normal forms for first-order logic
Introduction to EF-games Inexpressivity results for first-order logic Normal forms for first-order logic Algorithms and complexity for specific classes of structures General complexity bounds Preliminaries
More informationData Dependencies in the Presence of Difference
Data Dependencies in the Presence of Difference Tsinghua University sxsong@tsinghua.edu.cn Outline Introduction Application Foundation Discovery Conclusion and Future Work Data Dependencies in the Presence
More informationOWL Basics. Technologies for the Semantic Web. Building a Semantic Web. Ontology
Technologies for the Semantic Web OWL Basics COMP60421 Sean Bechhofer University of Manchester sean.bechhofer@manchester.ac.uk Metadata Resources are marked-up with descriptions of their content. No good
More informationOrdering, Indexing, and Searching Semantic Data: A Terminology Aware Index Structure
Ordering, Indexing, and Searching Semantic Data: A Terminology Aware Index Structure by Jeffrey Pound A thesis presented to the University of Waterloo in fulfillment of the thesis requirement for the degree
More information1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation
Knowledge Bases and Databases Part 1: First-Order Queries Diego Calvanese Faculty of Computer Science Master of Science in Computer Science A.Y. 2007/2008 Overview of Part 1: First-order queries 1 First-order
More informationSemantic Web SPARQL. Gerd Gröner, Matthias Thimm. July 16,
Semantic Web SPARQL Gerd Gröner, Matthias Thimm {groener,thimm}@uni-koblenz.de Institute for Web Science and Technologies (WeST) University of Koblenz-Landau July 16, 2013 Gerd Gröner, Matthias Thimm Semantic
More informationOnline Appendix to The Recovery of a Schema Mapping: Bringing Exchanged Data Back
Online Appendix to The Recovery of a Schema Mapping: Bringing Exchanged Data Back MARCELO ARENAS and JORGE PÉREZ Pontificia Universidad Católica de Chile and CRISTIAN RIVEROS R&M Tech Ingeniería y Servicios
More informationQuestion Answering on Statistical Linked Data
Question Answering on Statistical Linked Data AKSW Colloquium paper presentation Konrad Höffner Universität Leipzig, AKSW/MOLE, PhD Student 2015-2-16 1 / 18 1 2 3 2 / 18 Motivation Statistical Linked Data
More information7 RC Simulates RA. Lemma: For every RA expression E(A 1... A k ) there exists a DRC formula F with F V (F ) = {A 1,..., A k } and
7 RC Simulates RA. We now show that DRC (and hence TRC) is at least as expressive as RA. That is, given an RA expression E that mentions at most C, there is an equivalent DRC expression E that mentions
More informationSPARQL Rewriting for Query Mediation over Mapped Ontologies
SPARQL Rewriting for Query Mediation over Mapped Ontologies Konstantinos Makris*, Nektarios Gioldasis*, Nikos Bikakis**, Stavros Christodoulakis* *Laboratory of Distributed Multimedia Information Systems
More informationRelational Algebra & Calculus
Relational Algebra & Calculus Yanlei Diao UMass Amherst Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 Outline v Conceptual Design: ER model v Logical Design: ER to relational model v Querying and
More informationEfficient OLAP Operations For RDF Analytics
Efficient OLAP Operations For RDF Analytics Elham Akbari-Azirani, François Goasdoué, Ioana Manolescu, Alexandra Roatis To cite this version: Elham Akbari-Azirani, François Goasdoué, Ioana Manolescu, Alexandra
More informationI N F S Y S R E S E A R C H R E P O R T A QUERY MODEL TO CAPTURE EVENT PATTERN MATCHING IN RDF STREAM PROCESSING QUERY LANGUAGES
I N F S Y S R E S E A R C H R E P O R T INSTITUT FÜR INFORMATIONSSYSTEME ARBEITSBEREICH WISSENSBASIERTE SYSTEME A QUERY MODEL TO CAPTURE EVENT PATTERN MATCHING IN RDF STREAM PROCESSING QUERY LANGUAGES
More informationFirst-order logic Syntax and semantics
1 / 43 First-order logic Syntax and semantics Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 43 1 Motivation Why more than propositional logic? Intuition 2 Syntax Terms Formulas
More informationINTRODUCTION TO RELATIONAL DATABASE SYSTEMS
INTRODUCTION TO RELATIONAL DATABASE SYSTEMS DATENBANKSYSTEME 1 (INF 3131) Torsten Grust Universität Tübingen Winter 2017/18 1 THE RELATIONAL ALGEBRA The Relational Algebra (RA) is a query language for
More informationLecture Notes: Axiomatic Semantics and Hoare-style Verification
Lecture Notes: Axiomatic Semantics and Hoare-style Verification 17-355/17-665/17-819O: Program Analysis (Spring 2018) Claire Le Goues and Jonathan Aldrich clegoues@cs.cmu.edu, aldrich@cs.cmu.edu It has
More informationAbstracting real-valued parameters in parameterised boolean equation systems
Department of Mathematics and Computer Science Formal System Analysis Research Group Abstracting real-valued parameters in parameterised boolean equation systems Master Thesis M. Laveaux Supervisor: dr.
More informationRDF and Logic: Reasoning and Extension
RDF and Logic: Reasoning and Extension Jos de Bruijn Faculty of Computer Science, Free University of Bozen-Bolzano, Italy debruijn@inf.unibz.it Stijn Heymans Digital Enterprise Research Institute (DERI),
More informationAnnotation algebras for RDFS
University of Edinburgh Semantic Web in Provenance Management, 2010 RDF definition U a set of RDF URI references (s, p, o) U U U an RDF triple s subject p predicate o object A finite set of triples an
More informationAdvanced DB CHAPTER 5 DATALOG
Advanced DB CHAPTER 5 DATALOG Datalog Basic Structure Syntax of Datalog Rules Semantics of Nonrecursive Datalog Safety Relational Operations in Datalog Recursion in Datalog The Power of Recursion A More
More informationEnhancing the Updatability of Projective Views
Enhancing the Updatability of Projective Views (Extended Abstract) Paolo Guagliardo 1, Reinhard Pichler 2, and Emanuel Sallinger 2 1 KRDB Research Centre, Free University of Bozen-Bolzano 2 Vienna University
More informationEquational Logic. Chapter Syntax Terms and Term Algebras
Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from
More informationarxiv: v1 [cs.db] 22 Mar 2016 ABSTRACT
Efficient Approximation of Well-Designed SPARQL Queries arxiv:163.6732v1 [cs.db] 22 Mar 216 ABSRAC Zhenyu Song szyhw@tju.edu.cn Xin Wang wangx@tju.edu.cn Zhiyong Feng zyfeng@tju.edu.cn Guozheng Rao rgz@tju.edu.cn
More informationDeclarative Programming for Agent Applications
Noname manuscript No. (will be inserted by the editor) Declarative Programming for Agent Applications J.W. Lloyd K.S. Ng Received: date / Accepted: date Abstract This paper introduces the execution model
More informationModal Logics. Most applications of modal logic require a refined version of basic modal logic.
Modal Logics Most applications of modal logic require a refined version of basic modal logic. Definition. A set L of formulas of basic modal logic is called a (normal) modal logic if the following closure
More informationDistributed Query Processing in the Presence of Blank Nodes
Semantic Web 0 (0) 1 21 1 IOS Press Distributed Query Processing in the Presence of Blank Nodes Editor(s): Axel Polleres, Wirtschaftsuniversität Wien, Austria Solicited review(s): Aidan Hogan, Universidad
More informationFlexible Querying for SPARQL
Flexible Querying for SPARQL Andrea Calì 1,2, Riccardo Frosini 1, Alexandra Poulovassilis 1, Peter T. Wood 1 1 Dept. of Computer Science and Inf. Systems, Birkbeck University of London, UK 2 Oxford-Man
More information03 Review of First-Order Logic
CAS 734 Winter 2014 03 Review of First-Order Logic William M. Farmer Department of Computing and Software McMaster University 18 January 2014 What is First-Order Logic? First-order logic is the study of
More informationFirst-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms
First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO
More informationRelational Algebra and Calculus
Topics Relational Algebra and Calculus Linda Wu Formal query languages Preliminaries Relational algebra Relational calculus Expressive power of algebra and calculus (CMPT 354 2004-2) Chapter 4 CMPT 354
More informationFirst Order Logic (FOL) 1 znj/dm2017
First Order Logic (FOL) 1 http://lcs.ios.ac.cn/ znj/dm2017 Naijun Zhan March 19, 2017 1 Special thanks to Profs Hanpin Wang (PKU) and Lijun Zhang (ISCAS) for their courtesy of the slides on this course.
More informationApproximation and Relaxation of Semantic Web Path Queries
*Manuscript Click here to view linked References Approximation and Relaxation of Semantic Web Path Queries Alexandra Poulovassilis a, Petra Selmer a, Peter T. Wood a a Knowledge Lab, Department of Computer
More informationEquivalence of SQL Queries In Presence of Embedded Dependencies
Equivalence of SQL Queries In Presence of Embedded Dependencies Rada Chirkova Department of Computer Science NC State University, Raleigh, NC 27695, USA chirkova@csc.ncsu.edu Michael R. Genesereth Department
More informationTranslating XML Web Data into Ontologies
Translating XML Web Data into Ontologies Yuan An and John Mylopoulos University of Toronto, Canada {yuana,jm}@cs.toronto.edu Abstract. Translating XML data into ontologies is the problem of finding an
More informationA Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation
Dichotomy for Non-Repeating Queries with Negation Queries with Negation in in Probabilistic Databases Robert Dan Olteanu Fink and Dan Olteanu Joint work with Robert Fink Uncertainty in Computation Simons
More informationOWL Semantics. COMP60421 Sean Bechhofer University of Manchester
OWL Semantics COMP60421 Sean Bechhofer University of Manchester sean.bechhofer@manchester.ac.uk 1 Technologies for the Semantic Web Metadata Resources are marked-up with descriptions of their content.
More informationThe Lambek-Grishin calculus for unary connectives
The Lambek-Grishin calculus for unary connectives Anna Chernilovskaya Utrecht Institute of Linguistics OTS, Utrecht University, the Netherlands anna.chernilovskaya@let.uu.nl Introduction In traditional
More informationDistributed query processing in the presence of blank nodes.
Undefined 1 (2009) 1 5 1 IOS Press Distributed query processing in the presence of blank nodes. Audun Stolpe, Jonas Halvorsen, Norwegian Defence Research Establishment (FFI), Postboks 25, 2027 Kjeller,
More informationExistential Second-Order Logic and Modal Logic with Quantified Accessibility Relations
Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations preprint Lauri Hella University of Tampere Antti Kuusisto University of Bremen Abstract This article investigates
More informationSPARQL Query Containment under RDFS Entailment Regime
SPARQL Query Containment under RDFS Entailment Regime Melisachew Wudage Chekol 1, Jérôme Euzenat 1, Pierre Genevès 2, and Nabil Layaïda 1 1 INRIA and LIG 2 CNRS {melisachew.chekol firstname.lastname}@inria.fr
More informationA Logic Primer. Stavros Tripakis University of California, Berkeley. Stavros Tripakis (UC Berkeley) EE 144/244, Fall 2014 A Logic Primer 1 / 35
EE 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2014 A Logic Primer Stavros Tripakis University of California, Berkeley Stavros Tripakis (UC Berkeley) EE 144/244,
More informationSEMANTICS AND COMPLEXITY OF SPARQL 1.1 PROPERTY PATHS
PONTIFICIA UNIVERSIDAD CATOLICA DE CHILE SCHOOL OF ENINEERIN SEMANTICS AND COMPLEXITY OF SPARQL 1.1 PROPERTY PATHS SEBASTIÁN CONCA Thesis submitted to the Office of Research and raduate Studies in partial
More informationGeoQuery Tool to Pose Spatial Queries over the Web
GeoQuery Tool to Pose Spatial Queries over the Web http://geoquery.cs.jmu.edu/geoquery/ Nancy Wiegand wiegand@cs.wisc.edu Space Science and Engineering Center University of Wisconsin Madison Geospatial
More informationFirst-Order Logic. Chapter Overview Syntax
Chapter 10 First-Order Logic 10.1 Overview First-Order Logic is the calculus one usually has in mind when using the word logic. It is expressive enough for all of mathematics, except for those concepts
More informationBeyond First-Order Logic
Beyond First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) Beyond First-Order Logic MFES 2008/09 1 / 37 FOL
More informationDatabases 2011 The Relational Algebra
Databases 2011 Christian S. Jensen Computer Science, Aarhus University What is an Algebra? An algebra consists of values operators rules Closure: operations yield values Examples integers with +,, sets
More informationRepresentability in DL-Lite R Knowledge Base Exchange
epresentability in DL-Lite Knowledge Base Exchange M. Arenas 1, E. Botoeva 2, D. Calvanese 2, V. yzhikov 2, and E. Sherkhonov 3 1 Dept. of Computer Science, PUC Chile marenas@ing.puc.cl 2 KDB esearch Centre,
More informationA Logic Primer. Stavros Tripakis University of California, Berkeley
EE 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2015 A Logic Primer Stavros Tripakis University of California, Berkeley Stavros Tripakis (UC Berkeley) EE 144/244,
More informationINTEGRITY CONSTRAINTS FOR THE SEMANTIC WEB: AN OWL 2 DL EXTENSION
INTEGRITY CONSTRAINTS FOR THE SEMANTIC WEB: AN OWL 2 DL EXTENSION By Jiao Tao A Thesis Submitted to the Graduate Faculty of Rensselaer Polytechnic Institute in Partial Fulfillment of the Requirements for
More informationClassical First-Order Logic
Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2008/09
More informationOn Compensation Primitives as Adaptable Processes
On Compensation Primitives as Adaptable Processes Jovana Dedeić University of Novi Sad Jovanka Pantović (Novi Sad) and Jorge A. Pérez (Groningen) LAP 2015 - Dubrovnik, September 24, 2015 Outline 1 Context
More informationStructured Descriptions & Tradeoff Between Expressiveness and Tractability
5. Structured Descriptions & Tradeoff Between Expressiveness and Tractability Outline Review Expressiveness & Tractability Tradeoff Modern Description Logics Object Oriented Representations Key Representation
More informationLecture 3: Semantics of Propositional Logic
Lecture 3: Semantics of Propositional Logic 1 Semantics of Propositional Logic Every language has two aspects: syntax and semantics. While syntax deals with the form or structure of the language, it is
More informationSemantics and Validation of Recursive SHACL [Extended Version]
KRDB RESEARCH CENTRE KNOWLEDGE REPRESENTATION MEETS DATABASES Faculty of Computer Science, Free University of Bozen-Bolzano, Piazza Domenicani 3, 39100 Bolzano, Italy Tel: +39 04710 16000, fax: +39 04710
More informationPlan of the lecture. G53RDB: Theory of Relational Databases Lecture 2. More operations: renaming. Previous lecture. Renaming.
Plan of the lecture G53RDB: Theory of Relational Lecture 2 Natasha Alechina chool of Computer cience & IT nza@cs.nott.ac.uk Renaming Joins Definability of intersection Division ome properties of relational
More informationCS632 Notes on Relational Query Languages I
CS632 Notes on Relational Query Languages I A. Demers 6 Feb 2003 1 Introduction Here we define relations, and introduce our notational conventions, which are taken almost directly from [AD93]. We begin
More informationAdding ternary complex roles to ALCRP(D)
Adding ternary complex roles to ALCRP(D) A.Kaplunova, V. Haarslev, R.Möller University of Hamburg, Computer Science Department Vogt-Kölln-Str. 30, 22527 Hamburg, Germany Abstract The goal of this paper
More informationOutline. A recursive function follows the structure of inductively-defined data.
Outline A recursive function follows the structure of inductively-defined data. With lists as our example, we shall study 1. inductive definitions (to specify data) 2. recursive functions (to process data)
More informationExpressive number restrictions in Description Logics
Expressive number restrictions in Description Logics Franz Baader and Ulrike Sattler August 12, 1999 Abstract Number restrictions are concept constructors that are available in almost all implemented Description
More informationA NOTE ON COMPOSITIONALITY IN THE FIRST ORDER LANGUAGE
Janusz Maciaszek Luis Villegas-Forero A NOTE ON COMPOSITIONALITY IN THE FIRST ORDER LANGUAGE Abstract The main objective of this paper is to present the syntax and semantic of First Order Language in a
More informationOn the satisfiability problem for a 4-level quantified syllogistic and some applications to modal logic
On the satisfiability problem for a 4-level quantified syllogistic and some applications to modal logic Domenico Cantone and Marianna Nicolosi Asmundo Dipartimento di Matematica e Informatica Università
More informationRelations to first order logic
An Introduction to Description Logic IV Relations to first order logic Marco Cerami Palacký University in Olomouc Department of Computer Science Olomouc, Czech Republic Olomouc, November 6 th 2014 Marco
More informationOutline. Overview. Syntax Semantics. Introduction Hilbert Calculus Natural Deduction. 1 Introduction. 2 Language: Syntax and Semantics
Introduction Arnd Poetzsch-Heffter Software Technology Group Fachbereich Informatik Technische Universität Kaiserslautern Sommersemester 2010 Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich
More informationLecture 2: Syntax. January 24, 2018
Lecture 2: Syntax January 24, 2018 We now review the basic definitions of first-order logic in more detail. Recall that a language consists of a collection of symbols {P i }, each of which has some specified
More informationCOMP 409: Logic Homework 5
COMP 409: Logic Homework 5 Note: The pages below refer to the text from the book by Enderton. 1. Exercises 1-6 on p. 78. 1. Translate into this language the English sentences listed below. If the English
More informationLightweight Description Logics: DL-Lite A and EL ++
Lightweight Description Logics: DL-Lite A and EL ++ Elena Botoeva 1 KRDB Research Centre Free University of Bozen-Bolzano January 13, 2011 Departamento de Ciencias de la Computación Universidad de Chile,
More informationEgGS - The Energy Game Strategizer
Aalborg University Distributed and Embedded Systems Semantics and Verification EgGS - The Energy Game Strategizer Master Thesis Authors: Mads V. Carlsen Rasmus S. Jacobsen Supervisors: Kim G. Larsen Erik
More informationCategories, Proofs and Programs
Categories, Proofs and Programs Samson Abramsky and Nikos Tzevelekos Lecture 4: Curry-Howard Correspondence and Cartesian Closed Categories In A Nutshell Logic Computation 555555555555555555 5 Categories
More informationFinite Universes. L is a fixed-length language if it has length n for some
Finite Universes Finite Universes When the universe is finite (e.g., the interval 0, 2 1 ), all objects can be encoded by words of the same length. A language L has length n 0 if L =, or every word of
More informationAlgebraic Trace Theory
Algebraic Trace Theory EE249 Roberto Passerone Material from: Jerry R. Burch, Trace Theory for Automatic Verification of Real-Time Concurrent Systems, PhD thesis, CMU, August 1992 October 21, 2002 ee249
More informationSyntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.
First-Order Logic Syntax The alphabet of a first-order language is organised into the following categories. Logical connectives:,,,,, and. Auxiliary symbols:.,,, ( and ). Variables: we assume a countable
More informationTopic-based Selectivity Estimation for Hybrid Queries over RDF Graphs Technical Report
Topic-based Selectivity Estimation for Hybrid Queries over RDF Graphs Technical Report Andreas Wagner AIFB, KIT Karlsruhe, Germany a.wagner@kit.edu Veli Bicer IBM Research, Smarter Cities Technology Centre
More informationKnowledge Base Exchange: The Case of OWL 2 QL
Knowledge Base Exchange: The Case of OWL 2 QL Marcelo Arenas Pontificia Universidad Católica de Chile, Chile Elena Botoeva, Diego Calvanese, Vladislav Ryzhikov Free University of Bozen-Bolzano, Italy Abstract
More informationHandbook of Logic and Proof Techniques for Computer Science
Steven G. Krantz Handbook of Logic and Proof Techniques for Computer Science With 16 Figures BIRKHAUSER SPRINGER BOSTON * NEW YORK Preface xvii 1 Notation and First-Order Logic 1 1.1 The Use of Connectives
More informationCS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:
x NOT ~x x y AND x /\ y x y OR x \/ y Figure 1: Types of gates in a digital circuit. CS2742 midterm test 2 study sheet Boolean circuits: Boolean circuits is a generalization of Boolean formulas in which
More information