Download presentation
Presentation is loading. Please wait.
1
XSD Code to RDBMS Script
Copyright 2003, CEC Services, LLC All Rights Reserved
2
Copyright 2003, CEC Services, LLC All Rights Reserved
XSD-RDBMS Promotes interoperability of standards Implements Draft EIA836 in RDBMS Performs in real-time with LTT Converts XML to DTD to XSD Auto-translates XSD to RDBMS scripts Runs industrial grade software factory Copyright 2003, CEC Services, LLC All Rights Reserved
3
Copyright 2003, CEC Services, LLC All Rights Reserved
Tool Set History Many move XML to DTD Some move DTD to XSD Few move XSD to graphical diagrams Fewer move RDBMS into XSD Only one moves XSD to RDBMS FOR MORE INFO... See the demo CD available by request from cec-services.com. Copyright 2003, CEC Services, LLC All Rights Reserved
4
Copyright 2003, CEC Services, LLC All Rights Reserved
How It Works Input XSD code (from any source) Element names, references, data types, attributes, enumerated values Output RDBMS scripts (XSD-RDBMS) Tables, columns, data types, indexes, views, insertion of enumerated values Real-time database use (LTT) Software factory with zero defect code Copyright 2003, CEC Services, LLC All Rights Reserved
5
Complex Input to Simple Output
Input nearly unreadable by humans: <xsd:element ref=“Z” minOccurs=“1” maxOccurs =“unbounded”/> Output in very clear ANSI SQL: create table T ( Z char( 1) not null) ; FOR MORE INFO... See the technical paper on the CD from cec-services.com. Copyright 2003, CEC Services, LLC All Rights Reserved
6
Copyright 2003, CEC Services, LLC All Rights Reserved
Assumptions XSD is logically correct Some XSD is legal but overly complex Element names map to table names Element refs map to column names Attributes map to column data types Simple sub-types map to column enumerations Copyright 2003, CEC Services, LLC All Rights Reserved
7
Copyright 2003, CEC Services, LLC All Rights Reserved
XSD Code Quirks XSD type levels may become convoluted <xsd:attribute name=“TMC” type=“DTTMC”/> </xsd:simpleType name=“DTTMC” ..“:string”> <xsd:attribute name=“DTTMC” type=“string”/> Hungarian Notation is uNrEaDaBle DocTransfer-TransferMethod-Codetype doc_transfer_transfer_method_code_type Punctuation characters allowed in names XSD names often exceed 30 characters Copyright 2003, CEC Services, LLC All Rights Reserved
8
Copyright 2003, CEC Services, LLC All Rights Reserved
RDBMS Script Quirks Column names up to 30 characters Required by IBM DB2 and ORACLE Table names up to 30 characters Required by ORACLE only Some characters illegal in names - dash, . period, : colon FOR MORE INFO... See the demo CD available by request from cec-services.com. Copyright 2003, CEC Services, LLC All Rights Reserved
9
Copyright 2003, CEC Services, LLC All Rights Reserved
XSD Logic Quirks: Many Sub-types may refer to element names, reference names, data types, and enums Enums allowed for refs tied to sibling refs with minOccurs=1, ie insert without key Multiple, conflicting redefinitions of the same element coexist in the same system Infinite level of indirection is encouraged The only thing to come out of computer science in the last three years Copyright 2003, CEC Services, LLC All Rights Reserved
10
RDBMS Logic Quirks: None
XSD sub-type to an element name is a column name referring to a table name RDBMS makes that script as a VIEW of the table named by the column and the table containing the named column Columns with no parent tables map to a table named Orphan__[xsd_infile_name] Orphan refs to the same unnamed table promote to a new table name and column Copyright 2003, CEC Services, LLC All Rights Reserved
11
XSD-RDBMS: Script Output
1. “CREATE TABLE” scripts The shorter of a duplicate script is ignored 2. “ALTER TABLE” index scripts 3. “CREATE VIEW” scripts 4. “INSERT INTO” enum scripts An insert into an indexed table on any column other than the key is ignored Copyright 2003, CEC Services, LLC All Rights Reserved
12
Script Output for Draft EIA-836
1. “CREATE TABLE” scripts used: 604 One duplicate ignored as nearly identical 2. “ALTER TABLE” index scripts used: 53 3. “CREATE VIEW” scripts used: 216 4. “INSERT INTO” scripts used: 267 20 ignored for no respective primary key insert Uml file, with input and output size of 0.6 MB and 0.8 MB, was ignored because so many label names truncated to the same Copyright 2003, CEC Services, LLC All Rights Reserved
13
Applying LTT to Draft EIA-836
LTT (Logic Table Technology) stores logic flow in switches LTT allows RDBMS to perform in real-time Draft EIA-836 logic is not perfected due in part to XSD as a limited medium Finalized EIA-836 is a candidate for mapping processes into LTT The database core is available; everyone is waiting for the final processing logic Copyright 2003, CEC Services, LLC All Rights Reserved
14
Copyright 2003, CEC Services, LLC All Rights Reserved
Recent Advances Text manipulation of XSD-RDBMS quickly implemented in ANSI True BASIC® XSD to RDBMS mapping is now automated with high reliability XSD exposed as a fad medium with limited tool capability Copyright 2003, CEC Services, LLC All Rights Reserved
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.