03.12.2012 Views

Semantic Web-Based Information Systems: State-of-the-Art ...

Semantic Web-Based Information Systems: State-of-the-Art ...

Semantic Web-Based Information Systems: State-of-the-Art ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 15. Template-based transformation<br />

General Adaptat on Framework<br />

cording to its schema. Depending on a canonical XML document, some branches <strong>of</strong><br />

<strong>the</strong> RSCDF graph have <strong>the</strong> same structure and could be cloned while processing.<br />

On <strong>the</strong> o<strong>the</strong>r hand, <strong>the</strong> tag templates correspond to <strong>the</strong> RSCDF classes. In fact, tag<br />

template represents some classes from RSCDF schema; for example, SR_<strong>State</strong>ment,<br />

Context_SR_Container, SR_Container, NumericalValue, TempTempMark. Tag templates<br />

are “bricks,” which are used by <strong>the</strong> adapter to produce <strong>the</strong> RSCDF document.<br />

Tag template has a body and a changing part, which can have different types:<br />

• Link to o<strong>the</strong>r tag template<br />

• Link to XML data<br />

• Link to ontology data<br />

• Generated value<br />

Figure 15 represents an example <strong>of</strong> <strong>the</strong> tag template. The variable Xn is obtained<br />

during a run-time ei<strong>the</strong>r from ontology or <strong>the</strong> XML file, or generated by <strong>the</strong> generator.<br />

The variable Yn is obtained from <strong>the</strong> identifier <strong>of</strong> from some o<strong>the</strong>r template.<br />

This means that if an RSCDF tag depends on some o<strong>the</strong>r RSCDF tag, <strong>the</strong>n it will<br />

be generated after <strong>the</strong> latter one. In this way, <strong>the</strong> adapter recursively calls methods<br />

<strong>of</strong> template creation until it will reach <strong>the</strong> leaf nodes.<br />

Using tag and structural templates, <strong>the</strong> device adapter performs semantic transformation.<br />

This approach provides a possible way to implement <strong>the</strong> logic <strong>of</strong> semantic<br />

transformation from canonical XML to RSCDF format.<br />

Copyright © 2007, Idea Group Inc. Copying or distributing in print or electronic forms without written permission<br />

<strong>of</strong> Idea Group Inc. is prohibited.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!