regular xpath algebra logic and automata
play

Regular XPath: Algebra, Logic and Automata Balder ten Cate Szeged, - PowerPoint PPT Presentation

Regular XPath: Algebra, Logic and Automata Balder ten Cate Szeged, 1 October 2006 Balder ten Cate Regular XPath: Algebra, Logic and Automata (1/19) The topic of this talk This talk is about languages for describing binary relations in trees.


  1. Regular XPath: Algebra, Logic and Automata Balder ten Cate Szeged, 1 October 2006 Balder ten Cate Regular XPath: Algebra, Logic and Automata (1/19)

  2. The topic of this talk This talk is about languages for describing binary relations in trees. Binary relations means that Instead of sentences, we use formulas with two free variables φ ( x , y ) Our tree walking automata can start and finish their walk anywhere in the tree, not neccessarily at the root. The motivation comes from XML Specifically, we are interested in the XML path language Regular XPath. We would like to characterize this language in terms of logic and/or automata. Balder ten Cate Regular XPath: Algebra, Logic and Automata (2/19)

  3. The topic of this talk This talk is about languages for describing binary relations in trees. Binary relations means that Instead of sentences, we use formulas with two free variables φ ( x , y ) Our tree walking automata can start and finish their walk anywhere in the tree, not neccessarily at the root. The motivation comes from XML Specifically, we are interested in the XML path language Regular XPath. We would like to characterize this language in terms of logic and/or automata. Balder ten Cate Regular XPath: Algebra, Logic and Automata (2/19)

  4. The topic of this talk This talk is about languages for describing binary relations in trees. Binary relations means that Instead of sentences, we use formulas with two free variables φ ( x , y ) Our tree walking automata can start and finish their walk anywhere in the tree, not neccessarily at the root. The motivation comes from XML Specifically, we are interested in the XML path language Regular XPath. We would like to characterize this language in terms of logic and/or automata. Balder ten Cate Regular XPath: Algebra, Logic and Automata (2/19)

  5. The topic of this talk This talk is about languages for describing binary relations in trees. Binary relations means that Instead of sentences, we use formulas with two free variables φ ( x , y ) Our tree walking automata can start and finish their walk anywhere in the tree, not neccessarily at the root. The motivation comes from XML Specifically, we are interested in the XML path language Regular XPath. We would like to characterize this language in terms of logic and/or automata. Balder ten Cate Regular XPath: Algebra, Logic and Automata (2/19)

  6. The topic of this talk This talk is about languages for describing binary relations in trees. Binary relations means that Instead of sentences, we use formulas with two free variables φ ( x , y ) Our tree walking automata can start and finish their walk anywhere in the tree, not neccessarily at the root. The motivation comes from XML Specifically, we are interested in the XML path language Regular XPath. We would like to characterize this language in terms of logic and/or automata. Balder ten Cate Regular XPath: Algebra, Logic and Automata (2/19)

  7. The topic of this talk This talk is about languages for describing binary relations in trees. Binary relations means that Instead of sentences, we use formulas with two free variables φ ( x , y ) Our tree walking automata can start and finish their walk anywhere in the tree, not neccessarily at the root. The motivation comes from XML Specifically, we are interested in the XML path language Regular XPath. We would like to characterize this language in terms of logic and/or automata. Balder ten Cate Regular XPath: Algebra, Logic and Automata (2/19)

  8. The topic of this talk This talk is about languages for describing binary relations in trees. Binary relations means that Instead of sentences, we use formulas with two free variables φ ( x , y ) Our tree walking automata can start and finish their walk anywhere in the tree, not neccessarily at the root. The motivation comes from XML Specifically, we are interested in the XML path language Regular XPath. We would like to characterize this language in terms of logic and/or automata. Balder ten Cate Regular XPath: Algebra, Logic and Automata (2/19)

  9. XML documents XML documents are (for present purposes) are finite unranked sibling-ordered node labelled trees. So, an XML document is a tuple T = ( N , R ↓ , R → , V ) where - N is the set of nodes, - R ↓ and R → are the ‘child’ and ‘next sibling’ relations, and - V : N → Σ . Balder ten Cate Regular XPath: Algebra, Logic and Automata (3/19)

  10. XML documents XML documents are (for present purposes) are finite unranked sibling-ordered node labelled trees. So, an XML document is a tuple T = ( N , R ↓ , R → , V ) where - N is the set of nodes, - R ↓ and R → are the ‘child’ and ‘next sibling’ relations, and - V : N → Σ . Balder ten Cate Regular XPath: Algebra, Logic and Automata (3/19)

  11. XML documents XML documents are (for present purposes) are finite unranked sibling-ordered node labelled trees. So, an XML document is a tuple T = ( N , R ↓ , R → , V ) where - N is the set of nodes, - R ↓ and R → are the ‘child’ and ‘next sibling’ relations, and - V : N → Σ . Balder ten Cate Regular XPath: Algebra, Logic and Automata (3/19)

  12. XML documents XML documents are (for present purposes) are finite unranked sibling-ordered node labelled trees. So, an XML document is a tuple T = ( N , R ↓ , R → , V ) where - N is the set of nodes, - R ↓ and R → are the ‘child’ and ‘next sibling’ relations, and - V : N → Σ . Balder ten Cate Regular XPath: Algebra, Logic and Automata (3/19)

  13. XML documents XML documents are (for present purposes) are finite unranked sibling-ordered node labelled trees. So, an XML document is a tuple T = ( N , R ↓ , R → , V ) where - N is the set of nodes, - R ↓ and R → are the ‘child’ and ‘next sibling’ relations, and - V : N → Σ . Balder ten Cate Regular XPath: Algebra, Logic and Automata (3/19)

  14. Syntax of Regular XPath Regular XPath has two types of expressions: path expressions α ::= ↑ | ↓ | ← | → | . | α/β | α ∪ β | α ∗ | α [ φ ] node expressions φ ::= p | ¬ φ | φ ∧ ψ | � α � Path expression define binary relations. When applied to a given “context node”, they yield a set of nodes. Node expressions define sets of nodes. We use /α as shorthand for ↑ ∗ [ ¬� ↑ � ] /α . Balder ten Cate Regular XPath: Algebra, Logic and Automata (4/19)

  15. Syntax of Regular XPath Regular XPath has two types of expressions: path expressions α ::= ↑ | ↓ | ← | → | . | α/β | α ∪ β | α ∗ | α [ φ ] node expressions φ ::= p | ¬ φ | φ ∧ ψ | � α � Path expression define binary relations. When applied to a given “context node”, they yield a set of nodes. Node expressions define sets of nodes. We use /α as shorthand for ↑ ∗ [ ¬� ↑ � ] /α . Balder ten Cate Regular XPath: Algebra, Logic and Automata (4/19)

  16. Syntax of Regular XPath Regular XPath has two types of expressions: path expressions α ::= ↑ | ↓ | ← | → | . | α/β | α ∪ β | α ∗ | α [ φ ] node expressions φ ::= p | ¬ φ | φ ∧ ψ | � α � Path expression define binary relations. When applied to a given “context node”, they yield a set of nodes. Node expressions define sets of nodes. We use /α as shorthand for ↑ ∗ [ ¬� ↑ � ] /α . Balder ten Cate Regular XPath: Algebra, Logic and Automata (4/19)

  17. Syntax of Regular XPath Regular XPath has two types of expressions: path expressions α ::= ↑ | ↓ | ← | → | . | α/β | α ∪ β | α ∗ | α [ φ ] node expressions φ ::= p | ¬ φ | φ ∧ ψ | � α � Path expression define binary relations. When applied to a given “context node”, they yield a set of nodes. Node expressions define sets of nodes. We use /α as shorthand for ↑ ∗ [ ¬� ↑ � ] /α . Balder ten Cate Regular XPath: Algebra, Logic and Automata (4/19)

  18. Syntax of Regular XPath Regular XPath has two types of expressions: path expressions α ::= ↑ | ↓ | ← | → | . | α/β | α ∪ β | α ∗ | α [ φ ] node expressions φ ::= p | ¬ φ | φ ∧ ψ | � α � Path expression define binary relations. When applied to a given “context node”, they yield a set of nodes. Node expressions define sets of nodes. We use /α as shorthand for ↑ ∗ [ ¬� ↑ � ] /α . Balder ten Cate Regular XPath: Algebra, Logic and Automata (4/19)

  19. Semantics of Regular XPath ] M [ [ α ] = R α for α ∈ {↓ , ↑ , ← , →} ] M [ [ . ] = the identity relation on N ] M and [ ] M ] M [ [ α/β ] = composition of [ [ α ] [ β ] ] M = union of [ ] M and [ ] M [ [ α ∪ β ] [ α ] [ β ] [ α ∗ ] ] M ] M [ = reflexive transitive closure of [ [ α ] ] M | m ∈ [ ] M ] M } [ [ α [ φ ]] = { ( n , m ) ∈ [ [ α ] [ φ ] ] M [ [ p ] = V ( p ) ] M = [ ] M ∩ [ ] M [ [ φ ∧ ψ ] [ φ ] [ ψ ] ] M ] M [ [ ¬ φ ] = N \ [ [ φ ] ] M = { n | ( n , m ) ∈ [ ] M ] M } [ [ � α � ] = domain of [ [ α ] [ α ] Balder ten Cate Regular XPath: Algebra, Logic and Automata (5/19)

  20. An example “Go to the next book that has at least two authors.” In Regular XPath: ( → [ ¬ twoauthorbook ]) ∗ / → [ twoauthorbook ] where twoauthorbook stands for book ∧ �↓ [ author ] / → + [ author ] � . Balder ten Cate Regular XPath: Algebra, Logic and Automata (6/19)

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend