Using oXygen 12 with XQuery Using oXygen to build and execute XQuery XQuery applications on eXist Date: April 2011 Dan McCreary President Dan McCreary.

Slides:



Advertisements
Similar presentations
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Using oXygen Using oXygen to build and execute XQuery applications on eXist Date: September 2008 Dan McCreary President Dan McCreary & Associates
Introduction to XQuery and eXist DSA. XSLT Tutorial Problems Bad language : – No ! – for XML schema –Some XSLT engines tolerant of extra tags (permissive),
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Chapter 1 Getting Started With Dreamweaver. Explore the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
5 Copyright © 2009, Oracle. All rights reserved. Defining ETL Mappings for Staging Data.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
Overview of XPath Author: Dan McCreary Date: October, 2008 Version: 0.2 with TEI Examples M D.
Eclipse is an open source IDE (Integrated Development Environment) for developing applications in Java, C/C++, HTML, Cobol, Perl, etc. The official Eclipse.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Getting Started with Dreamweaver
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
WaveMaker Visual AJAX Studio 4.0 Training Studio Overview.
Copyright © 2006, SAS Institute Inc. All rights reserved. Enterprise Guide 4.2 : A Primer SHRUG : Spring 2010 Presented by: Josée Ranger-Lacroix SAS Institute.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Sample Auto-generated XForms With XQuery Date: 1/17/2009 Dan McCreary President Dan McCreary & Associates (952) M D Metadata.
Styling XForms Using CSS to make your forms look great Date: 10/9/2008 Dan McCreary President Dan McCreary & Associates (952)
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
OXygen XML Editor Support for eXist DB XQuery debugging. Stefan Vasile
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Implementing Forms and Form Renderers in the Open Source Portfolio David McPherson, Chris Maurer Will Trillich, Janice Smith Materials by Sean Keesler.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Metadata Management Case Study Date: 10/21/2008 Dan McCreary President Dan McCreary & Associates (952) M D Metadata Solutions.
National Center for Supercomputing Applications NCSA OPIE Presentation November 2000.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
Data Management Console Synonym Editor
EXist Indexing Using the right index for you data Date: 9/29/2008 Dan McCreary President Dan McCreary & Associates (952) M.
Recursive Functions Creating Hierarchical Reports Date: 9/30/2008 Dan McCreary President Dan McCreary & Associates (952) M.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
Version How to Use Packet Tracer MarinaMD.
Browsers © Copyright 2014, Fred McClurg All Rights Reserved.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
XQuery Functions Reusing XQuery Code Date: September, 2008 Dan McCreary President Dan McCreary & Associates (952) M D Metadata.
Auto-generation of Repeated Elements Part 2 of a series of XForms auto generation Date: 1/25/2008 Dan McCreary President Dan McCreary & Associates
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Designer Basics.
Keyword Searching Weighted Federated Search with Key Word in Context Date: 10/2/2008 Dan McCreary President Dan McCreary & Associates
XRX Basic CRUDS Create, Read, Update and Delete and Search XML Data Date: May 2011 Dan McCreary President Dan McCreary & Associates
6 th Annual Focus Users’ Conference 6 th Annual Focus Users’ Conference Import Testing Data Presented by: Adrian Ruiz Presented by: Adrian Ruiz.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Understanding StarTeam Enterprise Advantage Course #4124.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
WinCvs. WinCVS WinCvs is a window based version control system. Use WinCvs when  You want to save every version of your file you have ever created. CVS.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
ICM – API Server & Forms Gary Ratcliffe.
XQuery Labs Basic Reporting Date: 9/29/2008 Dan McCreary President Dan McCreary & Associates (952) M D Metadata Solutions.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
21 Copyright © 2009, Oracle. All rights reserved. Working with Oracle Business Intelligence Answers.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
Navigation Framework using CF Architecture for a Client-Server Application using the open standards of the Web presented by Kedar Desai Differential Technologies,
I Copyright © 2004, Oracle. All rights reserved. Introduction.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
C# Programming: From Problem Analysis to Program Design1 Visual Studio Configuration C# Programming: From Problem Analysis to Program Design 4th Edition.
Getting Started with Dreamweaver
Managing Your Literature Search Using Zotero
Working in the Forms Developer Environment
Data Virtualization Tutorial… CORS and CIS
Data Virtualization Tutorial… OAuth Example using Google Sheets
User Guide PrimePortal – File Archive
Dan McCreary President Dan McCreary & Associates (952) M D
© 2016, Mike Murach & Associates, Inc.
Chrome Developer Tools
Managing Your Literature Search Using Zotero
Web Development in Microsoft Visual Studio 2013
User Guide PrimePortal – File Archive
Getting Started with Dreamweaver
Sequences in XQuery Core data structure of XQuery Date: 8/25/2009
XRX Diagrams Application Architecture Diagrams Date: Aug 21st, 2008
Presentation transcript:

Using oXygen 12 with XQuery Using oXygen to build and execute XQuery XQuery applications on eXist Date: April 2011 Dan McCreary President Dan McCreary & Associates (952) M D Metadata Solutions

M D Copyright 2008 Dan McCreary & Associates 2 Overview Why oXygen? Screen layout Customizing screen layout –Toolbar –Perspectives Editing Setting the Default XQuery engine Auto-completion Using the XPath Builder

M D Copyright 2008 Dan McCreary & Associates 3 Why oXygen? Tools are Important oXygen has become the premiere tool for working with native XML databases oXygen will be our primary XQuery development tool It is important that people feel comfortable with both the tools and the theory behind XQuery Getting to know your tools will make you more productive

M D Copyright 2008 Dan McCreary & Associates 4 oXygen Data Sources Tools -> Preferences

M D Copyright 2008 Dan McCreary & Associates 5 5 eXist driver “jar” files This files are part of the eXist distribution but are used by oXygen to connect to the database The constitute the "database driver" for your eXist connection They must match the version of the database you are using. The files are: –One file from $EXIST_HOME exist.jar –Four files from the lib/core xmldb.jar Xmlrpc client jar files Utility jar files that the XML RPC depends on

M D Copyright 2008 Dan McCreary & Associates 6 Data Source Drivers Note: These are the files for eXist 1.4 and 1.5

M D Copyright 2008 Dan McCreary & Associates 7 Connection to Localhost XML DB URI: xmldb:exist://localhost:8080/exist/xmlrpc

M D Copyright 2008 Dan McCreary & Associates 8 Windows WebDAV Folder localhost:8080/exist/webdav/db

M D Copyright 2008 Dan McCreary & Associates 9 WebDAV vs ReST When using the windows Add Network Place make sure to use the WebDAV url Web Browser (to execute any XQuery) Windows File System (drag and drop)

M D XQuery Validate From the main oXygen menu select Options -> Preferences Copyright 2008 Dan McCreary & Associates 10 Type "XQuery" to filter the preferences Select the data connection name of your eXist server

M D Copyright 2008 Dan McCreary & Associates 11

M D Copyright 2008 Dan McCreary & Associates 12 Major Screen Areas Database browser Editor –note the tabs on the top XPath Expression Builder

M D Copyright 2008 Dan McCreary & Associates 13 Hello World in XQuery xquery version "1.0"; let $message := 'Hello World' return $message

M D Copyright 2008 Dan McCreary & Associates 14 input output Execute Validity

M D Copyright 2008 Dan McCreary & Associates 15 Transformation Scenario A transformation senerio is a specific configuration on how you want to run your transforms You can use oXygen’s built-in Saxon XQuery processor for doing standard XQuery testing on small local files Saxon is highly compliant with XQuery 1.0 and because it runs as part of oXygen you can do advanced stepwise debugging within oXygen You will not be able to use Saxon if you are using any of eXist’s XQuery extension in your XQuery

M D Copyright 2008 Dan McCreary & Associates 16 Testing with Saxon The default oXygen XQuery engine is Saxon. Saxon XQuery XML Output

M D Copyright 2008 Dan McCreary & Associates 17 Executing on eXist oXygen eXist “jars” XQuery XML Output eXist

M D Copyright 2008 Dan McCreary & Associates 18 Return results from eXist to oXygen

M D Copyright 2008 Dan McCreary & Associates 19 HTML Rendering Within oXygen Configure oXygen to render results directly into web browser view Note this is part of the transformation scenario Check Here

M D Copyright 2008 Dan McCreary & Associates 20 HTML Output in Lower Window

M D Copyright 2008 Dan McCreary & Associates 21 Note Many context-aware functions that will run correctly if executed from a browser may not run within oXygen oXygen does not pull in server-side CSS files There is currently no way to configure what rendering engine oXygen uses (IE, FireFox, Chrome etc) For best results, test in at least two different browsers, especially if you are using complex CSS files

M D Copyright 2008 Dan McCreary & Associates 22 Toolbars Can be customized to your preferences Highly recommended for this class: –File –Edit –Transformation –XPath

M D Copyright 2008 Dan McCreary & Associates 23 Configure Toolbars I use the following In this class: XPath Validate Transform

M D Copyright 2008 Dan McCreary & Associates 24 Saving Your Perspective This will save the positions of all your views within oXygen.

M D Copyright 2007 Dan McCreary & Associates 25 of N Default XQuery Valuator

M D Autocomplete Types of Autocomplete 1.Built-in XPath/XQuery functions Examples: concat, sum, current-date 2.eXist extension modules (request, xmldb) 3.Your own custom modules (style, auth) 4.Module variables ( they start with your $your-namespace ) 5.Local variables Things to watch for Copyright 2008 Dan McCreary & Associates 26

M D Auto-completion XPath Copyright 2010 Dan McCreary & Associates 27 of N Type "fn:" in any part of your xquery Type "fn:s" to find all built-in functions that start with "s"

M D Autocomplete eXist Modules Copyright 2008 Dan McCreary & Associates 28 Type in "xmldb:" in any part of your XQuery The drop-down list will appear

M D As you type field-specification As you type a function oXygen tells you what the parameter is and its type Copyright 2010 Dan McCreary & Associates 29 Current parameter and type in bold

M D Test eXist Module Auto-compleation Copyright 2010 Dan McCreary & Associates 30 Type "xmldb:" in any part of your xquery

M D Copyright 2008 Dan McCreary & Associates 31 Subversion Version control system Examples stored at Google Code – You can “checkout” a read-only copy using Subversion’s Subversion Client (Syncro SVN) From oXygen: –Tools -> SVN Client

M D Copyright 2008 Dan McCreary & Associates 32 Subversion Access

M D Copyright 2008 Dan McCreary & Associates 33 Thank You! Please contact me for more information: Metadata Management Services Web Services Service Oriented Architectures Business Intelligence and Data Warehouse Metadata Registries Semantic Web Dan McCreary, President Dan McCreary & Associates Metadata Strategy Development (952)