XQueries and XPaths Flashcards

1
Q

what does FLWOR stand for

A
for
let
where
order by
return
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

structure of a for clause

A

FOR IN , ….

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what do variables start with

A

$

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

structure for a let clause

A

LET := , ….

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are curly brackets used for in x queries

A

to indicate that the expression enclosed needs to be evaluated by the x query processor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is the where clause used in conjunction with

A

for

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what does the where clause do

A

filters the binding tuples produced by the for and let clause

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

how to order the return values

A

order by

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is a union

A

contains all nodes that occur in ether of the operands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is the intersect operands

A

produces a sequence containing all the nodes that occur in both operands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is except operands

A

produces a sequence containig all the nodes that occur in its first operand but not the second

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

in an if clause, what three statements are needed

A

if
then
else

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is the some expression

A

returns true if the test expression is true for some variable binding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is the every expression

A

returns true if the test expression is true for every variable binding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

example of built in functions

A

string-join
name() returns name of node
data() gets whats inside the node
distinct-values() removes duplicates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

general format of a user defined X query function

A
declare function local:function_Name(list parameters)
{
function body
};
17
Q

how to call a user defined function

A

{local:function_Name(Parameters)}

18
Q

how to declare types in user defined functions

A

xs:type

eg xs:integer

xs:string