1 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. A Two Minute Intro to XML Roger L. Costello David B. Jacobs The MITRE Corporation (The.

Slides:



Advertisements
Similar presentations
May 23, 2004OWL-S straw proposal for SWSL1 OWL-S Straw Proposal Presentation to SWSL Committee May 23, 2004 David Martin Mark Burstein Drew McDermott Deb.
Advertisements

You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Software Requirements
Advanced Piloting Cruise Plot.
1 Roger L. Costello 16 June 2010 XQuery
1 How to Specify Validation Information Roger L. Costello 27 December, 2008.
1 Rules of Thumb for Creating XML Vocabularies for Workflow Applications February 1, 2009.
1 End-User Programming to Support Classroom Activities on Small Devices Craig Prince University of Washington VL/HCC 2008.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 The Web Wizards Guide to PHP by David A. Lash.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 8-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
Service Oriented Architecture Reference Model
Exploiting ebXML Registry Semantics in the eHealth Domain*
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
XP New Perspectives on Microsoft Office Word 2003 Tutorial 7 1 Microsoft Office Word 2003 Tutorial 7 – Collaborating With Others and Creating Web Pages.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
Introduction to HTML, XHTML, and CSS
Determine Eligibility Chapter 4. Determine Eligibility 4-2 Objectives Search for Customer on database Enter application signed date and eligibility determination.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
UKOLN, University of Bath
ZMQS ZMQS
10. Juni 1998reto ambühler ( WELCOME TO THE GATHERING PLACE.
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
Fact-finding Techniques Transparencies
1 WSDL: Web Service Description Language Gary Sharp Mike Breakiron.
ABC Technology Project
Microsoft Office Illustrated Fundamentals Unit C: Getting Started with Unit C: Getting Started with Microsoft Office 2010 Microsoft Office 2010.
1 What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight.
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
The World Wide Web. 2 The Web is an infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that.
Software Requirements
Squares and Square Root WALK. Solve each problem REVIEW:
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
Introduction to Databases
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
XML INTRODUCTION Prepared by Hongming Yu Modified by Fernando Farfán.
Getting Familiar with Web Pages 1 2 The Internet Worldwide collection of interconnected computer networks that enables businesses, organizations, governments,
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
XML Craig Stewart Dr. Alexandra I. Cristea
Dr. Alexandra I. Cristea XHTML.
25 seconds left…...
Week 1.
Parsing for XML Developers Roger L. Costello 28 September 2014.
We will resume in: 25 Minutes.
1 PART 1 ILLUSTRATION OF DOCUMENTS  Brief introduction to the documents contained in the envelope  Detailed clarification of the documents content.
1 Web Services Based partially on Sun Java Tutorial at Also, XML, Java and the Future of The Web, Jon Bosak. And WSDL.
Equivalence Relations
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
1 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. The Robber and the Speeder Roger L. Costello David B. Jacobs The MITRE Corporation.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
1 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. A Five Minute Intro to XML Roger L. Costello The MITRE Corporation.
1 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. A Quick Introduction to OWL Web Ontology Language Roger L. Costello David B. Jacobs.
1 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. A Quick Introduction to OWL Web Ontology Language Roger L. Costello David B. Jacobs.
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.
Presentation transcript:

1 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. A Two Minute Intro to XML Roger L. Costello David B. Jacobs The MITRE Corporation (The creation of this tutorial was sponsored by DARPA)

2 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. XML is an Acronym … standing for: eXtensible Markup Language

3 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. You have data … How should you structure it? medium-altitude, long-endurance unmanned aerial vehicle 14.7 meters 512 kilograms 70 knots Here's some data about an aircraft: 400 nautical miles

4 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. The XML approach is to "wrap" each data item in start/end tags 14.8 meters 512 kilograms 70 knots 400 nautical miles medium-altitude, long-endurance unmanned aerial vehicle RQ-1.xml

5 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. XML Terminology 14.8 meters Start tag End tag Data Element

6 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Why use XML? It is a universally accepted standard way of structuring data (syntax). It is a W3C recommendation (W3C = World Wide Web Consortium) The marketplace supports it with a lot of free/inexpensive tools. The alternative to using XML is to define your own proprietary data syntax, and then build your own proprietary tools to support the proprietary syntax (Not a very appealing idea).

7 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Why use OWL? Roger L. Costello David B. Jacobs The MITRE Corporation (The creation of this tutorial was sponsored by DARPA)

8 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Why use OWL? The purpose of this document is to describe the role that OWL plays in data interoperability. [Note: this is not the only use of OWL, but it is an important one.] Contents: –Understanding Syntax versus Semantics –An example that shows why standardizing syntax is necessary but not sufficient –Migrating from defining semantics on a per-application basis to standardized semantics

9 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Syntax versus Semantics Syntax: the structure of your data –e.g., XML mandates that you structure your data by "wrapping" each data item within a start tag and an end tag pair, with the end tag being preceded by / and both tags in brackets. –That is, XML specifies the syntax of your data. Semantics: the meaning of your data Two conditions necessary for interoperability: 1. Adopt a common syntax:this enables applications to parse the data. XML provides a common syntax, and thus is a critical first step. 2. Adopt a means for understanding the semantics: this enables applications to use the data. OWL provides a standard way of expressing the semantics.

10 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. What is this XML snippet talking about, i.e., what are the semantics? … What is a Predator?

11 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Predator - which one? Predator: a medium-altitude, long-endurance unmanned aerial vehicle system. Predator : one that victimizes, plunders, or destroys, especially for one's own gain. Predator : an organism that lives by preying on other organisms. Predator: a company which specializes in camouflage attire. Predator: a video game. Predator: software for machine networking. Predator: a chain of paintball stores.

12 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Resolving Semantics The next few slides presents an approach that applications can take for understanding the meaning of data. This approach is often taken today. We will then examine the disadvantages of the approach, and then offer a better approach.

13 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Meaning (semantics) applied on a per-application basis … application Semantics: A Predator is type of Aircraft. Actions: These actions must be performed on the Predator data: - identify ground control station. - determine onboard sensors. - determine ordnance.

14 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Meaning (semantics) applied on a per-application basis XML app#1 Semantics: Code to interpret the data Action: Code to process the data app#2 Semantics: Code to interpret the data Action: Code to process the data

15 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Problem with attaching semantics on a per-application basis application Semantics: Code to interpret the data Action: Code to process the data Problems with burying semantic definitions within each application: - Duplicate effort - Each application must express the semantics - Variability of interpretation - Each application can take its own interpretation - Example: Mars probe disaster - one application interpreted the data in inches, another application interpreted the data in centimeters. - No ad-hoc discovery and exploitation - Applications have the semantics pre-wired. Thus, when new data (e.g., new type of aircraft) is encountered an application may not be able to effectively process it. This makes for brittle applications. What's a better approach?

16 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Better approach: (1) Extricate semantic definitions from applications (2) Express semantic definitions in a standard vocabulary XML app#1 Action: Code to process the data app#2 Action: Code to process the data OWL Document Semantic Definitions

17 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Recap Suppose that an application is looking for Aircraft information, and encounters Predator data. Consider the steps the application takes to process the data: (1) Parse the data (this is a syntax issue). (2) Determine the relationship between Predator and Aircraft (this is a semantic issue). Somewhere the following relationship must be made known: (2.1) Predator is a type of Aircraft. Once this information is made known to the application it can then do the following (action) step: (3) If the document contains Aircraft data then do... Else do... Issue: Should the semantic definition (2.1) be: (a) hardcoded and buried within each application? or, should it be: (b) declaratively stated in a separate document, using an agreed-upon, well-defined vocabulary (i.e., OWL)? Better approach

18 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. OWL provides an agreed-upon vocabulary for expressing semantics A Sampling of the OWL Vocabulary: subClassOf : this OWL element is used to assert that one class of items is a subset of another class of items. Example: Predator is a subClassOf Aircraft. FunctionalProperty : this OWL element is used to assert that a property has a unique value. Example: sensorID is a FunctionalProperty, i.e., sensorID has a unique value. equivalentClass : this OWL element is used to assert that one Class is equivalent to another Class. Example: Platform is an equivalentClass to Aircraft.

19 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. OWL Enables Machines to Understand Data! XML/DTD/XML Schemas OWL Syntax Semantics OWL enables machine-processable semantics!

20 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Ontology (definition) An Ontology is the collection of semantic definitions for a domain. Example: an Aircraft Ontology is the set of semantic definitions for the Aircraft domain, e.g., –Predator is a subClassOf Aircraft. –sensorID is a FunctionalProperty. –Platform is an equivalentClass to Aircraft.

21 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Why use OWL? Benefits to application developers: –Less code to write (save $$$). –Less chance of misinterpretation (save $$$). Benefits to community at large: –Everyone can understand each other's data's semantics, since they are in a common language. –OWL uses the XML syntax to express semantics, i.e., it builds on an existing technology. Don't have to learn new syntax. Common XML tools (e.g., parsers) can work on OWL. –OWL will soon be a W3C recommendation.

22 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. OWL Tutorial Roger L. Costello David B. Jacobs The MITRE Corporation (The creation of this tutorial was sponsored by DARPA)

23 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Location of the Tutorial

24 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Layout of the OWL Material owl examples example01 example02 labs lab01 lab02 lab03 OWL.ppt Why-use-OWL.ppt OWL-quick-intro.ppt Summary-of-OWL-Capabilities.ppt license.html README.ppt TheRobberAndTheSpeeder.ppt Camera.ppt This Powerpoint document contains the OWL Tutorial. We recommend that you read this document first. A "cheat sheet" that lists (briefly) all of the OWL capabilities. Read this document last. NaturallyOccurringWaterSource Ontology Camera Ontology We recommend that you read this document second. Interesting examples using OWL!

25 Roger L. Costello, David B. Jacobs. © 2003 The MITRE Corporation. Acknowledgment Many thanks to Joe Rockmore for his excellent insight and input into the creation of this document. Thanks Joe!