Publisher:
Texas A&M University Press, College Station
Cover -- Title -- Copyright -- Dedication -- Contents -- Introduction -- Chapter 1: Why XQuery for Humanists? -- 1.1 Built for the Kind of Data Most Digital Humanists Use -- 1.2 Easy for Beginning Programmers to Learn -- 1.3 XML and Digital...
more
Cover -- Title -- Copyright -- Dedication -- Contents -- Introduction -- Chapter 1: Why XQuery for Humanists? -- 1.1 Built for the Kind of Data Most Digital Humanists Use -- 1.2 Easy for Beginning Programmers to Learn -- 1.3 XML and Digital Humanities Data -- 1.3.1 XML Compared to Other Formats -- 1.3.1.1 JSON -- 1.3.1.2 RDF -- 1.4 XQuery Compared to XSLT -- 1.5 A Great Digital Humanities Community -- 1.6 Questions -- Chapter 2: Setting Up Your XQuery Environment -- 2.1 Installing Java -- 2.2 Setting Up BaseX -- 2.3 Setting Up eXist -- 2.4 Setting Up oXygen -- 2.5 Setting Up Saxon -- 2.6 Accessing Online Companion Materials -- 2.7 Preserving and Sharing Code with GitHub -- 2.8 Questions and Exercises -- Chapter 3: Reviewing XML and Related Standards -- 3.1 History and Goals of XML -- 3.2 XML Basics -- 3.2.1 Writing Well-Formed XML -- 3.2.2 Writing Valid XML -- 3.3 XML as a Data Standard -- 3.4 XML Gotchas -- 3.4.1 Embracing Namespaces -- 3.4.2 Escaping Strings -- 3.4.3 Whitespace -- 3.5 Questions and Exercises -- Chapter 4: Finding Your Way Around with XPath -- 4.1 XPath Axes -- 4.2 Node Tests by Kind -- 4.3 XPath's Abbreviated Syntax -- 4.4 XPath Functions -- 4.5 XPath Tips and Tricks -- 4.5.1 Wildcards -- 4.5.2 Value Comparisons -- 4.5.3 Selecting Multiple Element Names with the Union Operator -- 4.5.4 Selecting the "Nth" Item or a Range of Items -- 4.6 Questions and Exercises -- Chapter 5: XQuery Basics -- 5.1 The Parts of an XQuery -- 5.2 Enclosed Expressions and Curly Braces -- 5.3 FLWOR Expressions -- 5.3.1 Binding Variables -- 5.3.2 Iterating over Variables -- 5.3.3 Filtering Results -- 5.3.3.1 A Short Note on Comparisons -- 5.3.4 Ordering Results -- 5.3.5 Counting Results -- 5.3.6 Grouping Results -- 5.4 Conditional Expressions -- 5.4.1 Effective Boolean Values.
Publisher:
Texas A&M University Press, College Station, [Texas]
Why XQuery for humanists? -- Setting up your XQuery environment -- Reviewing XML and related standards -- Finding your way around with XPath -- XQuery basics -- Next steps with XQuery -- Advanced XQuery -- Thinking functionally -- Modifying your data...
more
Why XQuery for humanists? -- Setting up your XQuery environment -- Reviewing XML and related standards -- Finding your way around with XPath -- XQuery basics -- Next steps with XQuery -- Advanced XQuery -- Thinking functionally -- Modifying your data with XQuery update -- Searching with XQuery full text -- Handling errors gracefully -- Using XQuery with other digital humanities tools -- Conclusion. ""XQuery for Humanists" provides an informed, opinionated overview and recommends the best implementations, libraries, and paradigms to empower those who need it most. Emphasizing practical applicability, the authors go beyond the XQuery language to include the basics of underlying standards like XPath, related standards like XQuery Full Text and XQuery Update, and explain the difference between XQuery and languages like Python and R. This book will afford readers the skills they need to build and analyze large-scale documentary corpora in XML. A ready-reference for faculty, graduate students, and librarians who seek to master XQuery for their projects"--
Publisher:
Texas A&M University Press, College Station
Cover -- Title -- Copyright -- Dedication -- Contents -- Introduction -- Chapter 1: Why XQuery for Humanists? -- 1.1 Built for the Kind of Data Most Digital Humanists Use -- 1.2 Easy for Beginning Programmers to Learn -- 1.3 XML and Digital...
more
Cover -- Title -- Copyright -- Dedication -- Contents -- Introduction -- Chapter 1: Why XQuery for Humanists? -- 1.1 Built for the Kind of Data Most Digital Humanists Use -- 1.2 Easy for Beginning Programmers to Learn -- 1.3 XML and Digital Humanities Data -- 1.3.1 XML Compared to Other Formats -- 1.3.1.1 JSON -- 1.3.1.2 RDF -- 1.4 XQuery Compared to XSLT -- 1.5 A Great Digital Humanities Community -- 1.6 Questions -- Chapter 2: Setting Up Your XQuery Environment -- 2.1 Installing Java -- 2.2 Setting Up BaseX -- 2.3 Setting Up eXist -- 2.4 Setting Up oXygen -- 2.5 Setting Up Saxon -- 2.6 Accessing Online Companion Materials -- 2.7 Preserving and Sharing Code with GitHub -- 2.8 Questions and Exercises -- Chapter 3: Reviewing XML and Related Standards -- 3.1 History and Goals of XML -- 3.2 XML Basics -- 3.2.1 Writing Well-Formed XML -- 3.2.2 Writing Valid XML -- 3.3 XML as a Data Standard -- 3.4 XML Gotchas -- 3.4.1 Embracing Namespaces -- 3.4.2 Escaping Strings -- 3.4.3 Whitespace -- 3.5 Questions and Exercises -- Chapter 4: Finding Your Way Around with XPath -- 4.1 XPath Axes -- 4.2 Node Tests by Kind -- 4.3 XPath's Abbreviated Syntax -- 4.4 XPath Functions -- 4.5 XPath Tips and Tricks -- 4.5.1 Wildcards -- 4.5.2 Value Comparisons -- 4.5.3 Selecting Multiple Element Names with the Union Operator -- 4.5.4 Selecting the "Nth" Item or a Range of Items -- 4.6 Questions and Exercises -- Chapter 5: XQuery Basics -- 5.1 The Parts of an XQuery -- 5.2 Enclosed Expressions and Curly Braces -- 5.3 FLWOR Expressions -- 5.3.1 Binding Variables -- 5.3.2 Iterating over Variables -- 5.3.3 Filtering Results -- 5.3.3.1 A Short Note on Comparisons -- 5.3.4 Ordering Results -- 5.3.5 Counting Results -- 5.3.6 Grouping Results -- 5.4 Conditional Expressions -- 5.4.1 Effective Boolean Values.