From: Kim Nguyễn Date: Mon, 29 Sep 2014 20:15:54 +0000 (+0200) Subject: . X-Git-Url: http://git.nguyen.vg/gitweb/?p=hacks%2FsimpleWebSlides.git;a=commitdiff_plain;h=00a1f062a9f255b188f15b1d5373b5d73901c675 . --- diff --git a/pres-typex/01.xhtml b/pres-typex/01.xhtml new file mode 100644 index 0000000..2e104f0 --- /dev/null +++ b/pres-typex/01.xhtml @@ -0,0 +1,240 @@ + +∈"> + ∉"> + +] + > + + + Tatoo : the path forward + + + + + + + + + + + + + + + + + + + +
+

Tatoo : the path forward

+

TYPEX meeting, Grenoble April 14-16 2014

+ kn@lri.fr
+ http://www.lri.fr/~kn +
+ +

XPath in nutshell

+
+

XPath

+

W3C query (sub-)language. Allows one to + denote a set of nodes in a document

+ + /descendant::M/ancestor::A[ descendant::P or parent::Q ]/child::* + + + +
+
+

Filters (or predicates)

+

An arbitrary expression whose value is cast into a + Boolean (true keeps the selected node, false + discards it)

+

Example :

+ + //A[ child::B and .//* = count(/descendant::X) mod 12 ] + + +

BTW: XPath semantics + is crazy rich. In + the example we want all A nodes (ok) that have + a B child (ok) and that have a + descendant (hum… ) + for which the (string) concatenation + of its text descendants (?) is equal to the number + of X elements in the document mod 12 + (whaaat ?) +

+
+

Tatoo : what is it ? how does it work ?

+
+

SXSI

+

Succint XML Self-Index: (limited) XPath query engine developped during my + postdoc at Nicta. It uses: +

+ +

Can answer downward (no ancestor, parent, …) XPath with text + expressions of the form (f(., constant), + with f ∈ { contains, starts-with, ends-with, =, <, > , + <=, >= }). Translation from XPath to automata is + linear in size

+
+
+

Pros and cons of SXSI

+

Pros

+ +

Cons

+ + +
+
+

Tree Automata TOOlkit

+

Ré-implmentation of the automata part of SXSI

+ +
+
+

How does it work ?

+

Sample document: alphabet.xml +

+