Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Object XML Mappings
1. Object XML Mappings
An introduction
Joost Diepenmaat
j.h.b.diepennaat@student.utwente.nl
Friday, February 27, 2009
2. 1. Introduction to ORM’s in
the SQL world!
2. Object XML Mappings
Friday, February 27, 2009
3. Enterprise Application
Layers
Presentation Interaction
Domain Logic
Data Source Storage
Friday, February 27, 2009
4. Enterprise Application
Layers
Presentation Interaction
ORM’s live
Domain Logic
here!
Data Source Storage
Friday, February 27, 2009
5. Object Relational Mapping
firstname lastname age
Joost Diepenmaat 26
Jan Klaassen 24
John Doe 23
Friday, February 27, 2009
6. Object Relational Mapping
firstname lastname age
Class
Student
Joost Diepenmaat 26
firstname
Jan Klaassen 24
lastname
John Doe 23 age
Friday, February 27, 2009
7. Object Relational Mapping
firstname lastname age
Class
Student
Joost Diepenmaat 26
firstname
Jan Klaassen 24
lastname
John Doe 23 age
Friday, February 27, 2009
8. ORM & ActiveRecord
quot;An object that wraps a row in a
database table or view, encapsulates
the database access, and adds
domain logic on that data.quot;
- Martin Fowler
Friday, February 27, 2009
19. Place XML
in domain logic
into separate classes.
Friday, February 27, 2009
20. <student>
<name>Joost</name>
<courses>
<course>
<title>XML & DB I</title>
<score>7</score>
</course>
<course>
<title>XML & DB II</title>
<score>9</score>
</course>...
Friday, February 27, 2009
21. Student <student>
Class
<name>Joost</name>
<courses>
<course>
<title>XML & DB I</title>
<score>7</score>
</course>
<course>
<title>XML & DB II</title>
<score>9</score>
</course>...
Friday, February 27, 2009
22. Student <student>
Class
<name>Joost</name>
<courses>
Course <course>
Class
<title>XML & DB I</title>
<score>7</score>
</course>
<course>
<title>XML & DB II</title>
<score>9</score>
</course>...
Friday, February 27, 2009
23. Student <student>
Class
<name>Joost</name>
<courses>
Course <course>
Class
<title>XML & DB I</title>
<score>7</score>
</course>
<course>
<title>XML & DB II</title>
<score>9</score>
</course>...
student = Student.find_by_name(quot;Joostquot;)
student.courses
Friday, February 27, 2009
24. Thesis studies:
The possibilities of an OXM
with XML/XPath as
a base language for storage.
Friday, February 27, 2009
25. Research Questions
1. How can we extend RoR with XPath
Accelerator to create an XML database for
efficient XML storage and XPath processing?
2. How can we implement XML based Object
Mapping on the XML database created?
3. What kind of XML related functionality can
we add to the system?
Friday, February 27, 2009
26. layer contains
Object Student
Elements map tag “<student>”
Pathfinder core XPath to SQL queries
SQL storage pre | size | level
Friday, February 27, 2009
27. Elements Map
University Student Course
Objects
Object
Elements XPath
Elements
Etc.
Mapping
Map
Register Queries
Pathfinder
SQL
Friday, February 27, 2009