Librería Portfolio Librería Portfolio

Búsqueda avanzada

TIENE EN SU CESTA DE LA COMPRA

0 productos

en total 0,00 €

XQUERY 2E. SEARCH ACROSS A VARIETY OF XML DATA
Título:
XQUERY 2E. SEARCH ACROSS A VARIETY OF XML DATA
Subtítulo:
Autor:
WALMSLEY, PRISCILLA
Editorial:
O´REILLY
Año de edición:
2015
Materia
XML Y XSLT
ISBN:
978-1-4919-1510-3
Páginas:
758
52,50 €

 

Sinopsis

The W3C XQuery 3.1 standard provides a tool to search, extract, and manipulate content, whether it´s in XML, JSON or plain text. With this fully updated, in-depth tutorial, you'll learn to program with this highly practical query language.

Designed for query writers who have some knowledge of XML basics, but not necessarily advanced knowledge of XML-related technologies, this book is ideal as both a tutorial and a reference. You'll find background information for namespaces, schemas, built-in types, and regular expressions that are relevant to writing XML queries.

This second edition provides:

A high-level overview and quick tour of XQuery
New chapters on higher-order functions, maps, arrays, and JSON
A carefully paced tutorial that teaches XQuery without being bogged down by the details
Advanced concepts for taking advantage of modularity, namespaces, typing, and schemas
Guidelines for working with specific types of data, such as numbers, strings, dates, URIs, maps and arrays
XQuery's implementation-specific features and its relationship to other standards including SQL and XSLT
A complete alphabetical reference to the built-in functions, types, and error messages



Chapter 1Introduction to XQuery
What Is XQuery?
Easing into XQuery
Path Expressions
FLWORs
Adding XML Elements and Attributes
Functions
Joins
Aggregating and Grouping Values
Chapter 2XQuery Foundations
The Design and History of the XQuery Language
XQuery in Context
Processing Queries
The XQuery Data Model
Types
Namespaces
Chapter 3Expressions: XQuery Building Blocks
Categories of Expressions
Keywords and Names
Whitespace in Queries
Literals
Variables
Function Calls
Comments
Precedence and Parentheses
Comparison Expressions
Conditional (if-then-else) Expressions
Switch Expressions
Logical (and/or) Expressions
Chapter 4Navigating XML by Using Paths
Path Expressions
Predicates
A Closer Look at Context
Dynamic Paths
The Simple Map Operator
Chapter 5Adding Elements and Attributes to Results
Including Elements and Attributes from the Input Document
Direct Element Constructors
Computed Constructors
Chapter 6Selecting and Joining Using FLWORs
Selecting with Path Expressions
FLWOR Expressions
Quantified Expressions
Selecting Distinct Values
Joins
Chapter 7Sorting and Grouping
Sorting in XQuery
Grouping
Aggregating Values
Chapter 8Functions
Built-in Versus User-Defined Functions
Calling Functions
User-Defined Functions
Chapter 9Advanced Queries
Working with Positions and Sequence Numbers
Windowing
Copying Input Elements with Modifications
Combining Results
Using Intermediate XML Documents
Chapter 10Namespaces and XQuery
XML Namespaces
Namespaces and XQuery
Namespace Declarations in Queries
Controlling Namespace Declarations in Your Results
URI-Qualified Names
Chapter 11A Closer Look at Types
The XQuery Type System
The Built-in Types
Types, Nodes, and Atomic Values
Type Checking in XQuery
Automatic Type Conversions
Sequence Types
Constructors and Casting
Chapter 12Prologs, Modules, and Variables
Structure of a Query: Prolog and Body
Assembling Queries from Multiple Modules
Variable Declarations
Private Functions and Variables
Declaring External Functions
Chapter 13Inputs and Outputs
Types of Input and Output Documents
Accessing Input Documents
Serializing Output
Chapter 14Using Schemas with XQuery
What Is a Schema?
Why Use Schemas with Queries?
W3C XML Schema: A Brief Overview
In-Scope Schema Definitions
Schema Validation and Type Assignment
Sequence Types and Schemas
Chapter 15Static Typing
What Is Static Typing?
The Typeswitch Expression
The Treat Expression
Type Declarations
The zero-or-one, one-or-more, and exactly-one Functions
Chapter 16Writing Better Queries
Query Design Goals
Clarity
Modularity
Robustness
Error Handling
Performance
Chapter 17Working with Numbers
The Numeric Types
Constructing Numeric Values
Comparing Numeric Values
Arithmetic Operations
Functions on Numbers
Formatting Numbers
Chapter 18Working with Strings
The xs:string Type
Constructing Strings
Comparing Strings
Substrings
Finding the Length of a String
Concatenating and Splitting Strings
Manipulating Strings
Whitespace and Strings
Internationalization Considerations
Chapter 19Regular Expressions
The Structure of a Regular Expression
Representing Individual Characters
Representing Any Character
Representing Groups of Characters
Character Class Expressions
Reluctant Quantifiers
Anchors
Back-References
Using Flags
Using Sub-Expressions with Replacement Variables
Chapter 20Working with Dates, Times, and Durations
The Date and Time Types
The Duration Types
Extracting Components of Dates, Times, and Durations
Formatting Dates and Times
Using Arithmetic Operators on Dates, Times, and Durations
The Date Component Types
Chapter 21Working with Qualified Names, URIs, and IDs
Working with Qualified Names
Working with URIs
Working with IDs
Chapter 22Working with Other XML Constructs
XML Comments
Processing Instructions
Documents
Text Nodes
XML Entity and Character References
CDATA Sections
Chapter 23Function Items and Higher-Order Functions
Why Higher-Order Functions?
Constructing Functions and Calling Them Dynamically
Functions and Sequence Types
Higher-Order Functions
Chapter 24Maps, Arrays, and JSON
Maps
Arrays
JSON
Chapter 25Implementation-Specific Features
Conformance
Version Support
Setting the Query Context
The Option Declaration
Extension Expressions
Annotations
Chapter 26XQuery for SQL Users
Relational Versus XML Data Models
Comparing SQL Syntax with XQuery Syntax
Combining SQL and XQuery
SQL/XML
Chapter 27XQuery for XSLT Users
XQuery and XPath
XQuery Versus XSLT
Using XQuery and XSLT Together
XQuery Backward Compatibility with XPath 1.0
Chapter 28Additional XQuery-Related Standards
XQuery Update Facility
Full-Text Search
XQueryX
RESTXQ
XQuery API for Java (XQJ)
Appendix Built-in Function Reference
Appendix Built-in Types
xs:anyAtomicType
xs:anySimpleType
xs:anyType
xs:anyURI
xs:base64Binary
xs:boolean
xs:byte
xs:date
xs:dateTime
xs:dateTimeStamp
xs:dayTimeDuration
xs:decimal
xs:double
xs:duration
xs:ENTITIES
xs:ENTITY
xs:error
xs:float
xs:gDay
xs:gMonth
xs:gMonthDay
xs:gYear
xs:gYearMonth
xs:hexBinary
xs:ID
xs:IDREF
xs:IDREFS
xs:int
xs:integer
xs:language
xs:long
xs:Name
xs:NCName
xs:negativeInteger
xs:NMTOKEN
xs:NMTOKENS
xs:nonNegativeInteger
xs:nonPositiveInteger
xs:normalizedString
xs:NOTATION
xs:numeric
xs:positiveInteger
xs:QName
xs:short
xs:string
xs:time
xs:token
xs:unsignedByte
xs:unsignedInt
xs:unsignedLong
xs:unsignedShort
xs:untyped
xs:untypedAtomic
xs:yearMonthDuration
Appendix Error Summary
FOAP0001
FOAR0001
FOAR0002
FOAY0001
FOAY0002
FOCA0001
FOCA0002
FOCA0003
FOCA0005
FOCA0006
FOCH0001
FOCH0002
FOCH0003
FOCH0004
FODC0001
FODC0002
FODC0003
FODC0004
FODC0005