-
Notifications
You must be signed in to change notification settings - Fork 10
Querying treebanks XML, XQuery, XPath
Date: Thursday, February 23, 2017, 17h00-18h15 (CET time)
Session coordinator: Giuseppe G.A. Celano (University of Leipzig)
YouTube link: https://www.youtube.com/watch?v=XG3JvBI0CAs
Slides: https://drive.google.com/file/d/0B4j3-YM-jGgDY1QzUGpTZTc3d00/view?usp=sharing
This lecture aims to impart the basics of XQuery and XPath as implemented in BaseX to (easily and efficiently) navigate any XML documents and extract information therefrom
- Introducing XML, XQuery, XPath, and BaseX
- XPath expression
- FLOWR expression
- String Functions
-
Download the file "BaseX 8.6.jar". Click then on the file and you should be able to have the Graphical User Interface running (Java is required, but you are very likely to already have it on your machine). More information on the BaseX Startup page
-
Download the Ancient Greek and Latin Dependency treebank on your local machine. Focus on the data in the v2.1 folder.
-
Download Caesar's De Bello Civili
-
Read the following sections on XML - Managing Data Exchange/XPath:
- XPath
- XML as a tree structure
- Understanding node relationships
- Abbreviated vs. unabbreviated XPath syntax
- XPath axes
- XPath predicates and functions
- Official documentation on BaseX and XQuery
- Walmsley, Priscilla. 2016. XQuery. O'Reilly.
- Find all relative clauses in the Latin treebank.
- Try to list all passages in Caesar's De Bello Civili which talk about Scipio.