SlideShare una empresa de Scribd logo
1 de 37
OODB
Object-Oriented Databases
First Things First
First Things First




              Free your Mind!
First Things First




              Free your Mind!
What is a Database System?
What is a Database System?



 Efficient Data Storage
What is a Database System?



 Efficient Data Storage
 One or more files
What is a Database System?



 Efficient Data Storage
 One or more files
 Ruleset / Structure
What is a Database System?



 Efficient Data Storage
 One or more files               DBMS
                         DBS
 Ruleset / Structure
                               Database
What is a Database System?


                               Application
 Efficient Data Storage
 One or more files                DBMS
                         DBS
 Ruleset / Structure
                               Database
Basic Types of Databases
Basic Types of Databases



         Relational     Hierarchical


         Network      Object-Oriented
Basic Types of Databases



                Relational


              Object-Oriented
What is a Relational DB?
What is a Relational DB?


 De-facto Standard
What is a Relational DB?


 De-facto Standard
 Table-based
What is a Relational DB?


 De-facto Standard
 Table-based
 Relation between Tables
What is a Relational DB?


 De-facto Standard
 Table-based
 Relation between Tables
 Stores primitive Types
What is a Relational DB?


 De-facto Standard
 Table-based
 Relation between Tables
 Stores primitive Types
 Access through SQL (Structured Query Language)
An RDB Example
An RDB Example
 ISBN    BOOK

  1     Kamasutra

  2     The Bible

  3      Hamlet
An RDB Example
 ISBN    BOOK       ISBN    AUTHOR

  1     Kamasutra    1     R. F. Burton

  2     The Bible    2        God

  3      Hamlet      3     Shakespeare
An RDB Example
 ISBN    BOOK                          ISBN     AUTHOR

  1     Kamasutra                        1     R. F. Burton

  2     The Bible                        2        God

  3      Hamlet                          3     Shakespeare




             ISBN    BOOK        AUTHOR

              1     Kamasutra   R. F. Burton

              2     The Bible      God

              3      Hamlet     Shakespeare
What is an Object-Oriented DB?
What is an Object-Oriented DB?
What is an Object-Oriented DB?



 Object-based
What is an Object-Oriented DB?



 Object-based
 Relations through Objects
What is an Object-Oriented DB?



 Object-based
 Relations through Objects
 Database stores complex Objects
What is an Object-Oriented DB?



 Object-based
 Relations through Objects
 Database stores complex Objects
 Access through high-level Language
An OODB Example
An OODB Example
                 ra
     Kamasut
                          The Bible


                    o n
         R. F. Burt
     1                        God
                          2               Hamlet




                                                    re
                                          Shakespea
                                      3
From DB to the App
       RDB           OODB
From DB to the App
        RDB                OODB


     SELECT * FROM table

         Primitive Types


             Object
From DB to the App
        RDB                  OODB


     SELECT * FROM table

         Primitive Types   Object

             Object
OODB Sourcecode
ObjectContainer oodb = Db4o.openFile("test.oodb");
	    	
User chris = new User("Chris");
oodb.store(chris);

oodb.store(new User("Christian"));

List<User> users = oodb.query(User.class);
for (User u : users) {
   System.out.println(u);
}

System.out.println(users.get(0).equals(chris));
	     	
users = oodb.query(new Predicate<User>() {
    public boolean match(User user) {
       return user.getName().contains("Christi");
    }
});
for (User u : users) {
    System.out.println(u);
}

oodb.close();
RDB Sourcecode
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
Connection con = DriverManager.getConnection("jdbc:mysql://192.168.1.135:3306/foo", "root", "user");

User chris = new User("Chris")
con.createStatement().executeQuery("INSERT INTO Users VALUES ("", " + chris.getName() + ");

con.createStatement().executeQuery("INSERT INTO Users VALUES ("", " + new User("Chris").getName() + ");

ResultSet users = con.createStatement().executeQuery("SELECT * FROM User");
	    	     	
while (users.next()) {
   User user = new User(users.getInt("id"), user.getString("name"));
   if (user.getName().equals(chris.getName()) {
      System.out.println(user.equals(chris)); // false
   }
}

con.close();
What Do You Think?

Más contenido relacionado

Similar a OODB

Semantic Modelling using Semantic Web Technology
Semantic Modelling using Semantic Web TechnologySemantic Modelling using Semantic Web Technology
Semantic Modelling using Semantic Web TechnologyRinke Hoekstra
 
RDA (Resource Description & Access)
RDA (Resource Description & Access)RDA (Resource Description & Access)
RDA (Resource Description & Access)Jennifer Joyner
 
RDF for Librarians
RDF for LibrariansRDF for Librarians
RDF for LibrariansJenn Riley
 
CSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web TutorialCSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web TutorialLeeFeigenbaum
 
The web of interlinked data and knowledge stripped
The web of interlinked data and knowledge strippedThe web of interlinked data and knowledge stripped
The web of interlinked data and knowledge strippedSören Auer
 
Linked data for librarians
Linked data for librariansLinked data for librarians
Linked data for librarianstrevorthornton
 
Cartographic Resources Cataloging with RDA Workshop
Cartographic Resources Cataloging with RDA WorkshopCartographic Resources Cataloging with RDA Workshop
Cartographic Resources Cataloging with RDA WorkshopALATechSource
 
DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World." DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World." Avalon Media System
 
Linked Data in Libraries
Linked Data in LibrariesLinked Data in Libraries
Linked Data in LibrariesCarl Hess
 
20080917 Rev
20080917 Rev20080917 Rev
20080917 Revcharper
 
Lifting the Lid on Linked Data
Lifting the Lid on Linked DataLifting the Lid on Linked Data
Lifting the Lid on Linked DataJane Stevenson
 
Resource description framework
Resource description frameworkResource description framework
Resource description frameworkStanley Wang
 
RDA Presentation
RDA PresentationRDA Presentation
RDA Presentationjendibbern
 
Efficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF DatabasesEfficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF DatabasesAlexandra Roatiș
 

Similar a OODB (20)

NISO/DCMI Webinar: International Bibliographic Standards, Linked Data, and th...
NISO/DCMI Webinar: International Bibliographic Standards, Linked Data, and th...NISO/DCMI Webinar: International Bibliographic Standards, Linked Data, and th...
NISO/DCMI Webinar: International Bibliographic Standards, Linked Data, and th...
 
Semantic Modelling using Semantic Web Technology
Semantic Modelling using Semantic Web TechnologySemantic Modelling using Semantic Web Technology
Semantic Modelling using Semantic Web Technology
 
Introduction to RDF
Introduction to RDFIntroduction to RDF
Introduction to RDF
 
RDA (Resource Description & Access)
RDA (Resource Description & Access)RDA (Resource Description & Access)
RDA (Resource Description & Access)
 
RDF for Librarians
RDF for LibrariansRDF for Librarians
RDF for Librarians
 
CSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web TutorialCSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web Tutorial
 
The web of interlinked data and knowledge stripped
The web of interlinked data and knowledge strippedThe web of interlinked data and knowledge stripped
The web of interlinked data and knowledge stripped
 
Linked data for librarians
Linked data for librariansLinked data for librarians
Linked data for librarians
 
RDF briefing
RDF briefingRDF briefing
RDF briefing
 
Cartographic Resources Cataloging with RDA Workshop
Cartographic Resources Cataloging with RDA WorkshopCartographic Resources Cataloging with RDA Workshop
Cartographic Resources Cataloging with RDA Workshop
 
DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World." DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World."
 
Linked Data in Libraries
Linked Data in LibrariesLinked Data in Libraries
Linked Data in Libraries
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
 
20080917 Rev
20080917 Rev20080917 Rev
20080917 Rev
 
Lifting the Lid on Linked Data
Lifting the Lid on Linked DataLifting the Lid on Linked Data
Lifting the Lid on Linked Data
 
Resource description framework
Resource description frameworkResource description framework
Resource description framework
 
RDA Presentation
RDA PresentationRDA Presentation
RDA Presentation
 
Efficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF DatabasesEfficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF Databases
 

Último

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 

Último (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

OODB

  • 3. First Things First Free your Mind!
  • 4. First Things First Free your Mind!
  • 5. What is a Database System?
  • 6. What is a Database System? Efficient Data Storage
  • 7. What is a Database System? Efficient Data Storage One or more files
  • 8. What is a Database System? Efficient Data Storage One or more files Ruleset / Structure
  • 9. What is a Database System? Efficient Data Storage One or more files DBMS DBS Ruleset / Structure Database
  • 10. What is a Database System? Application Efficient Data Storage One or more files DBMS DBS Ruleset / Structure Database
  • 11. Basic Types of Databases
  • 12. Basic Types of Databases Relational Hierarchical Network Object-Oriented
  • 13. Basic Types of Databases Relational Object-Oriented
  • 14. What is a Relational DB?
  • 15. What is a Relational DB? De-facto Standard
  • 16. What is a Relational DB? De-facto Standard Table-based
  • 17. What is a Relational DB? De-facto Standard Table-based Relation between Tables
  • 18. What is a Relational DB? De-facto Standard Table-based Relation between Tables Stores primitive Types
  • 19. What is a Relational DB? De-facto Standard Table-based Relation between Tables Stores primitive Types Access through SQL (Structured Query Language)
  • 21. An RDB Example ISBN BOOK 1 Kamasutra 2 The Bible 3 Hamlet
  • 22. An RDB Example ISBN BOOK ISBN AUTHOR 1 Kamasutra 1 R. F. Burton 2 The Bible 2 God 3 Hamlet 3 Shakespeare
  • 23. An RDB Example ISBN BOOK ISBN AUTHOR 1 Kamasutra 1 R. F. Burton 2 The Bible 2 God 3 Hamlet 3 Shakespeare ISBN BOOK AUTHOR 1 Kamasutra R. F. Burton 2 The Bible God 3 Hamlet Shakespeare
  • 24. What is an Object-Oriented DB?
  • 25. What is an Object-Oriented DB?
  • 26. What is an Object-Oriented DB? Object-based
  • 27. What is an Object-Oriented DB? Object-based Relations through Objects
  • 28. What is an Object-Oriented DB? Object-based Relations through Objects Database stores complex Objects
  • 29. What is an Object-Oriented DB? Object-based Relations through Objects Database stores complex Objects Access through high-level Language
  • 31. An OODB Example ra Kamasut The Bible o n R. F. Burt 1 God 2 Hamlet re Shakespea 3
  • 32. From DB to the App RDB OODB
  • 33. From DB to the App RDB OODB SELECT * FROM table Primitive Types Object
  • 34. From DB to the App RDB OODB SELECT * FROM table Primitive Types Object Object
  • 35. OODB Sourcecode ObjectContainer oodb = Db4o.openFile("test.oodb"); User chris = new User("Chris"); oodb.store(chris); oodb.store(new User("Christian")); List<User> users = oodb.query(User.class); for (User u : users) { System.out.println(u); } System.out.println(users.get(0).equals(chris)); users = oodb.query(new Predicate<User>() { public boolean match(User user) { return user.getName().contains("Christi"); } }); for (User u : users) { System.out.println(u); } oodb.close();
  • 36. RDB Sourcecode Class.forName("org.gjt.mm.mysql.Driver").newInstance(); Connection con = DriverManager.getConnection("jdbc:mysql://192.168.1.135:3306/foo", "root", "user"); User chris = new User("Chris") con.createStatement().executeQuery("INSERT INTO Users VALUES ("", " + chris.getName() + "); con.createStatement().executeQuery("INSERT INTO Users VALUES ("", " + new User("Chris").getName() + "); ResultSet users = con.createStatement().executeQuery("SELECT * FROM User"); while (users.next()) { User user = new User(users.getInt("id"), user.getString("name")); if (user.getName().equals(chris.getName()) { System.out.println(user.equals(chris)); // false } } con.close();
  • 37. What Do You Think?