Information Systems 2



Similar documents
Search Engines Chapter 2 Architecture Felix Naumann

Kapitel 2 Unternehmensarchitektur III

Get Related Schatzsuche in SciFinder Scholar

LEARNING AGREEMENT FOR STUDIES

Overview WebServices Web Services Choreography Languages. WebServices. Jan Krüger

Microsoft Nano Server «Tuva» Rinon Belegu

SAP Sourcing/CLM Webcast Query & User/Contact Maintenance Web Service

Das Verb to be im Präsens

FOR TEACHERS ONLY The University of the State of New York

Certificate SAP INTEGRATION CERTIFICATION

Microsoft Certified IT Professional (MCITP) MCTS: Windows 7, Configuration ( )

Implementing Data Models and Reports with Microsoft SQL Server

Exemplar for Internal Achievement Standard. German Level 1

Level 2 German, 2014

Integrating Jalopy code formatting in CVS repositories

Software / FileMaker / Plug-Ins Mailit 6 for FileMaker 10-13

AnyWeb AG

AP WORLD LANGUAGE AND CULTURE EXAMS 2012 SCORING GUIDELINES

Run SAP Implementation Partner Program Guide 2009 ADOPTING THE RUN METHODOLOGY INTO YOUR SAP IMPLEMENTATIONS

Is Cloud relevant for SOA? Corsin Decurtins

Cloud Performance Group 1. Event. 14. Januar 2016 / Matthias Gessenay (matthias.gessenay@corporatesoftware.ch)

ida.com excellence in dependable automation

GCE EXAMINERS' REPORTS. GERMAN AS/Advanced

Innovative network monitoring technologies for hydraulically not separated large zones

Exemplar for Internal Assessment Resource German Level 1. Resource title: Planning a School Exchange

SAP Enterprise Portal 6.0 KM Platform Delta Features

Mark Scheme. German GERM1. (Specification 2660) Unit 1: Listening, Reading and Writing. General Certificate of Education (A-level) June 2011

Voraussetzungen/ Prerequisites *for English see below*

Semantic Web. Semantic Web: Resource Description Framework (RDF) cont. Resource Description Framework (RDF) W3C Definition:

Application example AC500 Scalable PLC for Individual Automation Communication between AC500 and KNX network abb

SAP Solution Manager Change Request Management. SAP Solution Manager Product Management SAP AG

SAP CRM Detailed View SAP CRM Web Service Tool

IAC-BOX Network Integration. IAC-BOX Network Integration IACBOX.COM. Version English

Exchange Synchronization AX 2012

Update to V10. Automic Support: Best Practices Josef Scharl. Please ask your questions here Event code 6262

GCE EXAMINERS' REPORTS

Vorläufiges English Programme im akademischen Jahr 2015/2016 Preliminary English Programme in the Academic Year 2015/2016 *for English see below*

Vorläufiges English Programme im akademischen Jahr 2015/2016 Preliminary English Programme in the Academic Year 2015/2016 *for English see below*

Eurohansia. working in partnership

It is also possible to combine courses from the English and the German programme, which is of course available for everyone!

Use of DB2 purescale with SAP Applications

I Textarbeit. Text 1. I never leave my horse

TIn 1: Lecture 3: Lernziele. Lecture 3 The Belly of the Architect. Basic internal components of the Pointers and data storage in memory

Customer Surveys with SAP Contact Center

MUK-IT 63. Roundtable. Herzlich Willkommen bei der Software AG. Anton Hofmeier VP Sales Terracotta DACH / MdGL

Mit einem Auge auf den mathema/schen Horizont: Was der Lehrer braucht für die Zukun= seiner Schüler

J2EE-Application Server

Multiple Components in One Database -

Leitfaden für die Antragstellung zur Förderung einer nationalen Biomaterialbankeninitiative

First Environmental Comparison of Rail Transport

Satzstellung. Satzstellung Theorie. learning target. rules

Designing and Deploying Messaging Solutions with Microsoft Exchange Server 2010 MOC 10233

Bei Fragen zu dieser Änderung wenden Sie sich bitte an Ihren Kundenbetreuer, der Ihnen gerne weiterhilft.

Heterogeneous ABAP System Copy Technical Overview

Vergleich der Versionen von Kapitel 1 des EU-GMP-Leitfaden (Oktober 2012) 01 July November Januar 2013 Kommentar Maas & Peither

RFC's und Internet- Drafts mit URN-Bezug in Zusammenhang mit der Definition von Namen. Nik Klever FB Informatik - FH Augsburg klever@fh-augsburg.

SAP NetWeaver Gateway Throughput & Scalability. David Freidlin

Berufsakademie Mannheim University of Co-operative Education Department of Information Technology (International)

SAP Product Road Map SAP Mobile Documents

Symantec Backup Exec (TM) 13 Installation Log

Gurkensalat statt Spaghetticode. Stuttgarter Testtage 2013

Testen mit Produktionsdaten Fluch oder Segen?

QAS DEBUG - User und Computer

BACKUP EAGLE. Release Notes. Version: Date: 11/25/2011

English Programme im akademischen Jahr 2014/2015 English Programme in the Academic Year 2014/2015 *for English see below*

INSRUCTION MANUAL AND GUARANTEE POLICY

Upgrading Your Skills to MCSA Windows Server 2012 MOC 20417

Internationale Gute Praxis für den Umgang mit Baggergut

Prepress / Computer To Film / RIP - Xitron Navigator HQ RIP V7.2 für Linotronic von Highwater

Using Digital Libraries for E-Learning: Environments, Projects, Interfaces

Designing and Implementing a Server Infrastructure MOC 20413

Stefan Engelberg (IDS Mannheim), Workshop Corpora in Lexical Research, Bucharest, Nov [Folie 1]

" # Portal Integration SAP AG 2004, 3

10. KLASSE DER MITTELSCHULE ABSCHLUSSPRÜFUNG ZUM ERWERB DES MITTLEREN SCHULABSCHLUSSES 2012 ENGLISCH. 19. Juni 2012.

Building a multi-source universe

mysap Supply Chain Management Solution Map Release 2005

Michael Collet 28th January 2005, Frankfurt, GI -Fachgruppe SECMGT

Open Text Social Media. Actual Status, Strategy and Roadmap

Multipurpsoe Business Partner Certificates Guideline for the Business Partner

Brauche neues Power Supply

22. April 2010 Siemens Enterprise Communications

0525 GERMAN (FOREIGN LANGUAGE)

Making SAP s User Experience Strategy Reality Nis Boy Naeve, Andreas Hauser SAP SE SESSION CODE: UX204

Management and Monitoring of a J2EE Server and Applications Using JMX. Reinhold Kautzleben, Gregor Frey Speaker Title, SAP AG

Mark Scheme. German Specification. General Certificate of Education. Listening, Reading and Writing examination - June series

Database-Supported XML Processors

1. Scope ebm-papst Mulfingen GmbH & Co. KG: ebm-papst St. Georgen GmbH & Co. KG: WN ebm-papst Landshut GmbH:

Student Booklet. Name.. Form..

Windows HPC Server 2008 Deployment

SPICE auf der Überholspur. Vergleich von ISO (TR) und Automotive SPICE

Closed-Loop Engineering Integrated Product Development at a Vehicle Manufacturer

Transcription:

Information Systems 2 Prof. Dr. Dr. L. Schmidt-Thieme MSc. André Busche Übung 9

0. Allerlei 1. Übung 2. Hands on some things 2.1 Saxon 2.2 Corba 28.06.10 2/

0. Allerlei 1. Übung 2. Hands on some things 2.1 Saxon 2.2 Corba 28.06.10 3/

Software (XML Editoren) Altova XML Spy http://www.altova.com/ Oxygen XML Editor http://www.oxygenxml.com (WTP Eclipse-Plugins) und sehr, sehr viele andere! Ein guter Editor - validiert nach DTD/XML Schema - Erlaubt point-and-click XSLT Transformationen/XQuery anfragen - Unterstützt verschiedene XML Parser/Prozessoren 28.06.10 4/

0. Allerlei 1. Übung 2. Hands on sme things 2.1 Saxon 2.2 Corba 28.06.10 5/

Aufgabe 1a) Zeigen Sie 2 selbstkonstruierte Beispiele für mögliche praktische Einsätze von XQuery! Geben Sie an, was für Informationen Sie in den XML-Dokumenten speichern, und welche Informationen Sie anfragen! Wahlfreie Antwort... XML: Speicherung von Flügen XQuery: Anfrage von/nach/wann/etc. XML: Speicherung von Kursen und deren Beziehungen (Vorbedingungen, etc.) XQuery: Gegeben Vorkenntnisse X1, X2, X3, List verfügbare Kurse in Format Y auf.. 28.06.10 6/

Aufgabe 1b) <?xml version="1.0" encoding="utf-8"?> <project> <task> <description>build up the tent</description> <responsible>peter</responsible> <startsat>10:00</startsat> <endsat>12:00</endsat> </task> <task> <description>transport the food for lunch</description> <responsible>anna</responsible> <startsat>09:30</startsat> <endsat>10:30</endsat> </task> <task> <description>prepair the lunch</description> <responsible>tomas</responsible> <startsat>11:00</startsat> <endsat>12:00</endsat> </task> <task> <description>distribute lunch</description> <responsible>tomas, Anna</responsible> <startsat>12:00</startsat> <endsat>13:00</endsat> </task> <task> <description>make a concert</description> <responsible>peter</responsible> <startsat>13:30</startsat> <endsat>15:00</endsat> </task> <task> <description>collect rubish</description> <responsible>unassigned</responsible> <startsat>15:00</startsat> <endsat>17:00</endsat> </task> </project> 28.06.10 7/

Aufgabe 1b -1) for $x in /project/task where ($x/startat="13:30") return $x/responsible 28.06.10 8/

Aufgabe 1b -1) <?xml version="1.0" encoding="utf-8"?> <project> <task> <description>build up the tent</description> <responsible>peter</responsible> <startsat>10:00</startsat> <endsat>12:00</endsat> </task> <task> <description>transport the food for lunch</description> <responsible>anna</responsible> <startsat>09:30</startsat> <endsat>10:30</endsat> </task> <task> <description>prepair the lunch</description> <responsible>tomas</responsible> <startsat>11:00</startsat> <endsat>12:00</endsat> </task> <task> <description>distribute lunch</description> <responsible>tomas, Anna</responsible> <startsat>12:00</startsat> <endsat>13:00</endsat> </task> <task> <description>make a concert</description> <responsible>peter</responsible> <startsat>13:30</startsat> <endsat>15:00</endsat> </task> <task> <description>collect rubish</description> <responsible>unassigned</responsible> <startsat>15:00</startsat> <endsat>17:00</endsat> </task> </project> for $x in /project/task where ($x/startat="13:30") Welche(r) Knoten ist/sind an $x gebunden? 28.06.10 9/

Welche(r) Knoten ist/sind an $x gebunden? KEINER! <task> <description>make a concert</description> <responsible>peter</responsible> <startsat>13:30</startsat> <endsat>15:00</endsat> </task> <startsat> for $x in /project/task where ($x/startat="13:30") 28.06.10 10/

Aufgabe 1b -2) <html><body><table> { for $x in /project/task order by $x/description richtig? return <tr><td>{data($x/description)}</td> <td>{data($x/startsat)}</td> <td>{data($x/endsat)}</td> } </table></body></html> Ist die Query 28.06.10 11/

Aufgabe 1b -2) <html><body><table> { for $x in /project/task NEIN! order by $x/description return <tr><td>{data($x/description)}</td> <td>{data($x/startsat)}</td> <td>{data($x/endsat)}</td> } </table></body></html> </tr> 28.06.10 12/

Aufgabe 1b-2) <html><body><table> { for $x in /project/task order by $x/description return <tr> <td>{data($x/description)}</td> <td>{data($x/startsat)}</td> <td>{data($x/endsat)}</td></tr> }, </table></body></html> 28.06.10 13/

<?xml version="1.0" encoding="utf-8"?> <html> <body> <table><tr> <td>build up the tent</td> <td>10:00</td> <td>12:00</td> </tr><tr> <td>collect rubish</td> <td>15:00</td> <td>17:00</td> </tr><tr> <td>distribute lunch</td> <td>12:00</td> <td>13:00</td> </tr><tr> <td> Make a concert</td> <td>13:30</td> <td>15:00</td> </tr><tr> <td>prepair the lunch</td> <td>11:00</td> <td>12:00</td> </tr><tr> <td>transport the food for lunch</td> <td>09:30</td> <td>10:30</td> </tr></table> </body> </html> Ergebnis Und warum? 28.06.10 14/

Aufgabe 1b) <?xml version="1.0" encoding="utf-8"?> <project> <task> <description>build up the tent</description> <responsible>peter</responsible> <startsat>10:00</startsat> <endsat>12:00</endsat> </task> <task> <description>transport the food for lunch</description> <responsible>anna</responsible> <startsat>09:30</startsat> <endsat>10:30</endsat> </task> <task> <description>prepair the lunch</description> <responsible>tomas</responsible> <startsat>11:00</startsat> <endsat>12:00</endsat> </task> <task> <description>distribute lunch</description> <responsible>tomas, Anna</responsible> <startsat>12:00</startsat> <endsat>13:00</endsat> </task> <task> <description>make a concert</description> <responsible>peter</responsible> <startsat>13:30</startsat> <endsat>15:00</endsat> </task> <task> <description>collect rubish</description> <responsible>unassigned</responsible> <startsat>15:00</startsat> <endsat>17:00</endsat> </task> </project> for $x in /project/task order by $x/description Welche(r) Knoten ist/sind an $x gebunden? 28.06.10 15/

Welche(r) Knoten ist/sind an $x gebunden? ALLE <task>! und was machen wir damit? return <tr> <td>{data($x/description)}</td> <td>{data($x/startsat)}</td> <td>{data($x/endsat)}</td></tr> 28.06.10 16/

Also... <?xml version="1.0" encoding="utf-8"?> <html> <body> <table><tr> <td>build up the tent</td> <td>10:00</td> <td>12:00</td> </tr><tr> <td>collect rubish</td> <td>15:00</td> <td>17:00</td> </tr><tr> <td>distribute lunch</td> <td>12:00</td> <td>13:00</td> </tr><tr> <td> Make a concert</td> <td>13:30</td> <td>15:00</td> </tr><tr> <td>prepair the lunch</td> <td>11:00</td> <td>12:00</td> </tr><tr> <td>transport the food for lunch</td> <td>09:30</td> <td>10:30</td> </tr></table> </body> André </html> Busche, Information Systems and Machine Learning Lab (ISMLL), Institute of Economics and Information Systems, Institute of Computer Science 28.06.10 17/

Aufgabe 1c) Schreiben Sie eine XQuery-Anfrage, mit dem Sie jene Aufgaben listen, die zu keiner Person zugeordnet sind! keiner Person === UNASSIGNED keiner Person === kein <responsible>-objekt? for $ x in //task[responsible/text()="unassigned"] return $x for $ x in //task[string(responsible)=""] for $ x in return $x //task[not(exists(responsible))] return $x 28.06.10 18/

Aufgabe 1c) die Beschreibung der Aufgabe, wann die Aufgabe anfängt, bis wann sie dauert! for $ x in //task[responsible/text()="unassigned"] return <r>{$x/description, $x/startsat, $x/endsat} </r> for $ x in //task[responsible="unassigned"] return concat(string($x/description), string($x/startsat), string($x/endsat)) 28.06.10 19/

Aufgabe 2) Schreiben Sie eine XQuery-Anfrage, welche als Ergebnis die Namen und Preisen von Produkten liefert. Die Produkte sollen dabei nach dem Preis aufsteigend sortiert werden. <?xml version="1.1"?> <products> <product name="bread" price="1.20"/> <product name="eggs" quantity="10" price="1.49"/> <product name="bio-eggs" quantity="6" price="1.29"/> <product name="milk" price="0.60"/> <product name="orange Juice 50%" price="0.59"/> <product name="orange Juice 100%" price="0.89"/> </products> 28.06.10 20/

Aufgabe 2a) <?xml version="1.1"?> <products> <product name="bread" price="1.20"/> <product name="eggs" quantity="10" price="1.49"/> <product name="bio-eggs" quantity="6" price="1.29"/> <product name="milk" price="0.60"/> <product name="orange Juice 50%" price="0.59"/> <product name="orange Juice 100%" price="0.89"/> </products> for $x in //product order by $x/@price return $x 28.06.10 21/

Aufgabe 2b) for $x Jene Produkte, die teurer, als 1,00 sind, sollen zwischen den Tags <teuer_produkt> bzw. </teuer_produkt> stehen <?xml version="1.1"?> <products> <product name="bread" price="1.20"/> <product name="eggs" quantity="10" price="1.49"/> <product name="bio-eggs" quantity="6" price="1.29"/> <product name="milk" price="0.60"/> <product name="orange Juice 50%" price="0.59"/> <product name="orange Juice 100%" price="0.89"/> </products> in //product order by $x/@price return if($x/@price > 1.00) then <teuer> {string($x/@name)} </teuer> else <billig/> 28.06.10 22/

0. Allerlei 1. Übung 2. Hands on sme things 2.1 Saxon 2.2 Corba 28.06.10 23/

Software (XML Parser und XML Prozessoren) und wer keinen XML Editor hat, geht den Weg zu Fuß z. B. Mit Saxon (www.saxonica.com) aktuelle Version 9.2 (vom 26.4.2010) Document: <?xml version="1.1"?> <test> <p>hallo, Welt!</p> <div>wie geht es dir?</div> </test> XQuery: //p 28.06.10 24/

Nach dem Download von Saxon... 28.06.10 25/

Kann man Saxon benutzen ;-) H:\saxon>java -cp.;saxon9he.jar net.sf.saxon.query\ -q:query1.xquery -s:test.xml <?xml version="1.0" encoding="utf-8"?> <p>hallo, Welt!</p> H:\saxon> Saxon als Script (Windows bat-file): @echo off set SAXON=h:\saxon java -cp.;%saxon%\saxon9he.jar net.sf.saxon.query %* 28.06.10 26/

Saxon als Script ausführen: H:\is2-tut>saxon -qs:"//div" -s:test.xml und 'rumspielen... Vorbedingung: - saxon[.bat] muss im PATH liegen - java.exe auch 28.06.10 27/

0. Allerlei 1. Übung 2. Hands on sme things 2.1 Saxon 2.2 Corba 28.06.10 28/

Corba idlj -fall sample.idl 28.06.10 29/

28.06.10 30/

Corba 28.06.10 31/

28.06.10 32/

Start Server 28.06.10 33/

Start Client 28.06.10 34/