Towards Automatic Feature Type Publication Vânia M. P. Vidal, Marcel Teixeira, Fábio Feitosa Universidade Federal do Ceará – UFC.

Slides:



Advertisements
Similar presentations
Translating WFS Query to SQL/XML Query Vânia Vidal Fernando Lemos Fábio Feitosa Departamento de Computação Universidade Federal do Ceará
Advertisements

Using XML Languages for Modeling and Web-Visualization of Geographical Legacy Data B. Mathiak, A. Kupfer, K. Neumann TU Braunschweig, Information Systems.
Database System Concepts and Architecture
Bentley Systems, Incorporated
Europe’s Information Society eContentplus OrléansWP6 1st Coordination and progress meeting Technical information OGC WMS – WFS – CSW.
XML Views El Hazoui Ilias Supervised by: Dr. Haddouti Advanced XML data management.
Geographic Information Systems
Toward Automatic Processing and Indexing of Microfilm.
1 Lecture 13: Database Heterogeneity Debriefing Project Phase 2.
1 Lecture 13: Database Heterogeneity. 2 Outline Database Integration Wrappers Mediators Integration Conflicts.
Automatic Data Ramon Lawrence University of Manitoba
Semantic Mediation & OWS 8 Glenn Guempel
TIBCO Designer TIBCO BusinessWorks is a scalable, extensible, and easy to use integration platform that allows you to develop, deploy, and run integration.
Managing Data Interoperability with FME Tony Kent Applications Engineer IMGS.
Advanced Database CS-426 Week 2 – Logic Query Languages, Object Model.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
CSCI 6962: Server-side Design and Programming
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
XML-to-Relational Schema Mapping Algorithm ODTDMap Speaker: Artem Chebotko* Wayne State University Joint work with Mustafa Atay,
PostgreSQL and relational databases As well as assignment 4…
U.S. Department of the Interior U.S. Geological Survey NWIS, STORET, and XML National Water Quality Monitoring Council August 20, 2003.
Database System Concepts and Architecture Lecture # 2 21 June 2012 National University of Computer and Emerging Sciences.
Graph Data Management Lab, School of Computer Science gdm.fudan.edu.cn XMLSnippet: A Coding Assistant for XML Configuration Snippet.
David Blasby The Open Planning Project New York. Goals Explain what a WFS and WMS are, and when to use them Be able to create simple spatial web applications.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1 Quick Tutorial – Part 2 Open Data Web Services for Oracle BPM August, 2013 Forms.
PostgreSQL and relational databases As well as assignment 4…
Database Management System Lecture 4 The Relational Database Model- Introduction, Relational Database Concepts.
U.S. Department of the Interior U.S. Geological Survey NWIS, STORET, and XML Advisory Committee on Water Information September 10, 2003 Kenneth J. Lanfear,
Pusan National University, Korea Joon-Seok Kim Taehoon Kim Ki-Joune Li.
Federated Database Set Up Greg Magsamen ITK478 SIA.
Efficient RDF Storage and Retrieval in Jena2 Written by: Kevin Wilkinson, Craig Sayers, Harumi Kuno, Dave Reynolds Presented by: Umer Fareed 파리드.
ABSTRACT The JDBC (Java Database Connectivity) API is the industry standard for database- independent connectivity between the Java programming language.
Fall 2013, Databases, Exam 2 Questions for the second exam…
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.
Issues in Ontology-based Information integration By Zhan Cui, Dean Jones and Paul O’Brien.
MySQL and GRID status Gabriele Carcassi 9 September 2002.
FRErator – the Bridge between FRE and Curator DB.
U.S. Environmental Protection Agency Central Data Exchange Pilot Project Promoting Geospatial Data Exchange Between EPA and State Partners. April 25, 2007.
Object storage and object interoperability
2006 JavaOne SM Conference | Session BOF-0367 JDBC™Technology-based Metadata Recipes Mahmoud Parsian Server Architect LimeLife, Inc.
Product Description. XML file generation Fluidity in data transfer. Just-in-time integration and transformation Based on JAVA technology. Output formats.
Experience with XML Schema Ashok Malhotra Schema Usage  Mapping XML Schema and XML documents controlled by the Schema to object classes and instances.
Semantic Interoperability in GIS N. L. Sarda Suman Somavarapu.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
CS 440 Database Management Systems Stored procedures & OR mapping 1.
Physical Layer of a Repository. March 6, 2009 Agenda – What is a Repository? –What is meant by Physical Layer? –Data Source, Connection Pool, Tables and.
Pan-European infrastructure for Ocean & Marine Data management An EU Integrated research Infrastructure Initiative (I3) How to implement CDI ? M. Fichaut,
Software tools for digital LLRF system integration at CERN 04/11/2015 LLRF15, Software tools2 Andy Butterworth Tom Levens, Andrey Pashnin, Anthony Rey.
Data generators by Jan Kincl. Data Generators - Jan Kincl2 Outline Introduction Introduction Main features Main features MySQL Data Generators MySQL Data.
Geographic Information Systems GIS Data Databases.
OGP Seabed Survey Data Model (SSDM)
Introduction to DBMS Purpose of Database Systems View of Data
Databases (CS507) CHAPTER 2.
Chapter 2 Database System Concepts and Architecture
Databases Chapter 16.
Microsoft Access 2003 Illustrated Complete
Geographic Information Systems
Database Management  .
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
GEOCODING Creates map features from addresses or place-names.
Towards Automatic Model Synchronization from Model Transformation
Chapter 4 The Relational Model Pearson Education © 2009.
Data generators by Jan Kincl.
Chapter 4 The Relational Model Pearson Education © 2009.
Tutorial 7 – Integrating Access With the Web and With Other Programs
INSTRUCTOR: MRS T.G. ZHOU
Introduction to Database systems
Web Service Requirements for WISE Data Exchange
Geographic Information Systems
Presentation transcript:

Towards Automatic Feature Type Publication Vânia M. P. Vidal, Marcel Teixeira, Fábio Feitosa Universidade Federal do Ceará – UFC

GeoInfo 2004 Outline Motivation Our Approach Feature Type Publication by Deegree WFS Algorithm GenerateDataStoreConfigurationFile DFP: An Environment for Deegree Feature Type Publication Conclusions

GeoInfo 2004 Motivation The purpose of the WFS specification is to describe the manipulation operations over geospatial data using GML WFS Servers provide queries, update and exchange of geospatial data, stored in data sources, as geographic features instances encoded in GML. The publication of a feature type is largely manual The generation of the configuration file is a tedious and error-prone task. In case of modifications of the database schema, many feature types can be affected.

GeoInfo 2004 Automatic Feature Type Publication 1. The base source schema is converted to an XML schema. 2. The User defines the feature type XML schema; 3. The correspondence assertions of the feature type are generated by matching the feature type schema and the base source XML schema. 4. The configuration file required to publish the feature type is automatically generated.

Mapping Relational Schema to XMLS + Schema SchoolProj codeschool codeproject Project code (PK) title description School code (PK) name grade street city zipcode geom FK 2 FK 1 Project (TProject) tuple_project * (Ttuple_Project) code (integer) title (string) description (string) keyRef 2 -1 (&Ttuple_SchoolProj) SchoolProj (TSchoolProj) tuple_schoolproj * (Ttuple_SchoolProj) codeschool (integer) codeproject (integer) keyRef 1 (&Ttuple_School) keyRef 2 (&Ttuple_Project) Troot [XML_School] School (TSchool) tuple_school * (Ttuple_School) code (integer) name (string) keyRef 1 -1 (&Ttuple_SchoolProj) grade (string) street (string) city (string) zipcode (string) geom (geometry)

GeoInfo 2004 Feature Type A Feature Type F is defined by a 4-tuple F= where: T F is the feature type schema R M is the Master table (each feature instance of F matches a tuple of R M ) A F is the set of path correspondence assertions that matches the proprieties of T F with attributes/path of the Master table

GeoInfo 2004 Feature Type School F 2 : [TSchool F /code F ] [Ttuple_School/code] 3 : [TSchool F /geometry F ] [Ttuple_School/geom] 4 : [TSchool F /name F ] [Ttuple_School/name] 5 : [TSchool F /grade F ] [Ttuple_School/grade] 6 : [TSchool F /address F,{street F,city F,zipcode F }] [Ttuple_School/{street,city,zipcode}] 7 : [TSchool F /project F ] [Ttuple_School/keyref1 -1 /keyref2] 8 : [TProject F /code F ] [Ttuple_Project/code] 9 : [TProject F /title F ] [Ttuple_Project/title] T School F code name geometry grade city zipcode address street project * code title T tuple_school zipcode grade street code geom name city codeschool codeproject keyref1 -1 (&Ttuple_SchoolProj) keyref2 (&Ttuple_Project) keyref1 (&Ttuple_School) code title description keyref2 -1 (&Ttuple_SchoolProj) Master´s table type

GeoInfo 2004 Feature Publication by Deegree WFS 1. Register the Feature Type in the capabilities document (WFS Capabilities)WFS Capabilities 2. Generate the DataStoreConfiguration (DSC) File. The DSC file consists of three parts: Heading MappingFields MappingTables Footing XML

GeoInfo 2004 Feature Publication by Deegree WFS The MappingFields and MappingTables can be automatically generated based on the feature type schema and its set of Correspondence Assertions. All the assertions should be of the form [ T F / p ] [ T tuple_R / e ]. We may have to adjust the feature type schema.

GeoInfo 2004 Feature Type School F 2 : [TSchool F /code F ] [Ttuple_School/code] 3 : [TSchool F /geometry F ] [Ttuple_School/geom] 4 : [TSchool F /name F ] [Ttuple_School/name] 5 : [TSchool F /grade F ] [Ttuple_School/grade] 6 : [TSchool F /address F,{street F,city F,zipcode F }] [Ttuple_School/{street,city,zipcode}] 7 : [TSchool F /project F ] [Ttuple_School/keyref1 -1 /keyref2] 8 : [TProject F /code F ] [Ttuple_Project/code] 9 : [TProject F /title F ] [Ttuple_Project/title] T School F code name geometry grade city zipcode address street project * code title T tuple_school zipcode grade street code geom name city codeschool codeproject keyref1 -1 (&Ttuple_SchoolProj) keyref2 (&Ttuple_Project) keyref1 (&Ttuple_School) code title description keyref2 -1 (&Ttuple_SchoolProj) Master´s table type Cannot represent the mapping fields for PCAs 6 and 7

GeoInfo 2004 Feature Type School F T School F code name geometry grade address street city zipcode project * code title T tuple_school zipcode grade street code geom name city codeschool codeproject keyref1 -1 keyref2 keyref1 code title description keyref2 -1 Canonical Schema TSchool f code title project * code zipcode Keyref 1 -1 grade street geometry name city [Tschool f /code F ] [Ttuple_School/code] [Tschool f /geom F ] [Ttuple_School/geom] [Tschool f /name F ] [Ttuple_School/name] [Tschool f /grade F ] [Ttuple_School/grade] [Tschool f /street F ] [Ttuple_School/street] [Tschool f /city F ] [Ttuple_School/city] [Tschool f /zipcode F ] [Ttuple_School/zipcode] [Tschool f /keyref 1 -1 ] [Ttuple_School/keyref 1 -1 ] [TProject/code F ] [Ttuple_Project/code] [TProject/title F ] [Ttuple_Project/title] [Tkeyref 1 -1 /project] [Ttuple_Schoolproj/keyref 2 ]

GeoInfo 2004 GenerateDeegreeConfigurationFile Algorithm /* INPUT : T F - The Feature Type shema R M - The Master Table A F - The set o PCAs */ Let Map be a string, initially empty. Map + = GenerateFileHeading(); Map + = GenerateMappingFields( T F, Ttuple_R M );GenerateMappingFields Map + = GenerateMappingTables(R M );GenerateMappingTables Map + = GenerateFileFooting(); Return Map

GeoInfo 2004 Feature Type Schema Designer 1 Feature Type Schema Matching Tool 2 DFP: An Environment for Deegree Feature Type Publication User BD Base Source Schema Correspondence Assertions Canonical Feature Type Schema Style File DSC File Generator 3 DSC File

DFP and Deegree Files Capabilities (.xml) Feature Type Schema (.xsd) DSC File (.xml) FeatureType Feature Type Properties Repository (.xml) Correspondence Assertions Repository (.xml) DB Master Table and Related Tables Repository (.xml) Extract Deegree Servers List (.xml) Oracle Servers List (.xml) Feature Types list (.xml) Register Generate General informations and local path of capabilities file Connection informations and local path of tables repository file Feature Types and l local path of their repositories files Legend: Deegree Files DFP Files Generate

GeoInfo 2004 Conclusions We proposed an approach for automatic feature type publication by WFS servers. A feature type is specified by a Schema and a set of Corresp. Assertions. Our formalism handles schematic heterogeneity, and allows complex mappings to be specified quite simply. We presented an algorithm that automatically generates the DataStoreConfiguration file required to publish a feature type by a Deegree WFS.

GeoInfo 2004 Conclusions We have developed DFP, a tool to support the publication of features by Deegree WFS.

Towards Automatic Feature Type Publication Vânia M. P. Vidal, Marcel Teixeira, Fábio Feitosa Universidade Federal do Ceará – UFC

GeoInfo 2004 Deegree Feature Publisher

GeoInfo 2004 Feature Type Schema Designer

GeoInfo 2004 Feature Type Schema Designer

GeoInfo 2004 SMT – Schema Matching Tool

GeoInfo 2004 Heading (DataStoreConfiguration File) oracle.jdbc.driver.OracleDriver geoUser <GML2 responsibleClass="org.deegree_impl.services.wfs.oracle. DataStoreOutputGML"> file:///…/SCHOOLSchema.xsd...

GeoInfo 2004 MappingFields (DataStoreConfiguration File) ( 4 : [TSchool F /name F ] [Ttuple_School/name] ) -- ( 5 : [TSchool F /grade F ] [Ttuple_School/grade] ) -- ( 2 : [TSchool F /code F ] [Ttuple_School/code ) -- ( 9 : [TProject F /title F ] [Ttuple_Project/title] )...

GeoInfo 2004 MappingTables (DataStoreConfiguration File)... CODE <Reference tableField="CODE" replaceable="true" targetTable="SCHOOLPROJ" targetField="CODESCHOOL"/> GEOM <RelatedTable name="SCHOOLPROJ" targetName="SCHOOLPROJ jointable="false"> CODESCHOOL <Reference tableField="CODEPROJECT" replaceable="true" targetTable="PROJECT" targetField="CODE"/> CODE...

GeoInfo 2004 Footing (DataStoreConfiguration File)... EPSG:4326

GeoInfo 2004 GenerateMappingFields Procedure Procedure GenerateMappingFields (T, Ttuple_R) Let Map be a string, initially empty and visitedTables[ ] be a set. visitedTables[ ] = visitedTables[ ] R For each property p of T Do Case 1: If p is of the form [ T / p ] [ T tuple_R / e ], where the type of e is a simple type. Map + = Case 2: If p is of the form [ T / p ] [ T tuple_R / e ], where e is a reference element and targetTable(e) = R t. Map + = <DatastoreField name= + R +.+ tableField(e) + type= + getType(tableField(e)) + /> If R t visitedTables[ ] Then GenerateMappingFields(T p, Ttuple_R t ) End If End For

GeoInfo 2004 GenerateMappingTables Procedure Procedure GenerateMappingTables(R M ) Let Map be a string, initially empty. Let R M be the Master table where Key(R M ) = {k M }. Let A g the geometric atribute of R M. Map = + k M + Map += GenerateReferenceFields(R M )GenerateReferenceFields Map += + A g + Map += For each R in RelTab( R M ) Do Map += + K R + Map += GenerateReferenceFields (R) Map += End For Return Map

GeoInfo 2004 GenerateReferenceFields Procedure Procedure GenerateReferenceFields(R) Let Reference be a string, initially empty. For each e in Ref( R ) Do Reference += <Reference tableField=" + tableField(e) + replaceable=true targetTable=" + targetTable(e) + " targetField=" + targetField(e) + /> End For Return Reference

GeoInfo 2004 WFS Capabilities <ResponsibleClass className="org.deegree_impl.services.wfs.oracle.OracleDataStore" configURL="file:///...SCHOOL_DSC.xml"/> SCHOOL Feature type automatically publicated by Deegree Feature Publisher 4326