Protected: Oorlog in de Kamer
Enter your password to view comments
Enter your password to view commentsSeptember 7, 2010. Room: G3-29 (10-11) and H3-27 (11-12).
Lecturers: Reinder van der Heide and Maarten Marx
Slides (screen)
Slides (print)
Analyzing and Visualizing Social Networks of Members of Parliament
XPath sandbox. Try e.g.
collection(’/db/euparliament/data/EN’)//speech[ft:query(.,'Marx')] (all speeches mentioning Marx), or ask “Who mentions Marx?” by
collection(’/db/euparliament/data/EN’)//speech[ft:query(.,'Marx')]/@speaker
Here you ask for attributes and the database engine does not output those to the screen. If you want to see the value of the attributes you need to ask for the string-value of them. Like this:
for $s in collection(’/db/euparliament/data/EN’)//speech[ft:query(.,'Marx')]/@speaker
return string($s)
Most XPath tutorials and lessons use data-centric XML data files. For instance, the queries on the CIA-Factbook/Mondial database for first year Information Science at UvA.
We created a set of queries on the XML version of the proceedings of the European Parliament in English.
The queries can all be expressed in XPath 1.0. The level is introductory. Students can make try out their queries in an Exist sandbox and immediately see the results. The set of queries is available as a Google form.
Teachers who want to use this form are welcome. If you want to get the results of your students doe the following:
You obtain the answers as a csv file as soon as possible.
Model answers are also available by request.