







































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








































3-level hierarchy: table, record and field
Order is not part of the information
Strings in separate fields are separate
Location of data is not generally significant
Linking is far more often part of the data, not part of the schema representing data
Data Model
Based on XML Infoset
Query Operators
Query Language
Syntax Binding
MAY have more than one syntax binding
Declarativity
MUST be declarative
Protocol Independence
MUST be defined independently of any
protocols
Error Conditions
Quantifiers
MUST include support for both Universal and
Existential Quantifiers
Hierarchy and Sequence
MUST support operations on hierarchy and
sequence of document structures
Aggregation
MUST allow computing summary information
Structural Transformation
MUST be able to transform and create new
structures
References
MUST be able to traverse intra- and inter-
document references
Text and Element Boundaries
MUST handle text across element boundaries
Operation on Schemas
MUST be able to access Schemas or DTDs
Extensibility
SHOULD support the use of externally
defined functions
Operation on Names
MUST perform simple operations on names
MAY perform more powerful operations
Datatypes
MUST represent XML 1.0 data as well as
simple and complex types of XML Schema
References
MUST include support for references, both,
internal and external
Schema Availability
MUST query even in the absence of Schema
Trees
Node-labeled
Edge-labeled
XML Query data model is a Node-labeled, tree-constructor representation
Node functions
Constructors
Accessors
Fourteen primitive XML Schema datatypes
stringValue
boolValue
floatValue
doubleValue
decimalValue
timeDurValue
recurDurValue
binaryValue
urirefValue
idValue
idrefValue
qnameValue
entityValue
notationValue
Note: ValueNode replaces XPath’s TextNode
http://www.mywebsite.com/PartSchema”
name=“nutbolt”>
</p:part>
parent(A1)
= Ref(E1)
prefix(N1)
= Ref(StringValue("p", Ref(Def_string)))
uri(N1)
= URIRefValue("http://www.mywebsite.com/PartSchema",
Ref(Def_uriReference))
parent(N1)
= Ref(E1)
Node References
Defined by the query system NOT by the
query language
Node Identity
The function ref is one-to-one onto
ref_equal(ref(n1), ref(n2))
equal(n1,n2)
Unique parent
Duplicate-free list of children
Compact, easy to type and read
Simple for common cases
Embeddable in programs, scripts, URLs
Unique identification of each node
Declarative NOT procedural
Evaluation at any level in the document
Result in document order; no repeat node
Superset of XSL
Closure is guaranteed ONLY if the implementation returns well-formed XMLdocuments