Writing Perform Documents EPCC, University of Edinburgh Amy Krause ( Tom Sugden First International Summer.

Slides:



Advertisements
Similar presentations
Open Grid Service Architecture - Data Access & Integration (OGSA-DAI) Dr Martin Westhead Principal Consultant, EPCC Telephone: Fax:+44.
Advertisements

ECHO Browse Reclassification Document ID: ECHO_Ops_Con_023 Version: 2.
An Overview of OGSA-DAI Kostas Tourlas
“Workflow” in Data Access and Integration An OGSA-DAI/DAIS Perspective Mario Antonioletti EPCC
A Prototype Implementation of a Framework for Organising Virtual Exhibitions over the Web Ali Elbekai, Nick Rossiter School of Computing, Engineering and.
XML: Extensible Markup Language
OGSA-DAI Lectures Part 2 Tom Sugden, EPCC 2 nd International Summer School on Grid Computing, Vico Equense, Italy.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
Amy Krause Applications Consultant, EPCC Tom Sugden Applications Consultant, EPCC OGSA-DAI Client Toolkit Principles.
Amy Krause Applications Consultant, EPCC Tom Sugden Applications Consultant, EPCC OGSA-DAI Usage Scenarios Behind.
Implementing an Activity EPCC, University of Edinburgh Tom Sugden First International Summer School on Grid Computing, Vico Equense,
INTRODUCTION The Group WEB BROWSER FOR RELATION Goals.
Inside the GDS The Engine, Activities, Data Resource Implementations and Role Mapping EPCC, University of Edinburgh Tom Sugden First.
NextGRID & OGSA Data Architectures: Example Scenarios Stephen Davey, NeSC, UK ISSGC06 Summer School, Ischia, Italy 12 th July 2006.
1 An Introduction to OGSA-DAI Konstantinos Karasavvas 13 th September 2005.
Mike Jackson EPCC OGSA-DAI Today Release 2.2 Principles and Architectures for Structured Data Integration: OGSA-DAI.
Integration case study Week 8 – Lecture 1. Enrolment request (Workstation) Application server Database server Database New University Student Record System.
Amy Krause Applications Consultant, EPCC Extending OGSA-DAI Principles and Architectures for Structured Data Integration: OGSA-DAI.
17 July 2006ISSGC06, Ischia, Italy1 Agenda Session 26 – 14:30-16:00 An Overview of OGSA-DAI OGSA-DAI today – and future features How to extend OGSA-DAI.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
SQL Server 2000 and XML Erik Veerman Consultant Intellinet Business Intelligence.
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.
2.2 SQL Server 2005 的 XML 支援功能. Overview XML Enhancements in SQL Server 2005 The xml Data Type Using XQuery.
XML Fundementals XML vs.. HTML XML vs.. HTML XML Document (elements vs. attributes) XML Document (elements vs. attributes) XML and RDBMS XML and RDBMS.
2003 April 151 Data Centres: Connecting to the Real World Clive Page.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Introduction to InfoSec – Recitation 7 Nir Krakowski (nirkrako at post.tau.ac.il) Itamar Gilad (itamargi at post.tau.ac.il)
XML – Extensible Markup Language XML eXtensible – add to language. Markup – delimit info using tags. Language – a way to express info.
DATABASE and XML Moussa Mané. Learning Objectives ● Learn about Native XML Databases ● Learn about the conversion technology available ● Understand New.
IT420: Database Management and Organization XML 21 April 2006 Adina Crăiniceanu
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
Session II Chapter 2 – Chapter 2 – XSLhttp://
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
Extensible Markup and Beyond
Copyright © Orbeon, Inc. All rights reserved. Erik Bruchez Applications of XML Pipelines XML Prague, June 16 th, 2007.
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.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
Lecture 11 XSL Transformations (part 1: Introduction)
OGSA-DAI Architecture The OGSA-DAI Team
RELATIONAL FAULT TOLERANT INTERFACE TO HETEROGENEOUS DISTRIBUTED DATABASES Prof. Osama Abulnaja Afraa Khalifah
1 1 EPCC 2 Curtin Business School & Edinburgh University Management School Michael J. Jackson 1 Ashley D. Lloyd 2 Terence M. Sloan 1 Enabling Access to.
CS 1308 Computer Literacy and the Internet
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.
Data access and integration with OGSA-DAI: OGSA-DQP Steven Lynden University of Manchester.
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.
INFSO-RI Enabling Grids for E-sciencE OGSA DAI Data Access and Integration Marek Ciglan Institute of Informatics, Slovac Academy.
The OGSA-DAI Client Toolkit The OGSA-DAI Team
Mike Jackson EPCC OGSA-DAI Architecture + Extensibility OGSA-DAI Tutorial GGF17, Tokyo.
Amy Krause EPCC OGSA-DAI An Overview OGSA-DAI Technology Update GGF17, Tokyo (Japan)
XML and Database.
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
Neil Chue Hong Project Manager, EPCC OGSA-DAI Requirements Gathering Exercise 2 nd DIALOGUE workshop eSI, 9-10.
Web Services Martin Nečaský, Ph.D. Faculty of Mathematics and Physics Charles University in Prague, Czech Republic Summer 2014.
Mike Jackson EPCC OGSA-DAI Today – Release 8 OGSA-DAI Tutorial GGF17, Tokyo.
1 ECHO ECHO 9.0 for Data Partners Rob Baker January 23, 2007.
OGSA-DAI 简介及其它在 China-VO DAS 系统中的应用 杨阳 中国虚拟天文台研发团队 Chinese Virtual Observatory.
D Copyright © 2004, Oracle. All rights reserved. Using Oracle XML Developer’s Kit.
Apache Cocoon – XML Publishing Framework 데이터베이스 연구실 박사 1 학기 이 세영.
XML 1. Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SAMPLE XML SCHEMA (XSD) 2 Schema is a record definition, analogous to the.
OGSA-DAI.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
Amy Krause EPCC OGSA-DAI An Overview OGSA-DAI on OMII 2.0 OMII The Open Middleware Infrastructure Institute NeSC,
XML: Extensible Markup Language
Database Processing with XML
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Web services, WSDL, SOAP and UDDI
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
2/18/2019.
Presentation transcript:

Writing Perform Documents EPCC, University of Edinburgh Amy Krause ( Tom Sugden First International Summer School on Grid Computing, Vico Equense, Italy

2OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Talk Outline  Introduction and Motivation  Structure of perform documents  Database queries and updates  Parameterisation  Result transformations  Delivery mechanisms

3OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Introduction  Interface to GDS is document- based  GridDataService::perform takes a perform document as its input parameter  Generates a response document

4OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Motivation  To access and integrate with data resources using OGSA-DAI: –Write perform documents OR –Write client utilities to generate perform documents

5OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy What is a perform document?  A perform document contains a series of activities for a GDS to perform –Query a database –Transform the results –Deliver the transformed results  Expressed in XML

6OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy XML Structure  Root element  Top-level elements correspond to activities Performs an SQL query against the data resource Transforms XML data from one structure to another Delivers data to a URL.

7OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Perform Document Validation  Each activity element must validate against an activity schema <xsd:element name="sqlParameter“ minOccurs="0" maxOccurs="unbounded">... <xsd:element name="expression" minOccurs="1" maxOccurs="1">... <xsd:element name="webRowSetStream" minOccurs="1" maxOccurs="1">...

8OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Example Performs a simple SQL query and returns the results in the response document. select * from littleblackbook where id=10

9OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Database Queries  OGSA-DAI R3 includes the following activities for querying databases –sqlQueryStatement Queries a JDBC compliant database –xPathStatement Queries an XML:DB compliant database  Future releases to support –XQuery for XML database –Querying file systems and files  Examples provided: – \examples\GDSPerform\JDBC\query – \examples\GDSPerform\XMLDB\xpath

10OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Example: sqlQueryStatement Performs a simple SQL query and returns the results within the response document. select * from littleblackbook where id=10

11OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Example: xPathStatement Performs a simple XPath statement and delivers the results within the response document. subCollection --> someResourceId -->... -->

12OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Database Updates  OGSA-DAI R3 includes the following activities for updating databases –sqlUpdateStatement Updates a JDBC compliant database using SQL notation –xUpdateStatement Updates an XML:DB compliant database using XUpdate notation  Examples provided: – \examples\GDSPerform\JDBC\update – \examples\GDSPerform\XMLDB\xupdate

13OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Database Management  OGSA-DAI R3 includes the following activities for database management –relationalResourceManagement Creates and drops databases within a JDBC compliant DBMS –xmlCollectionManagement Creates, removes and lists collections within an XML:DB compliant DBMS –xmlResourceManagement Creates, removes and lists the resources contained in collections within XML:DB compliant DBMS  Examples provided – \examples\GDSPerform\XMLDB\collectionManager – \examples\GDSPerform\XMLDB\resourceManager

14OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Example: xmlCollectionManagement Performs a simple XML:DB collection management operation. subCollection --> -->

15OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Transformation Activities  OGSA-DAI R3 includes the following activities for transforming data –xslTransform Transforms XML data from one structure to another using an XML Stylesheet Language Transformation –gzipCompression Compresses data using the GZIP format –zipArchive Archives and compresses data using the ZIP format  Examples provided – \examples\GDSPerform\XMLDB\transform

16OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Example: xslTransformActivity somewhere/transform.xsl Transforms the results of a query into HTML

17OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Parameterisation  Parameterisation allows data to be inserted into a query or update expression FrogSpecimens select * from ? where id>? and id<=?  Currently supported for SQL query and update –sqlQueryStatement –sqlUpdateStatement

18OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Using Parameters  sqlParameter references the output stream of another activity –dataStore activity –deliverFrom activity  references the position of the parameter insert into MyTable values ?

19OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Usings Data Stores  Parameter values can be specified using the dataStore activity FrogSpecimens  sqlParameter references the itemCursor name

20OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Example: sqlQueryStatement with Parameters FrogSpecimens select * from ? where id>? And id

21OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Delivery Activities  Activity output can be delivered: –Synchronously in the response document (default behaviour) –Asynchronously using delivery activities  OGSA-DAI R3 includes the following asynchronous delivery activities: –deliverToGDT and deliverFromGDT Delivers data to and from a GDS using the Grid Data Transport port type. –deliverToGFTP and deliverFromGFTP Delivers data between GDS and GFTP location in both directions. –deliverToURL and deliverFromURL Delivers data between GDS and URL in both directions (ftp, http, https, file)

22OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Delivery Structure Delivery - Push  Input Stream: fromLocal – references the name of another activity  Output Stream: toURL, toGFTP, toGDT – where to push the data to Delivery – Pull  Input Stream: fromURL, fromGFTP, fromGDT – where to pull the data from  OutputStream: toLocal – references the name of another activity

23OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy file://c:/ogsadai/resultsets/newresultset.txt Example Query with Asynchronous Delivery to URL

24OGSA-DAI R3 Tutorial for the International Summer School on Grid Computing, Vico Equense, Italy Practicals  Practical exercises to try out: –Synchronous request –Parameterisation –Transformations –Asynchronous delivery  Further examples – /examples/GDSPerform