Validation of a CGM Graphic Against the Web CGM Profile

Slides:



Advertisements
Similar presentations
Ali Alshowaish. Collective realization that machine-processability requires a coherent data model A casual discussion at WWW-2 in Chicago, October of.
Advertisements

Contextual Linking Architecture Christophe Blanchi June Corporation for National Research Initiatives Approved for.
WebCGM Interoperability for industrial- strength CGM graphics John C. Gebhardt.
WebCGM and SVG: a comparison (Dieter Weidenbruck, CGM Open) Lofton Henderson, CGM Open Chris Lilley, W3C.
WebCGM vs SVG: Applicability for Technical Graphics Lofton Henderson Dieter Weidenbrück.
XML Europe 2002 Barcelona, May WebCGM DOM - External Control for Web Graphics Dave Cruikshank Technical Fellow, The Boeing Company CTO, CGM Open.
Graphical Hotspot Definition A Common ATA/AECMA Approach Spec April 1999 / Page Graphical.
06 May 2003Stylable CGM XML Europe 2003, London Stylable CGM Dave Cruikshank The Boeing Company Lofton Henderson Henderson Consulting.
DC2001, Tokyo DCMI Registry : Background and demonstration DC2001 Tokyo October 2001 Rachel Heery, UKOLN, University of Bath Harry Wagner, OCLC
Universal Printer Description Format UPDF. UPDF Version 1.0 Agenda UPDF Overview –History –Design Last Call –Review changes –Approval or requirements.
XML-based Network Management Rob Enns
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
HL7 Overview Gliwice January 10 th,  What is HL7?  HL7 in Healthcare Management Systems  Message structure  Message encoding schemes  HL7 tools.
17 Apr 2002 XML Syntax: DTDs Andy Clark. Validation of XML Documents XML documents must be well-formed XML documents may be valid – Validation verifies.
METS: An Introduction Structuring Digital Content.
What is Multimedia ? Multi ( Multiple ) and Media ! So…. Information in multiple formats, including text, images, audio, video and animation :) It makes.
CHAPTER 20 CREATING SVG GRAPHICS. LEARNING OBJECTIVES How to embed a graphic stored within a.SVG file in an HTML page How to use the and tag pair to specify.
Processing Lecture. 1 What is processing?
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 8: Image Techniques ©2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
XML/EDI Overview West Chester Electronic Commerce Resource Center (ECRC)
Teppo Räisänen LIIKE/OAMK 2010
Lecture # 11 JavaScript Graphics. Scalable Vector Graphics (SVG) Scalable Vector Graphics (SVG), as the name implies, are - scalable (without pixelation):
XML: Styling and Transformation Dr Andy Evans. Multiple views Nice thing is that this data can be styled in lots of different ways using stylesheets.
XML 6.7 XForms 6. Motivation HTML forms deliver the interactive WWW Forms are what make electronic transactions possible HTML forms are long overdue for.
How Tags are used to form your Web Page
TC3 Meeting in Montreal (Montreal/Secretariat)6 page 1 of 10 Structure and purpose of IEC ISO - IEC Specifications for Document Management.
DigiTool METS Profile DigiTool Version 3.0. DigiTool METS Profile 2 What is METS? A Digital Library Federation initiative built upon the work of MOA2.
WMES3103 : INFORMATION RETRIEVAL
© 2009 Research In Motion Limited BlackBerry themes and animated graphics.
Lecture 05: Spatial Data Structure for Computer Cartography Geography 128 Analytical and Computer Cartography Spring 2007 Department of Geography University.
SVG Scalable Vector Graphics. What is SVG? SVG stands for Scalable Vector Graphics SVG is used to define vector-based graphics for the Web SVG defines.
Philips Research France Delivery Context in MPEG-21 Sylvain Devillers Philips Research France Anthony Vetro Mitsubishi Electric Research Laboratories.
B.Sc. Multimedia ComputingMedia Technologies Vector Graphics.
HTML, XML, PDF Pros and Cons.
ESRM 250 & CFR 520: Introduction to GIS © Phil Hurvitz, KEEP THIS TEXT BOX this slide includes some ESRI fonts. when you save this presentation,
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
ISOWare Presentation January 2009 ISOWARE is a management tool, that simple and efficient describes and communicates Business Processes. ISOWARE is also.
1 PRESENTATION OUTLINE BACKGROUND SCOPE WHAT IS A GRAPHICAL ITEM? THE REGISTER OF GRAPHICAL ITEMS NORMATIVE REFERENCES DEFINED CLASSES OF GRAPHICAL ITEMS.
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.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
What Agencies Should Know About PDF/A September 20, 2005 Susan J. Sullivan, CRM
Chapter 5: XHTML, Part 2 CIS 275—Web Application Development for Business I.
CFR 250/590 Introduction to GIS, Autumn 1999 Cartography © Phil Hurvitz, cartography.ppt 1  Introduction GIS output is frequently a map Map layouts.
TEXT ENCODING INITIATIVE (TEI) Inf 384C Block II, Module C.
XML. 2 Microsoft The Extensible Markup Language (XML) is a general-purpose markup language. markup language It is classified as an extensible language.
Dreamweaver MX Unit B CIS 205—Web Site Design and Development.
© ITEDO Software 2004 S1000D and CGM Dieter Weidenbrueck Paris July 21, 2004.
SVG for Designers Tom Hoferek. Objectives Introduce SVG Illustrate its capabilities Demonstrate SVG in action Speculate, discuss, answer questions.
تکنیک های پیشرفته در برنامه سازی وب ) اسلايد نهم SVG - ) جوانمرد Website: به نام خدا.
Chapter 2 File Format Objectives (1 of 2) Identify the difference between vector based graphics and bitmap-based graphics Clarify 3 types of vector programs.
XML and Its Applications Ben Y. Zhao, CS294-7 Spring 1999.
Slide 1 SDTSSDTS FGDC CWG SDTS Revision Project ANSI INCITS L1 Project to Update SDTS FGDC CWG September 2, 2003.
A look to the past for the future- The North American Profile Sharon Shin Metadata Coordinator Federal Geographic Data Committee.
Web services. The SOAP Data Model, Schema Validation, and Introduction to WSDL. February 16, 2006.
Chapter 29. Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-2 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML.
XML Extensible Markup Language
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
1 Survey of Profiles from Other Domains XMSF Profile SG 13 January 2004 Curt Blais and NPS MV3250 (Introduction to XML, 1st Quarter 2005) Katherine L.
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
Tips and Tricks for Creating Story Maps
Overview of CGM CGM is a binary vector graphics format.
Chapter 3:- Graphics Eyad Alshareef Eyad Alshareef.
Geospatial Metadata, Standards and Infrastructure
Multimedia Content Description Interface
Interoperability for industrial-strength CGM graphics John C. Gebhardt
Type the company’s name
Proposal of a Geographic Metadata Profile for WISE
ADUG Melbourne, 18 MARCH 2019 Tony Bryer, Greentram Software
Presentation transcript:

Validation of a CGM Graphic Against the Web CGM Profile Stuart Galt The Boeing Company

Agenda What is the WebCGM profile The process Hard parts

WebCGM CGM (ISO 8632) vector and composite vector/raster graphic format. WebCGM is a profile used to specify the subset of the CGM standard that will be used to exchange data on the web. This is background and most everyone in the audience should know this. Feel free to ad-lib here.

WebCGM History 1987 - ISO approved CGM as a Standard 1995 - CGM became a registered mime type 1996 - W3C published “Scalable Graphics Requirements” 1997 - W3C published “Use of CGM as a Scalable Graphic Format” 1999 - WebCGM 1.0 approved in January

WebCGM is intelligent Contains graphic primitives Lines, polylines, polygons Rectangles, circles, ellipses, arcs Graphical text Non graphical content Metadata Hierarchies objects Links

The Process 1 – Convert CGM to XML 2 – get the profile schema provided by your standards body 3 – Take the above two pieces and validate the CGM instance

CGM to XML CGM graphic primitives are converted directly Containers are used to represent internal state changes

CGM primitives Circle centered (4252, 2385) radius 150 Binary CGM XML <Circle> <Point x=“4252” y=“2385”/> <Radius r=“150”/> </Circle>

CGM primitives (cont’d) Restricted Text <RestrictedText final="yes"> <DeltaBox dx="400" dy="97"/> <Point x="914" y="1953"/> <StringFixed>NOTE:</StringFixed> </RestrictedText>

CGM primitives (cont’d) Polygon <Polygon> <Point x="3175" y="3879"/> <Point x="3085" y="3833"/> <Point x="3075" y="3866"/> </Polygon>

CGM States Container elements used to mark state changes Metafile defaults <MetafileDefaultsReplacement> …defaults go here … </MetafileDefaultsReplacement> Can be thought of similar to the “GSAVE” command in postscript. Major States : PCS Picture Closed State MDS Metafile Descriptor State DR Defaults Replacement Mode GSS Global Segment State DSS Picture Descriptor Segment State PDS Picture Descriptor State POS Picture Open State LSS Local Segment State SDS Structure Descriptor State SOS Structure Open State Minor States : FOS Figure Open State TOS Text Open State CPS Compound Path State PRS Protection Region State TAS Tile Array State

CGM States (cont’d) Picture Descriptor and Picture Open State <Picture> <StringFixed>Picture Description</StringFixed> …Picture descriptor data here… <BeginPictureBody/> …Picture data here… </Picture>

CGM States Computer Graphics Metafile Metafile Descriptor Picture EndMF BegMF Picture Picture Descriptor Picture Body EndPic BegPic Picture Body Picture Open BegPicBody

Metafile Descriptor Metafile Decsriptor MFVersion MFDesc VDCType opt rep MFVersion MFDesc VDCType IntegerPrec RealPrec IndexPrec ColrPrec ColrIndexPrec MaxColrIndex ColrValueExt MFElemlist FontList CharSetList CharCoding NamePrec MaxVDCExt SetPriExt ColrModel ColrCalib FontProp GlyphMap SymLibList

Validating WebCGM Current state: Profile validation tool exists for WebCGM in binary encoding Metacheck With a WebCGM schema defined General purpose tools would be available

The Schema Some elements are easy to represent Some are hard

Metafile Version <element name="MetafileDescriptor"> <complexType> <sequence> <element name="MetafileVersion"> <attribute name=“version” use=“required” type=“integer” minInclusive=“1” maxInclusive=“4”/> </element> <all> <element name="MetafileDescription" type="string"/> ...other required elements go here... </all></sequence></complexType></element> The Metafile Version tag may appear only once in the CGM file, and must occur somewhere in the metafile descriptor section. There are a few other required elements in this descriptor section and could be represented in a schema by something like: The above example is a long way of saying that the Metafile Version tag must occur in the somewhere in the Metafile Descriptor section, but doesn't say exactly where. In addition the allowable values for the required version attribute are 1, 2, 3, or 4.

Non Graphical Text String <simpleType name=“NonGraphicText”> <restriction base=“string”> <minlength value=“0”/> <maxlength value=“254”/> </restriction> </simpleType> A non-graphical text string is string that is not directly displayed on the graphic. An example would be the text associated with the CGM begin picture element. Non-graphical text strings are required to be less than 254 characters in length. By defining an element NonGraphicText type we can define it as a type of string with a length from 0 to 254 characters By defining the nongraphic text string attribute as: type=“NonGraphicText” We ensure that the string length requirement is met.<

The Hard Some elements are restricted (or required based on the value of the metafile version If version == 3 then a RestrictedTextType element must appear before the first RestrictedText element If ColorSelectionMode is indexed color is index value, else color is RGB values Currently the author does not know how to represent some of the more complex restrictions in the WebCGM profile. There are several clauses that restrict (or require) an element based on the value of the metafile version. For example if you are in a version 3 metafile and you have a Restricted Text element, then you are required to have a Restricted Text Type element before the first Restricted Text element appears. I don’t know how to represent regular expressions and branching type logic using schema. One of the talks at the conference is about regular expressions in schema…

The Hard Part Branching logic If (condition a) then foo else bar

Conclusion Creation of a schema that enforces WebCGM profile allows simple XML schema validator to validate conformance of CGM graphics. This approach could also be used to simplify validation of other binary structured formats.

What’s Ahead Complete mapping CGM binary to XML Finish WebCGM schema Work to continue in CGM Open Consortium: http://www.cgmopen.org