# Test Bed of Semantic Interaction of Smart Objects in the Web of Things
## 3 Architecture Deployed
### Semantic Object Layer  
Responsible for hosting the tools that support the semantic capabilities of the test bed. It has three main elements:  
* Semantic Object Ontology (SOO) [5]: Is one of the relevant element of the present work. Uses OWL [23] as its language. It is stored and instantiated in each smart object of the test bed. The SSO have the information necessary to generate collaborative behavior between smart objects and their users. The SOO stores the smart object information of: context, metadata, interaction services (ECA), basic service, entity of interest, and resources in a set of instances. This element is consulted when the object needs to expose information about its metadata or create the contracts of interaction service with other objects. In Figure 2, the upper level of the SOO is presented.  
In Figure 2, the upper level of the SOO is presented. Each of the concepts are defined as follows in Table 1.  
* Semantic IoT index: an information structure stored in a server in the cloud, which can be consulted to carry out the discovery and connectivity processes to IoT devices in a specific context and place. When a user made a query, the index uses the concepts contained in a context ontology to organize the information retrieved from the digital representation of each object. Then the index exposes a list of smart objects and their services, according to the concepts of the domain ontology.
* DogOnt [24]: since it was necessary to define a dynamic context, this domain ontology was used because it contains the concepts and relationships to generate the context. This ontology is stored and instantiated in the semantic index element. The semantic index consumes the information from DogOnt and generates the context based on the ontology concepts. The DogOnt can be changed according the test bed needs. In this project we use the context of home automation included in DogOnt.  
The semantic index and the DogOnt are not core elements of this project, those are from external developments, but we use those elements as an important part of our project. The union of the semantic index and DogOnt generates the domain, this information can be requested from different elements.  
\begin{table}
\begin{tabular}{c c c} \hline \hline
**Name** & **Synonyms** & **Description** \\ \hline \multirow{2}{*}{Properties} & Attributes, qualities, traits, & Attributes that describe the object or device of the IoT. \\  & peculiarities, characteristics & Mainly metadata. \\ \hline \multirow{2}{*}{Methods} & Functions, Procedures, & Functions to communicate data between objects. \\  & techniques, rules, plans & The data can be: properties, states or commands. \\ \hline \multirow{2}{*}{Knowledges} & Judgment, understanding, & \\  & intelligence, competence & Context information such as user profiles and services. \\ \hline \multirow{4}{*}{Interactions} & & Relationships established with other objects. Have the \\  & Interrelation, collaboration, & contracts that define the dynamic interactions in which \\  & cooperation, participation, & actions are modeled on an environment. This concept \\  & alliance, association & has the ECA pattern, where an event (can be any \\  & & sensor or actuator of any object), is compared with a \\  & & condition (normally defined by the user) if the \\  & & condition is true, the system takes an action \\  & & (activate/deactivate of any object actuator). \\ \hline \multirow{2}{*}{Quality} & Evaluation, effectiveness, & Establishes objectives and indicators to monitor the \\  & efficiency, relevance & state of the object’s processes. \\ \hline \multirow{2}{*}{States} & Stage, change, phase, course, & Values of the properties measured by the resources of \\  & moment, period, season & the object in a given time. \\ \hline \hline \end{tabular}
\end{table}
Table 1: SOO upper level concepts.  
Figure 2: Module of the properties of the Semantic Object (object-oriented pattern).