- 1、本文档共2页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Preliminary Notations
We start with reviewing basic features of a simple XML tree model. Within this paper, all graphs considered are directed, without parallel arcs and finite unless stated otherwise.
本文中,所有的图皆为有向的,有限的和无并联弧的,除非单独提到。
For every graph G, let VG denote its set of vertices and AG its set of arcs.
对每一图G图,VG表示其节点集合,AG表示其弧的集合。
A rooted graph is a graph G with one distinguished vertex rG, called the root of G, such that there is a directed path from rG to every other vertex in VG.
A rooted tree is a rooted graph T without any (non-directed) cycles.
A graph G is empty if AG is empty. Specifically, G is an empty rooted graph if it consists of a single vertex rG.
For every vertex v, let SuccG(v) denote its (possibly empty) set of successors, called children, in G.
A non-isolated vertex without children is a leaf of G. Let LG denote the set of all leaves of G.
Definition 1. Given a vertex v ∈ VG and a subset W ? LG of leaves, a v-subgraph of G is the graph union of all directed walks from v to some w ∈ W. A v-walk of G is a directed walk from v to a single leaf w of G. Every v-walk or v-subgraph of a rooted tree is again a rooted tree.
Let ENames and ANames be fixed sets of element names and attribute names, respectively. Also let the symbols E,A and S reflect whether a vertex represents an element, attribute or text data respectively.
Definition 2. An XML graph is a rooted graph G together with the mappings name : VG → ENames∪ANames and kind: VG →{E,A,S} assigning every vertex its name and kind, respectively. If G is a rooted tree, then we speak of an XML tree
Definition 3. Let G_ and G be two XML graphs, and consider a mapping
φ : VG_ → VG. φ is said to be kind-preserving if the image of a vertex is of the
same kind as the vertex itself, that is, kind(v_) = kind(φ(v_)) for all v_ ∈ VG_ .
Further, φ is name-preserving if the image of a vertex carries the same name as
the vertex itself, that is, name(v_) = name(φ(v_)) for all v_ ∈ VG_ . The mapping
φ is
文档评论(0)