logging in or signing up chelsom2 Mikhail Download Post to : URL : Related Presentations : Share Add to Flag Embed Email Send to Blogs and Networks Add to Channel Uploaded from authorPOINTLite Insert YouTube videos in PowerPont slides with aS Desktop Copy embed code: (To copy code, click on the text box) Embed: URL: Thumbnail: WordPress Embed Customize Embed The presentation is successfully added In Your Favorites. Views: 163 Category: Entertainment License: All Rights Reserved Like it (0) Dislike it (0) Added: November 19, 2007 This Presentation is Public Favorites: 0 Presentation Description No description available. Comments Posting comment... Premium member Presentation Transcript Database or Document Schemas?: Database or Document Schemas? Choosing the Right Tools for the Job John Chelsom, CSW Group Ltd john.chelsom@csw.co.ukDatabase or Document Schemas?: Database or Document Schemas? How to choose the right tools for the job Applications with databases and XML Modeling an application (example) As information-driven application As a document-driven application Which is the right approach? Architecture decisions in real life When to use which approachApplication Architectures: Application Architectures With XML and DatabasesMulti-tiered Application: Multi-tiered ApplicationMulti-tiered XML Application: Multi-tiered XML Application XML may exist at any tier Generated by Presentation tier, manipulated on client Generated by business objects, manipulated in XML tier Manipulated by business objects Generated in data access tier Stored in databaseThree Types of XML Database: Three Types of XML Database XML generating database deliver XML generated from database XML document database store documents or fragments in the database XML component database decompose XML document to database objectsXML Generating Database: XML Generating Database Information structured in database, not documents Driven by database schema, not XML schema/DTD Database and XML schema must be developed together Database structures updated without XML processing But may hold fragments of XML Generates XML on output XML awareness in extraction process (e.g. JSP)Using SQL Server 2000: Using SQL Server 2000XML Document Database: XML Document Database Information structured as XML documents XML schema/DTD defines data structures database schema is for document management Stores sets of elements and entities (documents) Stores document configurations Build lists, Use by Reference Can import and export complete XML documentsUsing Oracle: Using OracleXML Component Database: XML Component Database Stores XML documents, elements, entities Structures information as XML object hierarchy Can address and access XML objects at any level Imports and exports documents and fragments Has full XML awarenessAstoria (Lightspeed): Astoria (Lightspeed)Database Technology: Database Technology Not the same as the conceptual types of XML database we’ve just seen Relational databases Object oriented databases Native XML databasesXML Applications with RDBMS: XML Applications with RDBMS XML from business objects Business objects from XML Potentially two levels of data transformation RDBMS vendors are moving to add XML Type supportXML Applications with ODBMS: XML Applications with ODBMS XML data is inherently object-oriented Can be mapped to objects and stored persistently that may mean a relational database with O-O middlewareApplications with Native XML DB: Applications with Native XML DB XML data written directly to disk May (ultimately) be the most efficient systems All data must be in XML Products are extending to handle relational data and SQL queriesAn Example Application: An Example Application Simple news event information systemUse Case: Use Case News items can originate from many sources usually a single news item originates from a single source but sometimes it can be from several One or more Creators write the news item consists of a headline and paragraphs of text Creators may include some material from Contributors The Creator adds meta data to the news item subject, country where event occurred, publication date Once completed, the news item is distributed to clients through two different channels As HTML through a web site, customised for user profile/preferences the user specifies the subjects and countries they are interested in As XML through a news feed filtered by subject, country and publication dateXML is a Standard, Sort Of: XML is a Standard, Sort Of XML is a meta language Each XML application uses a particular XML vocabulary Every business and application could define its own data structures This can be time consuming and expensive Use industry standards where possible “I'm not offended by all the dumb blonde jokes because I know I'm not dumb ... and I also know that I'm not blonde.” Dolly PartonUsed NewsML, a Bit: Used NewsML, a Bit International Press Telecommunications Council www.iptc.orgInformation Driven Application: Information Driven Application Data model is in database schema Relational schema tables, data types, relations Object schema classes, properties, inheritance Schema XML DTD or SchemaImplementation Decisions: Implementation Decisions We will design our news events system as A data-driven application Using an XML generating database On relational database technologyApplication Architecture: Application ArchitectureApplication Design/Development: Application Design/Development Create UML Class diagram Generate code stubs for business objects Create relational database schema Write code to instantiate business objects from database Create XML Schema Write code to map from business objects to XML Write XSL-T to create client interactionRelational Database: Relational DatabaseXML Schema: XML SchemaXML Document: XML DocumentDocument Driven Application: Document Driven Application Database acts as a document manager versions document configuration cross reference and link management document variants (e.g. languages) XML DTD or Schema Data schema is the XML DTD or schemaImplementation Decisions: Implementation Decisions We will now design our news events system as A document-driven application Using an XML component database On native XML database technologyApplication Architecture: Application ArchitectureApplication Design/Development: Application Design/Development Create XML Schema Create code to load XML to and from the database Or use a product that does this for you Create code to manipulate XML data as Business Objects Write XSLT to create client interactionXML Schema: XML SchemaXML Document - Catalog: XML Document - CatalogXML Document – News Item: XML Document – News ItemChoosing the Right Approach: Choosing the Right Approach There is No Right Answer: There is No Right Answer You could probably build any system using any architectural approach (eventually)Some Real Life Decisions: Some Real Life Decisions Jaguar Cars Dealer training material Stemcor Steel trading system UK National Health Service Electronic health recordsSlide38: Jaguar Training GuidesSlide39: Locating and Reusing GraphicsStructured Authoring: Structured AuthoringSlide41: Automated PaginationSystem Architecture: System ArchitectureJaguar System Design: Jaguar System Design A typical technical document management system Authors work with an XML editor Documents are controlled at ‘lesson’ level (ie in quite large chunks) Document-driven Using an XML Document Database (actually used a component manager, but this wasn’t really necessary) On an object-oriented databaseSteel Trading System: Steel Trading SystemSystem Architecture: System Architecture Third Party Trading System XSL Stemcor System Design: Stemcor System Design A typical information management system Use forms to enter and view information about offers to buy and sell steel Information could be passed to online exchanges Information-driven UML design, Java business objects Oracle relational database XML in presentation tier only (XML generating database)Slide47: Integrated Care RecordsViewing The Full Record: Viewing The Full RecordViewing an Event: Viewing an Event Health Records Design: Health Records Design A complex, large scale information management system Basic model of patients, episodes and events Events pass as XML messages between applications (HL7) Access control and security model with complex dependencies Uses a hybrid data/document approach Built on a single relational database Basic model is UML/relational Access control/security is UML/relational Manifests as XACML documents XML generating database Health events modelled as documents XML document managerInformation Model: Information Model Legacy database systems in place Read and write access to fine grained data items need locking and transactions Many connections (relationships) between individual data items XML needed only for presentation and information exchange Document Model: Document Model Information is to be updated in an XML editor Locking at document level Limited or controlled reuse of components Information is read only Information is structured naturally as object collections, with limited connection between objects The schema needs to be flexible accommodate different data structures Formal data management without database schema changesThanks: Thanks Slides will be available online at john.chelsom@csw.co.uk www.csw.co.uk You do not have the permission to view this presentation. In order to view it, please contact the author of the presentation.
chelsom2 Mikhail Download Post to : URL : Related Presentations : Share Add to Flag Embed Email Send to Blogs and Networks Add to Channel Uploaded from authorPOINTLite Insert YouTube videos in PowerPont slides with aS Desktop Copy embed code: (To copy code, click on the text box) Embed: URL: Thumbnail: WordPress Embed Customize Embed The presentation is successfully added In Your Favorites. Views: 163 Category: Entertainment License: All Rights Reserved Like it (0) Dislike it (0) Added: November 19, 2007 This Presentation is Public Favorites: 0 Presentation Description No description available. Comments Posting comment... Premium member Presentation Transcript Database or Document Schemas?: Database or Document Schemas? Choosing the Right Tools for the Job John Chelsom, CSW Group Ltd john.chelsom@csw.co.ukDatabase or Document Schemas?: Database or Document Schemas? How to choose the right tools for the job Applications with databases and XML Modeling an application (example) As information-driven application As a document-driven application Which is the right approach? Architecture decisions in real life When to use which approachApplication Architectures: Application Architectures With XML and DatabasesMulti-tiered Application: Multi-tiered ApplicationMulti-tiered XML Application: Multi-tiered XML Application XML may exist at any tier Generated by Presentation tier, manipulated on client Generated by business objects, manipulated in XML tier Manipulated by business objects Generated in data access tier Stored in databaseThree Types of XML Database: Three Types of XML Database XML generating database deliver XML generated from database XML document database store documents or fragments in the database XML component database decompose XML document to database objectsXML Generating Database: XML Generating Database Information structured in database, not documents Driven by database schema, not XML schema/DTD Database and XML schema must be developed together Database structures updated without XML processing But may hold fragments of XML Generates XML on output XML awareness in extraction process (e.g. JSP)Using SQL Server 2000: Using SQL Server 2000XML Document Database: XML Document Database Information structured as XML documents XML schema/DTD defines data structures database schema is for document management Stores sets of elements and entities (documents) Stores document configurations Build lists, Use by Reference Can import and export complete XML documentsUsing Oracle: Using OracleXML Component Database: XML Component Database Stores XML documents, elements, entities Structures information as XML object hierarchy Can address and access XML objects at any level Imports and exports documents and fragments Has full XML awarenessAstoria (Lightspeed): Astoria (Lightspeed)Database Technology: Database Technology Not the same as the conceptual types of XML database we’ve just seen Relational databases Object oriented databases Native XML databasesXML Applications with RDBMS: XML Applications with RDBMS XML from business objects Business objects from XML Potentially two levels of data transformation RDBMS vendors are moving to add XML Type supportXML Applications with ODBMS: XML Applications with ODBMS XML data is inherently object-oriented Can be mapped to objects and stored persistently that may mean a relational database with O-O middlewareApplications with Native XML DB: Applications with Native XML DB XML data written directly to disk May (ultimately) be the most efficient systems All data must be in XML Products are extending to handle relational data and SQL queriesAn Example Application: An Example Application Simple news event information systemUse Case: Use Case News items can originate from many sources usually a single news item originates from a single source but sometimes it can be from several One or more Creators write the news item consists of a headline and paragraphs of text Creators may include some material from Contributors The Creator adds meta data to the news item subject, country where event occurred, publication date Once completed, the news item is distributed to clients through two different channels As HTML through a web site, customised for user profile/preferences the user specifies the subjects and countries they are interested in As XML through a news feed filtered by subject, country and publication dateXML is a Standard, Sort Of: XML is a Standard, Sort Of XML is a meta language Each XML application uses a particular XML vocabulary Every business and application could define its own data structures This can be time consuming and expensive Use industry standards where possible “I'm not offended by all the dumb blonde jokes because I know I'm not dumb ... and I also know that I'm not blonde.” Dolly PartonUsed NewsML, a Bit: Used NewsML, a Bit International Press Telecommunications Council www.iptc.orgInformation Driven Application: Information Driven Application Data model is in database schema Relational schema tables, data types, relations Object schema classes, properties, inheritance Schema XML DTD or SchemaImplementation Decisions: Implementation Decisions We will design our news events system as A data-driven application Using an XML generating database On relational database technologyApplication Architecture: Application ArchitectureApplication Design/Development: Application Design/Development Create UML Class diagram Generate code stubs for business objects Create relational database schema Write code to instantiate business objects from database Create XML Schema Write code to map from business objects to XML Write XSL-T to create client interactionRelational Database: Relational DatabaseXML Schema: XML SchemaXML Document: XML DocumentDocument Driven Application: Document Driven Application Database acts as a document manager versions document configuration cross reference and link management document variants (e.g. languages) XML DTD or Schema Data schema is the XML DTD or schemaImplementation Decisions: Implementation Decisions We will now design our news events system as A document-driven application Using an XML component database On native XML database technologyApplication Architecture: Application ArchitectureApplication Design/Development: Application Design/Development Create XML Schema Create code to load XML to and from the database Or use a product that does this for you Create code to manipulate XML data as Business Objects Write XSLT to create client interactionXML Schema: XML SchemaXML Document - Catalog: XML Document - CatalogXML Document – News Item: XML Document – News ItemChoosing the Right Approach: Choosing the Right Approach There is No Right Answer: There is No Right Answer You could probably build any system using any architectural approach (eventually)Some Real Life Decisions: Some Real Life Decisions Jaguar Cars Dealer training material Stemcor Steel trading system UK National Health Service Electronic health recordsSlide38: Jaguar Training GuidesSlide39: Locating and Reusing GraphicsStructured Authoring: Structured AuthoringSlide41: Automated PaginationSystem Architecture: System ArchitectureJaguar System Design: Jaguar System Design A typical technical document management system Authors work with an XML editor Documents are controlled at ‘lesson’ level (ie in quite large chunks) Document-driven Using an XML Document Database (actually used a component manager, but this wasn’t really necessary) On an object-oriented databaseSteel Trading System: Steel Trading SystemSystem Architecture: System Architecture Third Party Trading System XSL Stemcor System Design: Stemcor System Design A typical information management system Use forms to enter and view information about offers to buy and sell steel Information could be passed to online exchanges Information-driven UML design, Java business objects Oracle relational database XML in presentation tier only (XML generating database)Slide47: Integrated Care RecordsViewing The Full Record: Viewing The Full RecordViewing an Event: Viewing an Event Health Records Design: Health Records Design A complex, large scale information management system Basic model of patients, episodes and events Events pass as XML messages between applications (HL7) Access control and security model with complex dependencies Uses a hybrid data/document approach Built on a single relational database Basic model is UML/relational Access control/security is UML/relational Manifests as XACML documents XML generating database Health events modelled as documents XML document managerInformation Model: Information Model Legacy database systems in place Read and write access to fine grained data items need locking and transactions Many connections (relationships) between individual data items XML needed only for presentation and information exchange Document Model: Document Model Information is to be updated in an XML editor Locking at document level Limited or controlled reuse of components Information is read only Information is structured naturally as object collections, with limited connection between objects The schema needs to be flexible accommodate different data structures Formal data management without database schema changesThanks: Thanks Slides will be available online at john.chelsom@csw.co.uk www.csw.co.uk