An Intelligent Context Interpreter based on XML Schema Mapping

Similar documents
Tsinghua University at TAC 2009: Summarizing Multi-documents by Information Distance

Cluster Analysis of Electrical Behavior

A Fast Content-Based Multimedia Retrieval Technique Using Compressed Data

Load Balancing for Hex-Cell Interconnection Network

Parallelism for Nested Loops with Non-uniform and Flow Dependences

Alignment Results of SOBOM for OAEI 2010

A Binarization Algorithm specialized on Document Images and Photos

Performance Evaluation of Information Retrieval Systems

A Resources Virtualization Approach Supporting Uniform Access to Heterogeneous Grid Resources 1

An Optimal Algorithm for Prufer Codes *

Content Based Image Retrieval Using 2-D Discrete Wavelet with Texture Feature with Different Classifiers

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour

Sum of Linear and Fractional Multiobjective Programming Problem under Fuzzy Rules Constraints

Query Clustering Using a Hybrid Query Similarity Measure

Semantic-Based Query Routing and Heterogeneous Data Integration in Peer-to-Peer Semantic Link Networks

Decision Strategies for Rating Objects in Knowledge-Shared Research Networks

Available online at Available online at Advanced in Control Engineering and Information Science

Ontology Generator from Relational Database Based on Jena

UB at GeoCLEF Department of Geography Abstract

Problem Definitions and Evaluation Criteria for Computational Expensive Optimization

Module Management Tool in Software Development Organizations

Improvement of Spatial Resolution Using BlockMatching Based Motion Estimation and Frame. Integration

Learning-Based Top-N Selection Query Evaluation over Relational Databases

Term Weighting Classification System Using the Chi-square Statistic for the Classification Subtask at NTCIR-6 Patent Retrieval Task

An Image Fusion Approach Based on Segmentation Region

Study on Fuzzy Models of Wind Turbine Power Curve

Learning the Kernel Parameters in Kernel Minimum Distance Classifier

The Codesign Challenge

A Unified Framework for Semantics and Feature Based Relevance Feedback in Image Retrieval Systems

The Shortest Path of Touring Lines given in the Plane

Document Representation and Clustering with WordNet Based Similarity Rough Set Model

Virtual Machine Migration based on Trust Measurement of Computer Node

SLAM Summer School 2006 Practical 2: SLAM using Monocular Vision

A XML-Based Composition Event Approach as an Integration and Cooperation Middleware

KIDS Lab at ImageCLEF 2012 Personal Photo Retrieval

Hermite Splines in Lie Groups as Products of Geodesics

Efficient Distributed File System (EDFS)

A Fuzzy Image Matching Algorithm with Linguistic Spatial Queries

Type-2 Fuzzy Non-uniform Rational B-spline Model with Type-2 Fuzzy Data

Steps for Computing the Dissimilarity, Entropy, Herfindahl-Hirschman and. Accessibility (Gravity with Competition) Indices

Scheduling Remote Access to Scientific Instruments in Cyberinfrastructure for Education and Research

A Fast Visual Tracking Algorithm Based on Circle Pixels Matching

PHYSICS-ENHANCED L-SYSTEMS

Research of Dynamic Access to Cloud Database Based on Improved Pheromone Algorithm

Ontology Mapping: As a Binary Classification Problem

A New Transaction Processing Model Based on Optimistic Concurrency Control

Combining Multiple Resources, Evidence and Criteria for Genomic Information Retrieval

Solving two-person zero-sum game by Matlab

An Integrated Information Platform for Intelligent Transportation Systems Based on Ontology

Comparison of Heuristics for Scheduling Independent Tasks on Heterogeneous Distributed Environments

Object-Based Techniques for Image Retrieval

Corner-Based Image Alignment using Pyramid Structure with Gradient Vector Similarity

Evaluation of an Enhanced Scheme for High-level Nested Network Mobility

Lecture 5: Multilayer Perceptrons

NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS

Machine Learning: Algorithms and Applications

High-Boost Mesh Filtering for 3-D Shape Enhancement

Real-time Motion Capture System Using One Video Camera Based on Color and Edge Distribution

Enhancement of Infrequent Purchased Product Recommendation Using Data Mining Techniques

CMPS 10 Introduction to Computer Science Lecture Notes

Massive XML Data Mining in Cloud Computing Environment

BIN XIA et al: AN IMPROVED K-MEANS ALGORITHM BASED ON CLOUD PLATFORM FOR DATA MINING

Face Recognition Based on SVM and 2DPCA

A New Approach For the Ranking of Fuzzy Sets With Different Heights

A Knowledge Management System for Organizing MEDLINE Database

The Discovery of Action Groups for Smart Home

Querying by sketch geographical databases. Yu Han 1, a *

TWO DIAGNOSTIC MODELS FOR PLC CONTROLLED FLEXIBLE MANUFACTURING SYSTEMS. W. HU*, A. G. STARR* and A. Y. T. LEUNG*

User Authentication Based On Behavioral Mouse Dynamics Biometrics

An Entropy-Based Approach to Integrated Information Needs Assessment

ELEC 377 Operating Systems. Week 6 Class 3

(1) The control processes are too complex to analyze by conventional quantitative techniques.

A CALCULATION METHOD OF DEEP WEB ENTITIES RECOGNITION

Visual Thesaurus for Color Image Retrieval using Self-Organizing Maps

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009.

Positive Semi-definite Programming Localization in Wireless Sensor Networks

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique

Description of NTU Approach to NTCIR3 Multilingual Information Retrieval

A New Feature of Uniformity of Image Texture Directions Coinciding with the Human Eyes Perception 1

Video Proxy System for a Large-scale VOD System (DINA)

Remote Sensing Image Retrieval Algorithm based on MapReduce and Characteristic Information

A RECONFIGURABLE ARCHITECTURE FOR MULTI-GIGABIT SPEED CONTENT-BASED ROUTING. James Moscola, Young H. Cho, John W. Lockwood

HCMX: AN EFFICIENT HYBRID CLUSTERING APPROACH FOR MULTI-VERSION XML DOCUMENTS

Transaction-Consistent Global Checkpoints in a Distributed Database System

BioTechnology. An Indian Journal FULL PAPER. Trade Science Inc.

Related-Mode Attacks on CTR Encryption Mode

Load-Balanced Anycast Routing

Optimal Workload-based Weighted Wavelet Synopses

Simulation Based Analysis of FAST TCP using OMNET++

TN348: Openlab Module - Colocalization

Collaboratively Regularized Nearest Points for Set Based Recognition

Improved Resource Allocation Algorithms for Practical Image Encoding in a Ubiquitous Computing Environment

Mining User Similarity Using Spatial-temporal Intersection

Efficient Semantically Equal Join on Strings in Practice

Keywords - Wep page classification; bag of words model; topic model; hierarchical classification; Support Vector Machines

A KIND OF ROUTING MODEL IN PEER-TO-PEER NETWORK BASED ON SUCCESSFUL ACCESSING RATE

Information Retrieval

USING GRAPHING SKILLS

Problem Set 3 Solutions

A Deflected Grid-based Algorithm for Clustering Analysis

Transcription:

An Intellgent Context Interpreter based on XML Schema Mappng Been-Chan Chen Dept. of Computer Scence and Informaton Engneerng Natonal Unversty of Tanan, Tanan, Tawan, R. O. C. e-mal: bcchen@mal.nutn.edu.tw Shang-Y He Dept. of Computer Scence and Informaton Engneerng Natonal Unversty of Tanan, Tanan, Tawan, R. O. C. e-mal: tkuchrs@hotmal.com Abstract Context-aware computng s one of the attractve research topcs n pervasve computng. Context-aware systems can react to users preferences accordng to context ncludng locaton, tme and other envronment condtons. Context s generated by context nterpreters or aggregated by context aggregators from the sgnals of sensors. A tradtonal context nterpreter s usually bult as an executable hard code called wdget. It s dffcult for the system manager to construct and mantan the large collectons of context. In ths paper, we propose a ntellgent generc context nterpreter usng context scrpts to overcome the hard code dependency between context and hardware devces. The generc context nterpreter mports sensor data from sensor devces as an XML schema. Then, the schema matchng approach s used to help system manager generatng context scrpts nstead of wdgets easly. The system was bult and evaluated by dfferent sensor schemas. The results show that the schema matchng algorthm can match correct sensor types effectvely and provde effcent context generaton and mantenance. Keywords-context-aware system; context nterpreter; schema matchng; ntellgent system I. INTRODUCTION A context-aware system s a moble envronment n whch applcatons can dscover and make use of context nformaton ncludng user locaton, tme, date, nearby devces and other envronmental actvtes to adapt ther operatons and behavor [5]. A number of context-aware archtectures were proposed and employed for a wde spectrum of systems and applcatons [3]. However, snce each ndvdual system focuses on ts specfc applcaton doman, current context-aware systems are heterogeneous n all aspects, such as hardware, moble resources, operatng systems, applcaton software, and platforms [15]. The serous heterogeneous characterstcs of context-aware computng are especally mportant and become sgnfcant drawbacks whle developng context nterpreters for buldng context-aware servces [4][14]. In general, context-aware systems use context to archve the obectvty of controllng servces. Context s generated by context nterpreters or aggregated by context aggregators from the sgnals of sensor devces n the moble envronment. A tradtonal context nterpreter s usually bult as a type of executon codes called wdget [8]. Snce a wdget s usually desgned by system programmers as a hard code to translate sensors data nto a semantc representaton called context, t s dependent upon the sensor devces and the applcaton domans of context-aware systems. It s hard to mantan f some sensors were upgraded or renewed, and t s dffcult for the system manager to construct new servces for new devces. The extendblty of the systems thus wll be restrcted and lack of flexblty. In ths paper, we propose a ntellgent generc context nterpreter based on XML context scrpts generator and XML schema matchng schemes. The proposed generc context nterpreter archtecture conssts of two modules: the context scrpt generator and the generc scrpt nterpreter. We use context scrpts to replace hard code wdgets for solvng the dependency problem between context and hardware devces. The context scrpt generator mports sensor data from sensor devces as an XML schema. Then, the schema matchng scheme s appled to help the system manager generatng context scrpts nstead of wdgets easly. The generc scrpt nterpreter can translate varous context scrpts nto the correspondng contexts used n the applcaton. The generc nterpreter was mplemented and evaluated by varous sensors schemas. The results show that the ntellgent context scrpt generator can effectvely recognze correct sensor types by the support of schema matchng scheme and the context nterpreter provdes effcent context generaton and mantenance. Ths paper s organzed as follows. In Secton 2, we ntroduce the framework of context-aware systems.. The generc context nterpreter s descrbed n Secton 3. Secton 4 presents the schema matchng method for a ntellgent context nterpreter. The results of experments and evaluaton are shown n Secton 5. Fnally, concluson s made n Secton 6. II. FRAMEWORK OF CONTEXT-AWARE SYSTEMS The conceptual framework of context-aware systems conssts of fve layers as shown n Fg. 1 [4]. The contents of each layer are descrbed as follows brefly. Applcaton layer Storage layer Context layer Interpretaton layer Devce layer Fgure 1 The fve-layer conceptual framework.

1) The devce layer: Ths layer contans the operatng physcal devces used n the context-aware systems ncludng sensors, dentfers, moble devces, and actuators, etc. 2) The nterpretaton layer: Ths layer descrbes the semantc mappng between the devce layer and the context layer contanng context nterpreter and context aggregator. Context nterpreter: The raw sgnals from sensors or moble devces cannot work as ther orgnal format. They have to be transformed to context n context-aware system. The context nterpreter s used to nterpret the structures of raw data and represent the nformaton as low-level context called sensor context. Context aggregator: The context aggregator then gathers the related low-level sensor context data to form a hgher-level context. 3) The context layer: Context processng s the core of a context-aware system. Context nformaton s generated and managed n ths layer. Context model s used to descrbe the nteractve actvtes of the resource layer. Effectve context extracton and effcent context management are the two man functons of managng context. 4) The storage layer: The storage layer stores not only the context data of the current status but also the hstorcal context data n the context-aware system. The context data produced n the context layer are used to provde the servces of applcatons n the applcaton layer. To easly access context data, an effectve context database s requred. The context data access mechansm generally ncludes the storage of context schema and context query. 5) The applcaton layer: In ths layer, applcaton can be defned and executed by queryng the current status of context and the related hstorcal context data from the context database n the storage layer. Snce the contents of context-awareness are accessed by context queres from context databases, the varous applcatons can be constructed under dverse applcatons. III. THE GENERIC CONTEXT INTERPRETER The archtecture of the proposed generc context nterpreter [4] s shown n Fg. 2. The man components consst of the context scrpt generator and the generc scrpt nterpreter. The context scrpt generator further contans three functons modules: the context mappng operators, the schema matchng algorthm, and the schema mappng hstory. The components are explaned as follows. Sensor data schema: Sensor schemas are provded by some technques of connectvty standards, for example, UPnP and SOAP, whch enable data transfer n XMLbased procedure call. Each type of sensor delvers ts sensor data by the predefned XML schema accordng to the hardware specfcaton. Context model: The context model s bult for dfferent applcaton envronments. For mappng context schemas nto sensor data schemas, ontology wth XML-based representaton s used for constructng the context model of the system. Sensor data schema Context Mappng Edtor Schema Matchng Context model Context scrpt generator: Interpreter generator produces nterpretaton scrpts whch contan the mappng relatonshps between context schema and sensor data schema. The mappng tool s the context mappng edtor whch supports a graphcal user nterface to assst users to buld the relatonshp between context schemas and sensor data schemas. The mappng operaton can be fnshed automatcally by applyng the schema matchng module. Interpretaton scrpts: The nterpretaton scrpt uses XSL (extensble Stylesheet Language) to descrbe the schema mappng. The content of the scrpt s the rules of transformng source data schemas (sensor data) nto target data schemas (contex. Generc scrpt nterpreter: Snce nterpretaton scrpts are represented n XSL, the XSLT (XSL Transformaton) Processor can be used to be the generc nterpreter drectly. The XSLT-Processor wll read the sensor raw data wth XML tag and nterpret the context accordng to the correspondng nterpretaton scrpt. In ths archtecture, the context nterpreters generated by the context nterpreter generator are represented as context scrpts nstead of hard codes as wdgets. The nterpretaton scrpt draws lnkng relatonshps and transformng methods between sensor data and the semantcs n the context model. The generc scrpt nterpreter then translates sensor raw data nto context by the correspondng context scrpts whle the context nterpretaton process beng proceeded. IV. Mappng Hstory Context Scrpt Generator Interpretaton Scrpts Fgure 2. The archtecture of generc context nterpreter. THE SCHEMA MATCHING Sensor XML data Generc Scrpt Interpreter Context A. Notaton of Symbols In ths paper, the schema matchng scheme s mportant for fndng a correct sensor type for context mappng. Wthout the automatc schema matchng, users wll mss the prevous context nterpretaton of sensors and t further causes the problem of nconsstency on context nterpretaton. We apply several schema matchng approaches to the system. The Smlarty Yeld Matcher (SYM) [7] s ntroduced here..

We frst ntroduce and defne the symbols used n the SYM approach. S : Source schema. s : an element node n source schema S. T : Target schema. t : an element node n target schema T. Lsm(s, : the lngustc smlarty between nodes s and t. DTcom(s, : the data type compatblty between s and t. Ssm(s, : the structure smlarty between rooted at s and t. Wsm(s, : the weghted smlarty between rooted at s and t. th hgh : the threshold for ncreasng Wsm(s,. th low : the threshold for decreasng Wsm(s,. th accept : the threshold for acceptance of vald mappng. C nc : the multplcatve factor for ncreasng Wsm(s,. C dec : the multplcatve factor for decreasng Wsm(s,. W struct : the weght of structure smlarty for Wsm(s, t ). leaves( : the set of leaves n the subtree rooted at s. level( : the depth of node s, the depth of root s 1. StrongLnk(s, : the weght smlarty Wsm(s, th accept. The man smlarty measure of matchng schemas n SYM s the weghted smlarty Wsm. For any two element nodes s and t belongng two schemas S and T, respectvely, the computaton of Wsm(s, contans two phases: the lngustc matchng and the schema structure matchng. The goal of the lngustc matchng phase s to fnd the lngustc smlarty Lsm(s, between two element nodes s and t. In the schema structure matchng phase, we frst compute the compatblty of data type DTcom(s, and the structure smlarty Ssm(s,. Then, the weghted smlarty Wsm(s, s measured by combnng Lsm(s, wth DTcom(s, or Ssm(s,. The detaled matchng algorthm s descrbed n the followng subsectons. B. Lngustc Matchng The matchng of element names n schemas s frst step for most of the schema matchng methods. A good name matcher can dentfy correct lngustc matchng of element names effectvely. An accurate name matchng also helps to accomplsh the element-level matchng problem. However, a sngle name matcher wth smple smlarty measure cannot perform effectve matchng results n general. Here, we proposed a lngustc matchng method based on four name matchers: Levenshten, 3-grams, Jaro-dstance and WordNet. The computaton of lngustc smlarty for Levenshten, 3- grams, Jaro-dstance are lsted n [1]. For two strngs s and t, the smlarty values between s and t are denoted as sm lev,(s,, sm tr (s,, and sm Jaro (s,, respectvely. WordNet was developed by Mller et al.[18]. The relatons of words lke, hyponyms, synonym and antonym are also computed by the levels of semantc herarchy n the groups of words called synsets. Two words s and t are frst stemmed. Then, the smlarty of two words s computed by the depth of the dfferent Lexcon s herarches [13], as follows: depth1 depth depth2 depth, (1) depth1 depth2 Dstance 2 2, (2) sm Wordnet ( s, 1- Dstance where depth s the common parental depth, depth 1 s the depth of s and depth 2 s the depth of t from the root of the herarchy. Although we ust ntroduce the four dfferent name matchers, they are usually not used at the same tme whle computng the lngustc smlarty Lsm(s, of element names s and t. One of the reasons not usng all name matchers s that these name matchers nclude mplct smlarty herarchy of each other. For nstance, the 3-grams matcher has a hgh smlarty when the Levenshten matcher gets hgh smlarty. Another reason s to reduce the computaton tme. Snce the more matchers are operated, more computaton cost s needed. Especally, WordNet spends a lot of tme on searchng dctonary for computng the smlarty n ther synsets. It s not a great dea to often execute WordNet. Hence, a decson tree of combnng name matchers [10] s desgned. The decson steps are lsted as follows: Step 1. For two nput element names s and t, we check whether the two strngs are the same or not. If they are dentcal, the lngustc smlarty s set to be one and the processng s halt; otherwse, the above name matchers are used to compute the lngustc smlarty as the next step. Step 2. The sm edt (s, are frst computed and tested. Then, one of the followng three cases wll happen: 1) If the value sm edt (s, s larger than 0.55, the lngustc smlarty s set to the value sm edt (s,. 2) If the value sm edt (s, s less than 0.25, WordNet s used and the lngustc smlarty s set to the value sm wordnet (s,. 3) If the value sm edt (s, s between 0.25 and 0.5, the 3-gram and Jaro-dstance matchers are used as Step 3. Step 3. The average value of sm tr (s, and sm aro (s, are computed. If the average of the two matchers s larger than 0.15, the lngustc smlarty s set to the average; otherwse, WordNet s fnally used and the lngustc smlarty s set to the value sm wordnet (s,. Snce WordNet matcher s tme-consumng, t wll not be started untl no proper lngustc smlarty s produced by the other matchers. C. Schema Structure Matchng The goal of the schema structure matchng phase s to fnd the weghted smlarty Wsm(s, between two nodes s and t belongng to schema S and T, respectvely. The weghted smlarty s calculated by a combnaton of the lngustc smlarty (Lsm) and the structure smlarty (Ssm). Wthout loss generalty, we suppose that a node n a schema would be an nternal node or a leaf node. Hence, the structure matchng n schemas may perform on two leaf nodes, two nternal nodes and one leaf node vs. one nternal node. We regard matchng two leaf nodes as the leafstructure smlarty matchng. By contrast, the nonleafstructure matchng ncludes the cases of matchng two nternal nodes and matchng one leaf wth one nternal node.

The leaf-structure smlarty matchng Snce the nodes s and t are leaves (element name n ths case, there s no tree structure on s and t. The structure smlarty, Ssm(s,, consders the data types of the element names as the measure of ther structures. We make use of the type defntons on W3C Schema [15] and the data type converson of W3C XQuery [16] to construct a data type compatblty table for every data type. In the compatblty table, f the data type of the node s cannot be converted nto the data type of the node t, the data type compatblty between s and t, DTCom(s,, s set to be 0.1. If the data types of the nodes s and t can be converted each other, the value of DTCom(s, s 0.5. If the data type converson of the nodes s and t depends on the source values, DTCom(s, s set to be 0.3. In ths case, snce the structure smlarty Ssm(s, s measured by the data type compatblty DTCom(s,, the weghted smlarty of the leaf-structure smlarty matchng s defned as Wsm(s, = 0.5 DTcom(s, + 0.5 Lsm(s,. (3) The nonleaf-structure smlarty matchng If one of the matchng nodes s and t s an nternal node or both of them are nternal nodes, the tree structures rooted at s and t need to be further consdered. The structure smlarty of the two nodes s and t s measured by the weghted smlarty of nodes n the sets of leaves( and leaves( rooted at s and t, respectvely. The structure smlarty, Ssm(s,, n the nonleaf-structure smlarty matchng s defned as Ssm( s, where ( x, y ) {( x, y leaves( 1 ) Wsm( x, y for ( y' ) {( y' ) for ) leaves( 1 leaves( leaves( x leaves (, y satsfyng max( StrongLnk Wsm( y' ), (4) leaves ( ( x, y y' leaves(, x' leaves( ))}, satsfyng max(stronglnk( y' ))}; and StrongLnk(s, s the matchng par that the weghted smlarty Wsm(s, s larger than the threshold th accept. The weghted smlarty of nonleaf-structure smlarty matchng s defned to be the combnaton of the structure smlarty Ssm(s, and the lngustc smlarty Lsm(s,, as follows: Wsm(s, = W struct Ssm(s, + (1-W struct ) Lsm(s,, (5) where 0 W struct 1. The algorthm of matchng two schema structures starts tree matchng process from the element names (leaf node of the schemas. The value of Wsm(s, n the leaf-structure smlarty matchng s frst computed by equaton (3) for all leaf nodes of the source schema and the target schema. Then, the values of Wsm(s, for the nonleaf nodes at the upper level are computed by StrongLnk(leaves(, leaves() of the leaves rooted at s and t. The larger value of Wsm(s, s performed, the stronger structure smlarty of the nodes s and t are resulted. On the contrary, f the value of Wsm(s, s small, the structure smlarty of the nodes s and t s weak. Snce the values of Wsm(s, for the nodes at upper levels of schemas are stll computed by the leaves of subtrees rooted at s and t, we have to make use of adustng the values of Wsm on the leaf nodes to reflect the current structure smlarty of nonleaf nodes. Two crtera, th hgh and th low, are used to strengthen and weaken, respectvely, the values of weghted smlarty on leaf nodes. If the value of Wsm(s, for two nonleaf nodes s larger than th hgh, all of the values of weghted smlarty Wsm(leaves(, leaves() are ncreased by multplyng the multplcatve factor C nc. On the other hand, when the value of Wsm(s, for two nonleaf nodes s less than th low, all of the values of weghted smlarty Wsm(leaves(, leaves() are decreased by multplyng the multplcatve factor C dec. The multplcatve factors C nc and C dec are set as follows: 1 C nc = 1 3[ level( level( ], s S, t T; (6) 1 C dec = 1 2 [ level( level( ], s S, t T. (7) The detaled schema tree matchng algorthm s lsted as n Fg. 3. The postorder sequence s used for matchng nodes from the leaves to the upper levels. 1. Sub Schema_Tree_Match(SourceTree S, TargetTree T) 2. S = post-order(s), T = post-order(t) 3. for each s n S 4. for each t n T 5. f (s, t are leave then 6. set DTcom(s, = Datatype-Compatblty(s, 7. Wsm(s, = 0.5 DTcom(s, + 0.5 Lsm(s, 8. end f 9. f (s, t are non-leaf node then 10. compute Ssm(s, = structural-smlarty(s, 11. Wsm(s,=W struct Ssm(s, + (1-W struct ) Lsm(s, 12. end f 13. f (Wsm(s, th hgh ) then 14. ncrease-weghtedsmlarty(leaves(,leaves(,c nc ) 15. end f 16. f (Wsm(s, th low ) then 17. decrease-weghted-smlarty(leaves(,leaves(,c dec ) 18. end f 19. end for 20. end for 21. End Sub Fgure 3. The schema tree matchng algorthm.

D. Schema Smlarty After the computaton of all values of Wsm(s, for the source schema S and the target schema T, the match pars of the two schemas are generated by the Wsm(s, of the leaf nodes s n S and t n T. The match pars generatng algorthm s descrbed as follows: Step 1. Consder the matchng from S to T. For each leaf node s n S, the matched node t n T must satsfy the condtons of maxmzng Wsm(s, and Wsm(s, th accept. Let the set of selected match pars be S T. Step 2. Consder the matchng from T to S. For each leaf node t n T, the matched node s n S must also satsfy the condtons of maxmzng Wsm(s, and Wsm(s, th accept. Let the set of selected match pars be T S. Step 3. The fnal match results are the match pars n the set S T T S. After generatng the matchng pars, the schema smlarty between two schemas S and T s defned as ss, tt Wsm matched ( s, ScSm( S, T ). (8) leaves( S) V. EXPERIMENTAL RESULTS The generc context nterpreter proposed n ths paper used Mapforce API to develop the context mappng n the context mappng edtor. The ntal blank system needs buld context mappng manually. Once more mappng datasets were accumulated n the mappng hstory, Users wll be able to refer to the exstng schema mappng cases and a smlar sensor schema mappng was selected to modfy as a new context mappng. The test schema sets nclude seven dfferent sensor schemas lsted n Table I. The depths of schema structures are four levels. The number of leaves s between the range four and sx. The number of nodes s n the range of seven to ten. We frst ranked the smlarty degree of each schema by experts as shown n Table II. Then the proposed schema matchng algorthms, Cupd [11] and COMA++ [2][8] are tested on each schema. To evaluate the schema matchng performance of rankng, we refer to R norm [11] values as the crteron of effectveness. The matchng results of smlarty are evaluated and ranked, as shown n Table III. TABLE I. THE STRUCTURE UINFORMATION OF SENSOR SCHEMAS. Schema Leaves Nodes Depth GPSData (GPS) 5 9 4 HumdtyData (Humd) 5 9 4 IRData (IR) 5 9 4 LghtData (Lgh 5 9 4 RFIDData (RFID) 5 8 4 SensorData (Sensor) 6 10 4 Temp2Data (Temp2) 4 7 4 The two methods SYM and SYM-Dct represents the proposed schema matchng algorthms. The dfference between them s that SYM-Dct used the full algorthm of the four lngustc matchers, whereas SYM sets the Lsm(s, to be 0.4 nstead of usng WordNet searchng and smlarty computng. The expermental results show that the SYM leads n four schemas and COMA++ s generally superor to others n three schemas. The R norm values of COMA++ are better than Cupd for 5 schemas except S 5 :RFID and S 6 :Sensor. The reason s that the type of value(xs:decmal) n S 7 :Temp matched the type of value(xs:strng) n S 5 and S 6. Ths mstake causes the hgher rank of S 7 :Temp. It shows that COMA++ s relatvely weak n the matchng of types on leaves. The SYM-Dct s surprsngly the worst n the four methods. The man reason s that the matchng of WordNet dd not perform proper lngustc smlarty matchng results. The WordNet may gve relatve hgh smlarty for two dfferent terms. On the contrary, the SYM drectly sets the values as 0.4 s a good smlarty snce the lngustc smlarty s generally less than 0.5 f the three lngustc matchers are not used. The average R norm values show that the SYM has the best rankng. The COMA++ combnes dfferent matchers and gans the second place. Generally speakng, SYM-Dct and Cupd s not recommended to be used n ths applcaton. VI. CONCLUSION The man contrbuton of ths paper s to propose an ntellgent context nterpreter to get context ndependence. A context nterpretaton scrpt s proposed to replace hard codebased context nterpreter. We desgn a generc context nterpreter consstng of the context scrpt generator and the generc scrpt nterpreter. We also desgn a context edtng tool for support the context mappng operaton and devces mantenance. By employng schema matchng approaches, the generc context nterpreter performs a more ntellgent operatng nterface for users. The heterogenety n pervasve context-aware computng wll gan a graceful soluton. The proposed schema matchng methods also show ther effectveness on the matchng rank. The SYM method s superor to SYM-Dct, Cupd and COMA++. The heterogenety s a seres problem whle developng and extendng context-aware applcatons n an envronment of pervasve computng. Ths work s ntended as a startng pont of further nvestgatng on context-aware computng. The problems of context management for context-aware computng wll be pad more attenton n the future. ACKNOWLEDGMENT Ths research was supported n part by the Natonal Scence Councl of Tawan, R.O.C. under contract NSC 98-2221-E-024-012. REFERENCES [1] A. Algergawy, E. Schallehn, G. Saake, A Sequence-based Ontology Matchng Approach, n Proceedngs of 18th European Conference on Artfcal Intellgence Workshops, pp 26-30, Patras, Greece, July, 2008.

[2] D. Aumuller, H. Do, S. Massmann, E. Rahm, Schema and Ontology Matchng wth COMA++, n Proceedngs of the 2005 ACM SIGMOD Internatonal Conference on Management of Data, pp. 906-908, New York, USA, 2005. [3] M. Baldauf, S. Dustdar, and F. Rosenberg, A survey on contextaware systems, Internatonal Journal of Ad Hoc and Ubqutous Computng, Vol. 2, No. 4, 2007, 263-277. [4] C. Bartelt, T. Fscher, D. Nebuhr, A. Rausch, F. Sedl, and M. Trapp, Dynamc ntegraton of heterogeneous moble devces, n Proceedngs of the 2005 workshop on Desgn and evoluton of autonomc applcaton software, pp. 1-7, New York, NY, 2005. [5] G. Chen, and D. Kotz,, A survey of context-aware moble computng research, Techncal report TR2000-381, Dept. of Computer Scence, Dartmouth College, 2000. [6] B. C. Chen and S. Y. He, A Genetc Context Interpreter for Context-aware Systems n Pervasve Computng Envronments, n Lecture Notes n Computer Scence, LNCS No. 6104, Sprnger-Verlag, 2010, pp. 91-100. [7] B. C. Chen and S. Y. He, A Hybrd Approach for Automatc Schema Matchng, n proceedngs of the Internatonal Conference on Machne Learnng and Cybernetcs (ICMLC2010), July 11-14, 2010, Qngdao, Shangdong, Chna. [8] A. K. Dey, G. D. Abowd, and D. Salber, A conceptual framework and a toolkt for supportng the rapd prototypng of context-aware applcatons, Human-Computer Interacton, 16, 2001, 97 166. [9] H. Do, E. Rahm, COMA - A System for Flexble Combnaton of Schema Matchng Approaches, n Proceedngs of the 28th VLDB Conference, pp. 610-621, Hong Kong, 2002. [10] F. Duchateau, Z. Bellahsene, R. Coletta, A Flexble Approach for Plannng Schema Matchng Algorthms, n Proceedngs of the OTM 2008 Confederated Internatonal Conferences, CoopIS, DOA, GADA, IS, and ODBASE 2008, Part I on On the Move to Meanngful Internet Systems, pp. 249-264, Monterrey, Mexco, 2008. [11] V. N. Gudvada, V. V. Raghavan, Desgn and Evaluaton of Algorthms for Image Retreval by Spatal Smlarty, ACM Transactons on Informaton Systems, Vol.13, No.2, pp. 115-144, Apr. 1995. [12] J. Madhavan, P. A. Bernsten, E. Rahm, Generc Schema Matchng wth Cupd, n Proceedngs of the 27th Internatonal Conference of Very Large Data Bases (VLDB 01), pp.49-58, Roma, Italy, Sep. 2001. [13] D. Manakanatas, D. Plexousaks, A Tool for Sem-Automated Semantc Schema Mappng: Desgn and Implementaton, n Proceedngs of the Internatonal Workshop Data Integraton and the Semantc Web, Vol.: Proceedngs of Workshops and Doctoral Consortum, CAISE'06, pp. 290-306, Luxembourg, June 5-9, 2006. [14] J. Nakazawa, H. Tokuda, W. K. Edwards, and U. Ramachandran, A Brdgng Framework for Unversal Interoperablty n Pervasve Systems, n Proceedngs of the 26th IEEE Internatonal Conference on Dstrbuted Computng Systems, pp. 3-3, 2006,. [15] R. Schmohl, and U. Baumgarten, A generalzed context-aware archtecture n heterogeneous moble computng envronments, n Proceedngs of the 2008 The Fourth Internatonal Conference on Wreless and Moble Communcatons, pp. 118-124, July 27-Aug. 1 2008. [16] Type Castng Rules n XQuery, avalable at: http:// technet.mcrosoft.com/zh-tw/lbrary/ms191231.aspx [17] W3C XML Schema, avalable at: http://www.w3.org/ TR/2001/RECxmlschema-2-20010502/ [18] WordNet, Avalable at: http://wordnet.prnceton.edu/ TABLE II. THE RANKING RESULT OF EXPERTS. Experts Schemas Rank GPS S 1 Humd S 2 IR S 3 Lght S 4 RFID S 5 Sensor S 6 Temp2 S 7 2 Humd S 2 GPS S 1 Lght S 4 Humd S 2 GPS S 1 GPS S 1 Lght S 4 3 Lght S 4 Lght S 4 Humd S 2 IR S 3 Humd S 2 Humd S 2 GPS S 1 4 IR S 3 IR S 3 GPS S 1 GPS S 1 Lght S 4 Temp2 S 7 Humd S 2 5 Sensor S 6 Sensor S 6 Temp2 S 7 Temp2 S 7 IR S 3 Lght S 4 IR S 3 6 Temp2 S 7 Temp2 S 7 RFID S 5 RFID S 5 Sensor S 6 IR S 3 Sensor S 6 7 RFID S 5 RFID S 5 Sensor S 6 Sensor S 6 Temp2 S 7 RFID S 5 RFID S 5 TABLE III. THE PERFORMANCE COMPARISON OF SCHEMA MATCHING. Methods Sensor Schemas R norm S 1 GPS S 2 Humd S 3 IR S 4 Lght S 5 RFID S 6 Sensor S 7 Temp2 Average SYM 0.905 0.905 1.000 0.952 1.000 1000 0.857 0.946 SYM-Dct 0.714 0.857 0.857 0.762 0.905 0.875 0.762 0.819 Cupd 0.667 0.905 0.801 0.801 0.905 0.952 0.762 0.828 COMA++ 1.000 1.000 0.857 0.857 0.81 0.905 0.952 0.912