04.11.2014 Views

elektronická verzia publikácie - FIIT STU - Slovenská technická ...

elektronická verzia publikácie - FIIT STU - Slovenská technická ...

elektronická verzia publikácie - FIIT STU - Slovenská technická ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Semantic Web Services 185<br />

space. These use different heuristics or approaches utilizing evolution algorithms such as<br />

hill climbing. Different approaches tailored to the web service composition problem dealing<br />

with the space searching are discussed later. The correspondence between AI planning and<br />

web service elements is depicted in Table 6-1.<br />

Table 6-1. Correspondence between web services and space–base planning elements.<br />

AI planning element<br />

s 0<br />

G<br />

A<br />

Γ<br />

Web service element<br />

initial state<br />

desired goal state<br />

available web services<br />

web service state change function<br />

OWL-S is the language containing elements directly corresponding with state-space based<br />

AI planning. The state change produced by the execution of the web service is described by<br />

the preconditions and effects of the OWL-S ServiceProfile.<br />

Graph Based Planning<br />

In this approach graph structures are used when solving the planning problem. This structure<br />

is called planning graph [21]. It is a directed leveled graph consisting of two types of nodes:<br />

action nodes and proposition nodes. These nodes are organized into altering levels (one level<br />

includes nodes only of one type). The first level of the planning graph contains proposition<br />

nodes describing the initial situation. It is then followed by a level of action nodes. This level<br />

contains nodes for each action whose preconditions are satisfied by the proposition nodes of<br />

the first level. Next level is again proposition level. It contains each node from the precedent<br />

proposition level and nodes representing the effects of the actions from the precedent action<br />

level. The construction of the planning graph stops when the successive proposition levels<br />

are identical. If the goal is not reached either in the last proposition layer or in previous<br />

layers, the plan can not be constructed and the given problem is unsolvable.<br />

In Figure 6-13 a planning graph example is depicted. It presents a situation, when Eva<br />

and Adam are in room number one (R1) and they want to move into the room number two<br />

(R2). To do this, the room R1 must be opened and only a man can open a room. We have the<br />

following predicates:<br />

(at ?who ?r) - true if who is in a room r (opened ?r) - true if r<br />

is opened (man ?m) - true if m is a man<br />

At the beginning, the following propositions hold:<br />

– Eva is in the room R1<br />

– Adam is in the room R1<br />

– Adam is a man<br />

– The room R1 is closed

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

Saved successfully!

Ooh no, something went wrong!