1 How to move test data from existing files into a satellite database Jacek Wojcieszuk Jacek Wojcieszuk Warsaw University of Technology.

Slides:



Advertisements
Similar presentations
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
Advertisements

The eXtensible Markup Language (XML) An Applied Tutorial Kevin Thomas.
XML/EDI Overview West Chester Electronic Commerce Resource Center (ECRC)
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
Basics of HTML What is HTML?  HTML or Hyper Text Markup Language is the standard markup language used to create Web pages.  HTML is.
3/5/2009Computer systems1 Analyzing System Using Data Dictionaries Computer System: 1. Data Dictionary 2. Data Dictionary Categories 3. Creating Data Dictionary.
XML Extensible Markup Language Standard supported by W3C (World Wide Web Consortium) HTML – End user oriented (presentation) XML – Application oriented.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
Data Management: Documentation & Metadata Types of Documentation.
Introduction to XML This material is based heavily on the tutorial by the same name at
Manohar – Why XML is Required Problem: We want to save the data and retrieve it further or to transfer over the network. This.
4/20/2017.
ECA 228 Internet/Intranet Design I Intro to XSL. ECA 228 Internet/Intranet Design I XSL basics W3C standards for stylesheets – CSS – XSL: Extensible Markup.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
1 Networks and the Internet A network is a structure linking computers together for the purpose of sharing resources such as printers and files Users typically.
Marco Mesiti Dep. of Computer Science University of Genova XML eXtensible Markup Language.
A. SandovalGSI TPC meeting June 2nd Detector Databases Andres Sandoval.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
XML eXtensible Markup Language w3c standard Why? Store and transport data Easy data exchange Create more languages WSDL (Web Service Description Language)
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Introduction to XML for SOA Lee H. Burstein,
Extensible Markup and Beyond
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
Introduction to XML. XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons.
XML BIS4430 – unit 10. XML Origins Extensible Markup Language (XML) 1998 Inspired by Standard Generalized Markup Language (SGML) and HTML. SGML defines.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
All Web pages are written with some form of HTML (HyperText Markup Language). HTML documents are saved as Text Only files so virtually any computer can.
1 XML: an introduction David Nathan. 2 XML  an in-line markup system  single sequence of plain text only (but can be unicode)  equivalent to a tree.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
10/15/20151 XML. 10/15/20152 Mark-up Languages Digitalizing information Content Format SGML HTML XML RDF OWL …
Lecture 11 XSL Transformations (part 1: Introduction)
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation An Introduction to XML.
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
Basic Table Elements. 2 Objectives Define table elements Describe the steps used to plan, design, and code a table Create a borderless table with text.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
XML Basics A brief introduction to XML in general 1XML Basics.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
The Web Wizard’s Guide to HTML Chapter One World Wide Web Basics.
Structured Documents - XML and FrameMaker 7 Asit Pant.
Introduction to XML XML – Extensible Markup Language.
Computing & Information Sciences Kansas State University Friday, 20 Oct 2006CIS 560: Database System Concepts Lecture 24 of 42 Friday, 20 October 2006.
IT Accessibility Committee XML as Content Management Presented by Michael B. Short May 11, 2006 Prepared by the NYS Forum IT Accessibility Committee
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
University of Nottingham School of Computer Science & Information Technology Introduction to XML 2. XSLT Tim Brailsford.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XML Extensible Markup Language
XML Schema – XSLT Week 8 Web site:
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
1 XSLT XSLT (extensible stylesheet language – transforms ) is another language to process XML documents. Originally intended as a presentation language:
XML Databases Presented By: Pardeep MT15042 Anurag Goel MT15006.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
XML: Extensible Markup Language
Data Virtualization Tutorial: XSLT and Streaming Transformations
XML QUESTIONS AND ANSWERS
Introduction to XHTML.
XML Data Introduction, Well-formed XML.
Web Design and Development
XML.
CSE591: Data Mining by H. Liu
Allyson Falkner Spokane County ISD
Presentation transcript:

1 How to move test data from existing files into a satellite database Jacek Wojcieszuk Jacek Wojcieszuk Warsaw University of Technology

2 problem description Problems –Test data is usually collected via Labview software –Format of a raw Labview output is not compatible with the database structure so direct transfer of the data is not possible – transformation needed –There is currently many data collected and stored in simple ASCII files –This ASCII files have very often different and uncompatible formats. –To achieve goals of the database system for the Alice detector production, all test data should be stored in databases (including data currently stored in text files) Solutions –Uniform format of the Labview software output (to simplify transfer of data that will be collected in the future). The format should be: readible for a human easy to understand easy to validate not too complicated to process Choice: XML –Software inserting the unified Labview output into the database.

3 Short introduction to XML General information –eXtensible Markup Language –XML is the W3C standard –Similar to HTML –Usually used to describe logical structure of text documents –XML documents can be easily created manually, read, validated, and processed by computer programs –XML has many successful applications in almost all fields of computer science Main elements of XML –XML Documents consist of: elements (e.g. ) Attributes (e.g. ) additional and less important at this point mechanizms like: processing instructions and namespaces Document structure –An XML document has a hierarchical structure XML element can contain any number of attributes, subelements and/or plain text If element element contains other elements or text data it have to consists of beginning and ending tags Attributes can contain only plain text There have to be one and only one outer element (main element) which contains all other elements and/or plain text Any text Any text

4 Proposed XML Structure – exemplary document <data_labview version="1.16" database_structure_version="1.23"> timestamp name and version of the file generator IReS, Strasbourg <column name="USER_CODE">HAL25_TEST_UC <lookup name="TYPE_CODE" source_table="COMPONENT_TYPES" connect_by="NAME">SDDPASCAL 0 <lookup name="MANUFACTURER_CODE" source_table="MANUFACTURERS" connect_by="NAME">TORINO <lookup name="DETECTOR_CODE" source_table="DETECTORS" connect_by="NAME">SDD <lookup name="DATABASE_CODE" source_table="DATABASES" connect_by="NAME">adad 5 <column name="DESCRIPTION">something :21:54+00 <lookup name="COMPONENT_ID" source_table="COMPONENTS" connect_by="USER_CODE">HAL25_TEST_UC <lookup name="PROCESS_CODE" source_table="DEFINITION_OF_PROCESSES" connect_by="NAME">DIECHECK <lookup name="TYPE_CODE" source_table="COMPONENT_TYPES" connect_by="NAME">SDDPASCAL :00: <lookup name="MANUFACTURER_CODE" source_table="MANUFACTURERS" connect_by="NAME">manAWE any desc John Rohn Jimmy abc 1

5 Proposed XML Structure – elements and attributes desc. - root element of the document attributes: –version - version of this file –database_structure_version - version of the database structure subelements: – - this element includes general information about the file subelements: – - when the file was generated – - name of the program which generated the file – - name of the institute which generated the file - this element includes data of components attributes: –name - defines name of the main table in the database and has to be set to "COMPONENTS” subelements: – - this element represents one row of COMPONENTS table subelements: – - this element represents data from tables which are subordinate for "COMPONENTS" table attributes: –name – defines a name of the table in the database where data contained inside the element should go. subelements: –

6 Proposed XML Structure – elements and attributes desc. - this element represents one row of the database table of the name specified as the value of the attribute ‘name’ of the element subelements: – - this element indicates that data which, will be inserted into column, have to be selected from meta data table. Value of this element will be used as the value for column defined by connect_by attribute attributes: –name - this attribute defines name of the column, the value should be inserted in –source_table - this attribute defines name of the table, which we will select data from –connect_by - this attribute defines the name of the column, which will be used in "where" clause. - this element includes value of column which name is defined by name attribute attributes: –name – specifies a name of the column where the value ot the element should go - this element defines tables with process results subelements: – - values table row wrapper attributes: –nr – number of the row subelements: –tc - single value wrapper attributes: –cn – number of the column

7 Step by step – the header and main component’s data Data to transform XML structure version = 1.16 Database structure version = 1.22 Data collected in IRes, Strasbourg Component’s user_code = „Hal25_EXAMPLE” Component’s type name = „SDDAMBRA” Component’s is_virtual attribute = 0 Component’s manufacturer’s name = „WUT” Component’s detector’s name = „SDD” Database’s name = „TORINO” Component’s serial_number = 6 Component’s description = „description” Component’s production_date = „ ” Result of the transformation <data_labview version="1.16" database_structure_version="1.23"> :21:54+00 Generated by hand IReS, Strasbourg HAL25_EXAMPLE <lookup name="TYPE_CODE” source_table="COMPONENT_TYPES" connect_by="NAME">SDDAMBRA 0 <lookup name="MANUFACTURER_CODE" source_table="MANUFACTURERS" connect_by="NAME">WUT <lookup name="DETECTOR_CODE" source_table="DETECTORS" connect_by="NAME">SDD <lookup name="DATABASE_CODE" source_table="DATABASES" connect_by="NAME">TORINO 6 bla bla bla Components table structure: component_id : not null type_code : not null is_skeleton : not null default 0 is_virtual : not null default 0 manufacturer_code : not null detector_code : not null database_code : user_code : serial_number : production_date : description :

8 Step by step - parameters Data to transform Parameter1: Component’s user_code =„ HAL25_TEST_UC” Parameter’s name = „WAFERNO” Component’s type name = „SDDAMBRA” Parameter’s valid_from attribute = „ :21:54+00” Parameter’s value = 34 Parameter2: Component’s user_code =„ HAL25_TEST_UC” Parameter’s name = „Location” Component’s type name = „SDDAMBRA” Parameter’s valid_from attribute = „ :21:54+00” Parameter’s valid_to attribute = „ :21:54+00” Parameter’s value = „Int_lab” Result of the transformation <lookup name="COMPONENT_ID" source_table="COMPONENTS" connect_by="USER_CODE">HAL25_TEST_UC <lookup name="PARAMETER_CODE" source_table="DEFINITION_OF_PARAMETERS" connect_by="NAME">WAFERNO <lookup name="TYPE_CODE" source_table="COMPONENT_TYPES" connect_by="NAME">SDDAMBRA :21: <lookup name="COMPONENT_ID" source_table="COMPONENTS" connect_by="USER_CODE">HAL25_TEST_UC <lookup name="PARAMETER_CODE” source_table="DEFINITION_OF_PARAMETERS" connect_by="NAME">Location <lookup name="TYPE_CODE" source_table="COMPONENT_TYPES" connect_by="NAME">SDDAMBRA :21: :21:54+00 Int_lab

9 Step by step - processes Data to transform Tested component’s user_code = „HAL25_TEST_UC” Process name = „ANYNAME” Component’s type name = „SDDAMBRA” Process_date = „ :00:00+00” Process values = {12, 23}, {4352, 343} Manufacturer’s name = „CERN” Process description = „any desc” Process processed_by attribute = „John Rohn” Process inspected_by attribute = „Jimmy Abc” Process is_valid attribute = 1 Result of the transformation <lookup name="COMPONENT_ID" source_table="COMPONENTS" connect_by="USER_CODE">HAL25_TEST_UC <lookup name="PROCESS_CODE” source_table="DEFINITION_OF_PROCESSES" connect_by="NAME">ANYNAME <lookup name="TYPE_CODE" source_table="COMPONENT_TYPES" connect_by="NAME">SDDAMBRA :00: <lookup name="MANUFACTURER_CODE" source_table="MANUFACTURERS" connect_by="NAME">CERN any desc John Rohn Jimmy Abc 1