Documente Academic
Documente Profesional
Documente Cultură
{kudrass | tkrumbe}@imn.htwk-leipzig.de
Krumbein / Kudrass
Overview
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Motivation
XML Databank Design
UML to XML Data Model
UML to DTD
Design Process for XML-DB
Conclusions
Outlook
Krumbein / Kudrass
Motivation
Growing Importance of XML
standard representation
different data expressed in XML
Different Applications
data exchange / data representation / data storage
Different Requirements
Classification of XML Documents
document-centric, semistructured, data-centric
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Motivation
databases
Target of our work
Development of an XML DB design
XML schema-independent modelling (conceptual model)
automatic generation of a DTD as XML DB schema
Krumbein / Kudrass
XML DB Design
Three-Level Design Process
Conceptual Model
modeling of the information requirements
Physical Level
indexes and access paths
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Krumbein / Kudrass
XML DB Design
DocumentProcessing
XML
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Conceptual
Design of XML
Documents
<..>
<..>
<..>
</..>
</..>
</..>
Databases
Conceptual
Level
Krumbein / Kudrass
Logical
Level
Physical
Level
6
XML DB Design
Three-Level Design Process
Conceptual Model
modeling of the information requirements
Physical Level
indexes and access paths
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
XML DB Design
conceptual
level
document-centric
semistructured
data-centric
modeling of structure
and content
modeling of structure
logical level
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
physical
level
Krumbein / Kudrass
document model
/ updates to structure /
content
data model
queries / updates to
content
SGML, XML
XPath, DOM, XQuery
OEM, XML
Lorel, XQuery
relational DM
object-oriented DM
XML
SQL, OQL, XQuery
storage of structure at
schema and value
level
storage of structure at
schema level
files
full-text index
structure index
generic storage of
graphs
DOM
relational DB
object-relational DB
object-oriented DB
8
Logical Level
ER
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Conceptual
Design of XML-Supports
Documents
ORM
UML
<..>
<..>
Object Modelling
<..>
</..>
</..>
</..>
Logical Level
c
r
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
DTD
<..>
<..>
<..>
</..>
</..>
</..>
c2
Krumbein / Kudrass
10
Inheritance /
Generalization
Child, Parents
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Package
Name
Association End
Role name, Multiplicity,
Navigability, Type
Association
Association Class
Name optional,
2..* members
Name
Attribute
Name [min..max] : Type
Krumbein / Kudrass
12
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Krumbein / Kudrass
13
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
XML Attribute
XML Element
primitive / complex
datatypes
primitive datatype
primitive / complex
datatype
any multiplicity
any multiplicity
property-string
not supported
property-string as
attributes
default value
default value
not supported
initial value
not supported
value list
enumeration supported
not supported
scope of definition
local scope
global scope
access properties
not supported
not supported
Krumbein / Kudrass
14
Person
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
name : String
birthday : Date[0..1]
sex : (M|F)=M
email : String[1..5]
address : Address
Krumbein / Kudrass
15
Association Element
Krumbein / Kudrass
16
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Predefined Attributes
Simple / Extended XLinks available
Links among multiple documents possible
No type integrity, check depends on XML processor
Krumbein / Kudrass
17
has
1
+ Company
+ Employee
0..*
Employee
works in
Krumbein / Kudrass
18
Association Classes
and N-ary Associations
Same mapping alternatives as for associations
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
N-ary associations
Association Element and XLink can only represent a N-ary
association
resolution into a Class and N binary association
Krumbein / Kudrass
19
+ Company
1
+ Employee
0..*
Employee
Contract
beginn : Data
end : Date
salary : Double
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
20
Department
Krumbein / Kudrass
21
Embedded Elements
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Krumbein / Kudrass
22
Employee
job : String
Parameter Entities
<!ENTITY % Person EMPTY>
<!ENTITY % PersonAttList
id ID #REQUIRED
Name CDATA #REQUIRED>
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
23
logical level
Rational Rose
Transformation Tool
Unisys Rose
XML Tools
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
XMI Document
DTD
XSLT Prozessor
XML
DB
XSL Stylesheet
other
CASE tools
Krumbein / Kudrass
24
Drawbacks
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Krumbein / Kudrass
25
Conclusions
Separate conceptual and logical level
Advantages of the XML DB Design
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Krumbein / Kudrass
26
Conclusions
Problems
UML is object-oriented, XML tree-based
Classes and associations in UML
XML has no concept for associations
(embedding of child elements corresponds with aggregation)
Krumbein / Kudrass
27
Outlook
Motivation
XMLDB Design
UML DM
UML DTD
Design Process
Conclusions
Outlook
Krumbein / Kudrass
28
Krumbein / Kudrass
30