<!DOCTYPE TEI.2 PUBLIC '-//C. M. Sperberg-McQueen//DTD
          TEI Lite 1.0 plus SWeb (XML)//EN'
          '../../../lib/swebxml.dtd' [
<!ATTLIST list type CDATA 'bullets' >
<!ATTLIST seg  rend CDATA 'incremental' >
<!ATTLIST xref href CDATA '' >

<!ATTLIST item id ID #IMPLIED >
<!ATTLIST div id ID #IMPLIED >
<!ATTLIST item id ID #IMPLIED >

<!ENTITY date.last.touched '10 September 2012'>

<!ENTITY city 'Rockville'>
<!ENTITY state 'Maryland'>
<!ENTITY city-state '&city;, &state;'>
<!ENTITY coursedates '13-14 November 2012'>

<!ENTITY ntilde  "&#241;" ><!-- small n, tilde -->

]>
<?xml-stylesheet type="text/xsl" href="../../../lib/courses201206.bmt.xsl"?> 
<!--* <?xml-stylesheet type="text/xsl" href="../../../lib/xforms201102.bmt.xsl"?>  *-->
<TEI.2 rend="no-sec-nums">
<teiHeader>
<fileDesc>
<titleStmt>
<title type="main">Introduction to XQuery</title>
<title type="sub">XQuery as a tool for working with natural-language documents</title>
</titleStmt>
<publicationStmt>
<pubPlace>Espa&ntilde;ola, New Mexico</pubPlace>
<publisher>Black Mesa Technologies LLC</publisher>
<date>2012</date>
</publicationStmt>
<sourceDesc>
<p>No source; created in electronic form.</p>
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
<front>
<titlePage>
<docTitle>
<titlePart>XQuery for Documents</titlePart>
<titlePart>Introduction to XQuery as a tool for working with natural-language documents</titlePart>
<!--* <titlePart>Building interactive XML tools</titlePart> *-->
</docTitle>

<titlePart type="event-loc">&city-state;</titlePart>
<titlePart type="event-date">&coursedates;</titlePart>

<!--*
<docAuthor>C. M. Sperberg-McQueen, Black Mesa Technologies LLC</docAuthor>
<docDate>rev. &date.last.touched;</docDate>
*-->
<docDate rend="footer">&date.last.touched;</docDate>
</titlePage>

<div id="navbar" type="navbar">
<head>Nearby documents</head>
<list>
<!--* <item><xref href="online.html">Online interface to Thutmose II</xref></item>
      <item><xref href="progdoc.xml">Programmers' documentation</xref></item>
    *-->
<item id="siteroot"><xref href="../../../">Home</xref></item>
</list>
</div>
</front>
<body>
<p>This two-day hands-on course introduces XQuery as a programming
language for work with natural-language documents.</p>
<p>XQuery is a query and transformation language for XML documents. It
can be used to translate XML-tagged data into HTML, to modify the
tagging of data, and (of course) to search large bodies of XML
material. Many XML processing tasks which are possible but
inconvenient in Java, C, or Python are much more convenient in XQuery.
This course will focus on the use of XQuery with natural-language
documents (books, articles, legislation, etc.) encoded in XML.
</p>
<p>Hands-on exercises will give students experience actually writing
queries for the interrogation and transformation of XML-tagged
documents. Participants should have good knowledge of XML syntax;
knowledge of XPath and XSLT (1.0 or 2.0) will be helpful but is not a
prerequisite. Familiarity with basic programming concepts (input,
output, types, flow of control will be helpful (or alternatively, the
ability to confront new concepts without fear).</p>
<div id="materials">
<head>Materials</head>

<p>Resources for participants in the course include:
<list>
<item><xref href="slides/outline.xml">Course outline</xref> (with links to slides)</item>
<item><xref href="misc/resources.xml">XQuery resources list</xref></item>
<item><xref href="../data">Sample public data for exercises</xref></item>
<item><xref href="./course-announcement.xml">Initial course announcement</xref> (for the record)</item>
<!--*
<item><xref href="./misc/participantinfo.xhtml">Preliminary participant-info questionnaire</xref></item>
*-->
<!--* <item><xref href="./misc/eval.xhtml">Course evaluation questionnaire</xref></item> *-->
</list>
</p>
</div>

<div id="topics">
<head>Topics and syllabus</head>
<p>The course is divided into eight sessions, four to a day.  Topics include:
<list type="bullets">
<item id="intro"><p>Introduction</p><p>
High-level overview of XQuery, background, goals
and purpose of the XQuery spec; <q>Hello, world</q> examples.</p>
</item>
<item id="locs"><p>Location paths</p>
<p>Relative and absolute location paths; child and descendant axes;
attributes, predicates.  Other axes.</p>
<p>The XDM data model.</p>
</item>
<item id="atomics"><p>Atomic values</p>
<p>Atomic values; simple types; operations on atomic
values; important types.</p>
</item>
<item id="seqs"><p>Sequences</p>
<p>
Sequences of items; operations on sequences.</p>
</item>
<item id="flwor">
<p>FLWOR (<kw>for</kw>, <kw>let</kw>, <kw>where</kw>, <kw>order by</kw>, <kw>return</kw>) expressions;
nested expressions.
</p>
</item>
<item><p>Function declarations; modules; function libraries.
</p>
</item>
<item id="regex">
<p>Regular expressions and string manipulation</p>
<p>The standard function library.
Regular-expression functions; other string manipulations.
</p>
</item>
<item id="collections">
<p>Collections</p>
<p>Collections; operating on a collection.
</p>
</item>
<item id="fulltext">
<p>Full-text</p>
<p>The full-text extensions to XQuery.</p>
</item>
<item id="quovadis"><p>What next?  Individual work and/or Q/A</p>
<p>Where do you go from here?
Individual work <hi>or</hi> questions and answers;
wrapup.</p>
</item>
</list>
</p>

<!--*
<p><label>Resources</label>:
<xref href="slides/outline.xml">course outline</xref> (with links to slides),
<xref href="misc/xforms.resources.xml">XForms resources list</xref>,
sample <xref href="data/Gorbals/gorbals-description.xml">Gorbals census data</xref>.
</p>
*-->

</div>

<div id="prerequisites">
<head>Prerequisites</head>
<p>Participants should be comfortable reading XML documents.
Familiarity with XPath, XSLT, and XSD (XML Schema) may be helpful but is not required.
Programming experience is not required.
</p>

<p>Students may bring their own laptops or may use a
classroom machine.</p>

</div>

</body>
</text>
</TEI.2>
<!-- Keep this comment at the end of the file
Local variables:
mode: xml
sgml-default-dtd-file:"/Library/SGML/Public/Emacs/sweb.ced"
sgml-omittag:t
sgml-shorttag:t
End:
-->
