

![0_image_0.png](0_image_0.png)

## B2. Extraction Of A Specific Ontology

The Request Constructor Agent has a knowledge base which represents all ontologies that exist as well as ontologies which the Agent knows during his experience. The knowledge base gives us classes obtained from the XML file in order to know the relations and classes which have direct relations with the classes produced by the previous phase, so we obtain a file which contains a more complete structure of classes. New relations and classes are added to enrich the knowledge base of the agent. So in this phase, the agent extracts a specific ontology according to the classes used in Tasks 2 (File OWL / XML). In order to produce a more readable and convivial OWL / XML file, we have seen that it is recommended to make a small transformation of OWL / XML to pass in the RDF / XML format. For that, we have defined two main rules (cf. Figure 7 and Figure 8) (rules base N°2): 
Rule 1: "If we find classes in the XML file obtained in the entry and if they are scattered in various ontologies, then the produced service considered as the output of the agent will be a composed service". 

In a different way, a simple service is a service of which all the classes belong to the same ontology. 

Rule 2: "The attributes values of the obtained instances are the inputs of the service, and the empty attributes (without values) represent its outputs". 