Semantic Image Search: Case Study for Western Region Tourism in Thailand

Chantana Chantrapornchai* , Netnapa Bunlaw** and Chidchanok Choksuchat***


Abstract: Typical search engines may not be the most efficient means of returning images in accordance with user requirements. With the help of semantic web technology, it is possible to search through images more precisely in any required domain, because the images are annotated according to a custom-built ontology. With appropriate annotations, a search can then, return images according to the context. This paper reports on the design of a tourism ontology relevant to touristic images. In particular, the image features and the meaning of the images are described using various properties, along with other types of information relevant to tourist attractions using the OWL language. The methodology used is described, commencing with building an image and tourism corpus, creating the ontology, and developing the search engine. The system was tested through a case study involving the western region of Thailand. The user can search specifying the specific class of image or they can use text-based searches. The results are ranked using weighted scores based on kinds of properties. The precision and recall of the prototype system was measured to show its efficiency. User satisfaction was also evaluated, was also performed and was found to be high.

Keywords: Image Search , Ontology , Semantic Web , Tourism , Western Thailand

1. Introduction

The western region of Thailand contains many forms of tourist attraction, such as national parks, historical places, temples, etc. It is also not far from Bangkok, the capital of Thailand, which also attracts many tourists from other parts of Thailand every year. Current Internet technology has the potential to stimulate tourists to visit the region and provide a large amount of information to them. However, they need to go through the results and to select the required information carefully.

If the information returned to the user is domain-specific, it can be narrowed down in order to search within the results which can help the user to find satisfactory information quickly. Collecting domainspecific data from multiple sources and representing them properly are important in facilitating the searching process. Knowledge representation in the form of an ontology has become popular since it can present the meaning of each keyword term in a domain as well as presenting the relations between them. Further, relationships between data can be inferred. Similarly, for image searches, if the only keywords searched are from the description of the image or the title, the results can include both correct and unwanted images.

Moreover, integrating related information can help tourists to search for images more precisely based on other information as well. For example, in a search for the keyword “Sanam Chandra Palace” using traditional string matching would probably match the documents with the individual words “Sanam”, “Chandra” and “Palace”, and combinations of them. The results would display all findings: both related and unrelated, and in this example, many unrelated images might be shown, such as those of fields (“sanam”), palaces, the moon (“Chandra”) as well as other extraneous images. This is because the search engine does not check for the semantics of all the words but only uses straightforward word-for-word matching. The user then needs to browse through these results to identify the required images. With a semantic image search, the search engine would aim to identify a set of pictures of the palace itself in Nakhon Pathom province, or pictures of King Rama VI who was the owner of the palace or even of the Silpakorn University campus at that location.

In this work, the main contribution is to demonstrate the use of a tourism ontology schema for images relevant to tourists in western of Thailand. Ontological data relating to each region, including images, was collected and analyzed in order to extract its properties, and the images were then annotated and recorded as data. To our knowledge, at the time the study was conducted, this was the first semantic search engine relevant to tourism in Thailand. In addition, the tourism ontology was adapted to a Thai cultural style and the search engine accepted user inputs in natural language as well those consisting of a specific selection. The engine returns related images and information to the user with a ranking. The web application developed satisfies users’ needs for images based on the results of searches.

In this paper, the methodology used is described including corpus building, data collection, the creation of the ontology, search and query mapping, and result ranking. User satisfaction evaluation was performed and the precision and recall searches were measured.

2. Background

Semantic webs can help users to find information on the Internet effectively by building relationships between data coming from different data sources, termed linked data. Typical languages used to represent semantic webs are the XML language, Resource Description Framework Schema (RDFS) and Web Ontology Language (OWL) [1]. There are two main issues in building a semantic web:

1. Collecting enough information resources relating to the given domain.

2. Classifying the information, relating it both vertically and hierarchically and discovering its properties.

2.1 Web Ontology Language

Ontology is the term used to describe all the concepts of interest in a specific domain without ambiguity in such a way that human beings, computers or software applications can understand the connections in meaning among all the things described. A typical ontology exists in the form of a hierarchical data structure, employing relationships such as Part-of a, Is-a, and their synonyms. Currently, ontologies are applied in many research areas such as Artificial Intelligence (AI), knowledge engineering, and they are also applied in Natural Language Processing (NLP) [2].

An ontology is a particular way of representing knowledge. Its structure is created in such a way that it describes the existing knowledge in a field of interest and it can thus be extended to new knowledge added to the domain. It can also describe the details of and the relationships among things. The data described by an ontology can be openly distributed, creating networks of data to provide the means of simple and quick searches. Each relationship within an ontology is structured as a subject, predicate, and object, denoted as a triple.

OWL is a language which was been developed from RDFS and can be used to describe an ontology. It describes the data structure using the RDFS language, or represents the data values of features in an RDF Graph, including a collection of RDF triples in the OWL language. Fig. 1 shows a roadmap of the Semantic Web “Layer Cake” structure which can be modeled using OWL. It contains a logic layer, which can help to provide inferences a particular query.

Fig. 1.
Semantic web “Layer Cake” structure roadmap [ 3].
Fig. 2.
Structural model of OWL.
Fig. 3.
Description of the data in Fig. 2 through OWL.

Fig. 2 shows a description of the resource at URI “#GOLDEN_ LAKE_VIEW_RESORT” which denotes the facility and the property value as “Meeting”. From Fig. 2, it can be described through OWL as shown in Fig. 3.

SPARQL [4] is a language used for querying semantically and for searching meaningfully for information within an ontology, and the data can be accessed as triple structures (Subject, Predicate, Object) [5]. The concepts used in searching with the SPARQL language are comparable with those of the SQL language. Searches are divided into two parts: “SELECT” and “WHERE”. The variables are prefixed with “?” and those for which result values are returned and denoted by “SELECT”. “WHERE” defines the data on which the search is based. In the example below in Fig. 4, which shows an example of a SPARQL query to locate pictures relating to nature and wild life, the variable, ‘picture’ is searched for based on three components of the description of the image data in OWL. In order to Subject, which is ?At. Predicate shows properties of Contact, Image, and Picture Name. Object displays ?Province, ?Picture, and ?AccommodationName, from top-down rows respectively with abbreviate.

Fig. 4.
Example query of SPARQL language.
Fig. 5.
Comparison of search results between the Google search engine and Swoogle [ 6].

Searches using OWL and traditional semantic searches may return very different results as illustrated in Fig. 5, which shows the search results for the term attractive in Google and Swoogle, where the number of search results from Google exceeds 130 million [6].

The Google search engine does not work well with documents encoded in RDF and OWL as it is designed to work with natural language keywords and does not recognize the semantic content. It does not understand the structural information encoded in documents and, thus, cannot exploit their advantages [7]. Swoogle is a crawler-based indexing and retrieval system for semantic web documents, i.e., RDF or OWL documents without metadata. Documents are found using the system index by computing the similarity between information among available archives. It attributes levels of importance to documents and an ontology is used to organize them.

2.2 Image Annotation

Different image annotation tools process data differently. However, all of them entail two concepts, the domain concept and the image characteristics concept [8]. The tools for image annotation used can be as simple as a plug-in for Protégé [9] or some special tool that uses RDFS. These tools may also include the query user interface.

In Fig. 6, the images are annotated based on their sources and the image relationships. The two concepts are built in and are related. For example, the domain ontology and the annotation ontology may be as described in [8].

Fig. 6.
The sample annotation tool in Protégé.

3. Relevant Literature

This section describes previous work relevant to semantic search engines, semantic image retrieval, and image annotation.

3.1 Semantic Search Engines

Several previous studies have described semantic search engines. For example, Ding et al. [7] presented a search and retrieval system to find and analyze semantic web documents on the web. The system can be used to support tools being developed by researchers to identify relevant ontologies, documents and terms using keywords and additional semantic constraints.

d'Aquin and Motta [10] focused on individual RDF documents, which do not have embedded index formats and Thomas et al. [11] demonstrated the use of OntoSearch for in ontologies and AKTiveRank ontology ranking. These have multiple capabilities such as searching by types (OWL, RDF, etc.), searching by keywords, and searching sub-graphs.

There have been many studies of search engines for tourism which can be used to improve the visibility of tourism data [12]. These include the Tourinflux project in France (http://tourinflux.univlr. fr/) which allows tourism stakeholders to manage their data and assess the public perception of their areas and aims at data reuse and interoperability. Among its main concepts are multimedia, rating, contact, organization, language, location, reservation and prices. Harmo-TEN is the European Union’s project to encourage communication on-line within the tourism sector, which exploits semantic web technologies [13]. The study of Sadasivam et al. [14] relating to the India tourism sector concentrated on ontology-based information retrieval for e-tourism. AcontoWeb is an Australian e-tourism initiative which uses a semantic web and includes both integration and utilization tools [15]. These initiatives are similar in that they address issues related to tourism in specific domains and regions.

3.2 Semantic Image Retrieval

Several studies have been conducted relating to semantic image retrieval [16]. Hyvonen et al. [9] presented a case study of image retrieval at the Helsinki University Museum. The system described contains features such as annotation terminology, view-based searches, and semantic browsing where related images can be accessed from query keywords and image re-ranking. It is based on the visual features of the images and aims to improve the precision of image ranking after querying.

Magesh and Thangaraj [17] presented a system for semantic image retrieval. The development contained several typical processes: the annotation of images, ontology development, creating individuals, and an image ontology. Town [18] presented the OQUEL system for searching for images and videos. The interesting process in this system is the use of a machine learning method to reduce the semantic gap between the user and the system ontology notation. The image and video features are extracted by learned models and are mapped to the ontology with a probabilistic model.

Buitelaar and Eigner [19] evaluated the OntoSelect ontology library which is based on a document ontology search strategy. OntoSelect uses the GoogleAPI to find ontology data in the DAML, OWL or RDFS formats. Their evaluation was scored based on coverage, connectedness, and structure. Wang et al. [20] also presented an automatic annotation system for animal images, in which both images and text features are considered. Ranking of semantic relationships is then used to improve the search results. The study compared the search results from the system with the top 200 Google image search results. Table 1 summarizes the differences between a normal image search and a semantic image search.

Table 1.
The difference between traditional image searches and image searches by ontology
3.3 Annotation Tool

For image queries, image annotation is one of the most important steps. Several studies have investigated image annotation within the ontology process. The work of Hyvonen et al. [9] demonstrated the linkage between the image and its content based on an ontology which includes the name of the image and information about it. The system uses Protégé 2000 as the editor for the ontology and annotates the images using RDFS. To make annotations, the annotator takes the photograph and creates an empty instance of the class image. Then the annotator fills in the empty fields with the image elements. If a new instance is needed, where this is the first image of its type to be annotated, the annotator can use the same instance again to annotate other images. The choice depends on how detailed the semantics need to be and on the annotator’s choices.

Koletsis and Petrakis [21] developed a Semantic Image Annotation (SIA) image annotation framework, employing four annotation steps. In Step 1, the ontology was built. Step 2 describes the image’s similarity which is the relative importance of each low-level feature (color or texture). This is determined using a machine learning process utilizing a decision tree. Step 3 is image matching to the image. The ontology is then searched to retrieve the images that are most similar to it. Image matching is implemented using image content descriptions (color, texture and hybrid features). The combined similarity measure is calculated and used for image similarity. Finally, the images found are ranked in decreasing order of similarity. Step 4 is the image annotation. The new image is classified into one of the known semantic categories. The semantic image category with instances having the best ranks in the retrieved set is chosen. Finally, a description is assigned to the new image. To test the system images of dog breeds were annotated.

Kallergi et al. [22] described an ontology viewer used for image annotation within ontologies. The tool uses a multi-modal bio-imaging database (CSIDx) which helps users to annotate images. Schreiber et al. [8] developed a tool for photograph annotation. They defined two types of annotation: annotation for image characteristics and annotation about the domain of the images. The system consists of an internal ontology consisting of a photo annotation ontology, a subject matter ontology, and a domain ontology and also provides a user interface for searching.

4. Methodology

In this section, we present the methodology used in the development of our search system including deriving a keyword corpus, designing a tourism ontology and the development of a semantic search capability. Fig. 7 shows the process which eventuates when the user searches for the text ‘Cave Kanchanaburi’, which the system then looks up in the ontology, which includes annotation of the province details and of the images. The tags related to the search text are matched and the results are ordered by a ranking algorithm and then returned to the users in an HTML format response.

The first step in developing the system involved gathering keywords relating to tourist attractions in the Thai language. Several tourism websites related to the region were explored including tourism magazines, etc. The keywords about the attractions and their history were gathered together to create a corpus.

Fig. 7.
The searching process.
Fig. 8.
Main classes (left) and extended subclasses of Attraction class (right).
4.1 Ontology Design

First, the ontology was designed. It contains main classes such as: Attraction, Accommodation, Facility, ContactData, Activity, Travel, RoomRate, RoomType, ImageCategory as shown in Fig. 8 and is saved in OWL. Other classes, class properties and data types were also designed, for example: activity class, facility class, contact class.

4.2 Image Preparation

The image information is stored in an XML file. As shown in Fig. 9, 350 images were prepared for the case study and the ontology metrics were grouped into 168 classes, 155 subclasses, 30 object properties, 42 data properties, and 1,240 individuals.

Fig. 9.
Image preparation.
4.3 Searching Method

The following steps are required to search for images: keyword selection, keyword synonym finding, ontology search and ranking of the results. The keywords were divided into five categories based on our corpus: (i) attraction name, (ii) accommodation name, (iii) details of image, (iv) accommodation description, and (v) image description. Taking an image query from the description as an example, first, the user inputs a query as text about an image, its description or details. The text is tokenized, and the tokenized text is used as keywords to search against categories (i), (iii) or (v).

Table 2.
Example synonyms and resources
Table 3.
Searching keyword synonym returning literal terms

The keywords are used to search for keyword synonyms. For example, the keyword, “Wachiralongkorn Dam”, is related to “Khaolam” (which is actually expressed as “owl:sameAs”). This returns the group of keyword resources related to “Wachiralongkorn Dam” in Table 2. All these synonyms will be used to search in the ontology to find related literals as shown in Table 3.

Fig. 10.
Example of searching in the ontology.

As shown in Fig. 10, when the user enters “Wachiralongkorn” as the keyword, it will be searched within the property “Name”, and any other individuals with “owl:sameAs”. In this case the results return “Khaolam dam”. Next, other properties such as image, contactData, Description, Resource etc. are searched. SPARQL is used to search the ontology. For instance, to search for images in the same class, the following query would be used:

Fig. 11.
Query subclasses of NatureAndWildllife.
Fig. 12.
Query results of Fig. 11.

Fig. 11 shows all images retrieved in the same subclass, NatureAndWildlife for which the sample results are shown in Fig. 12.

In the following example, the query using user the keyword “Wachiralongkorn” is shown, which indicates that the user wants to find any dam in Kanchanaburi province that can be accessed by car with the name containing the substring “Wachiralongkorn”.


In the listing, we search by properties: (1) any name with the substring “Wachiralongkorn”, (2) it is in “Kanchanburi”, (3) it is a dam. The results should show image (5), how to get there (4), the contact number (6), etc., as depicted in Fig. 13. ?x is a dummy related to all resources. The answers for the variable ?Image in the SELECT clause are returned. Fig. 13.

Fig. 13.
Query based on the dam’s attributes for an image.
4.4 Ranking Results

When a number of image results are returned it is necessary to rank the results. In the system designed in this work, the weight hierarchies are calculated based on classes, sub-classes, and attributes and the results are ranked based on these weights. Table 4 shows an example of the weights for class, sub-class, and property ranked according to specificity. In this example, the highest weighting is given to Feature which comprises the details of the attraction.

Fig. 14 illustrates the hierarchy of classes shown in Table 4. ContactLocation is a superclass of Amphoe and Province (subClassOf). Generally, the Amphoe and Province classes are specified together since they must appear in any address. Thus “Muang” as an instance of Amphoe, and it is also an instance of Province. The calculated weight of this instance is equal to 1 + 2 = 3. The total result of the very specific details of a tourist location is derived from the data properties of Name of the picture and Feature of the picture, whose weight scores are 7 and 11, respectively.

Table 4.
Example of property weight
Fig. 14.
Transformation of hierarchy weights to ontology tree.
Fig. 15.
Keyword extraction and query.

The user may enter a query based on text, for example, by typing the text search “Japanese bridge World War” and the user selects the province to be Karnchanaburi. The text is then tokenized to be “Japanese”, “bridge”, “World War”. Suppose “Japanese” is found in the property feature, “World War” is found in the property NamePic and “bridge” is found in the property “Name”. These three keywords are checked against the categories (i) attraction, (iii) image detail and (v) image description, respectively and found in the corpus categories as shown in Fig. 15. Then the query is generated based on these categories. In the query, the prefixes that belong to the ontology are highlighted. The boxes indicate the keywords extracted from the above text.

The query results are then ranked by summing the weights in Table 4, while Table 5 shows the example calculation. Fig. 16 shows the results of the query.

Fig. 16.
Query results.

5. Results

The search system was evaluated using 100 sample images. These images were described, and the features were extracted and saved in RDF form in OWL. Twenty-five users then randomly searched the images using 50 distinct Thai phrases. The precisions and recalls were measured. The test cases were divided as following.

1. The test case where the keyword in the phase is Data Properties: NamePic.

2. The test case where the keyword in the phase is a part of an attraction name: Data Properties: Name.

3. The test case where the keyword in the phase is a part of image name: Data Properties: NamePic.

Table 5.
Result of weight calculation
Table 6.
Precision and recalls for the keyword search
Fig. 17.
Example user interface widgets.

Table 6 shows the precision and recalls of these tests. From Table 6, case 1 and case 3 gave about the same results while case 2 outperforms the other two cases. Next, we tested the results for the case of using conditions rather than keywords. The conditions are specified by properly selecting widgets appearing in the user interface. Fig. 17 shows an example of the user interface. The user may specify the type of attractions (more than 1 type is possible).

Table 7.
Results for the three cases of three types

The tests for this user interface are of three types.

Type 1. Search by image feature (Data Properties:Feature) where the input phases are tokenized. Then, we obtain the following cases:

Case 1: Attraction name with Data Properties: Name and image feature: Data Properties: Feature.

Case 2: Attraction name with Data Properties: Name and image feature: Data Properties: Feature or Data Properties: Name and name of the picture: Data Properties: NamePic, or Data Properties: NamePic and Data Properties: Feature.

Case 3: Attraction name: Data Properties: Name and name of the picture: Data Properties: NamePic and Data Properties: Feature.

Type 2. Next, we tested the second type of query where the types of attraction are considered. We obtained three cases.

Case 1: Only the attraction name is selected (Data Properties: Name).

Case 2: The attraction name is used with the name of the image (Data Properties: Name and Data Properties: NamePic) or the attraction name is used with the feature of the image (Data Properties: Name and Data Properties: Feature).

Case 3: The attraction name is used with the name of the image and the feature of the image (Data Properties: Name, Data Properties: NamePic, and Data Properties: Feature).

Type 3. For the last type, the types of attractions are given, and the user can specify more than one type. These types are used to perform the logical “AND” while for each subtype in it, the user can select more than one which is considered as the logical “OR” operator. There are three cases:

Case 1. The name of the attraction is given (Data Properties: Name)

Case 2. The name of the attraction is given and the name of the picture is given (Data Properties: Name and Data Properties: NamePic), or the name of the attraction is given and the features of the picture are given (Data Properties: Name and Data Properties: Feature)

Case 3. The name of the attraction is given, the name of the picture is given, and the features of the picture are given (Data Properties: Name, Data Properties: NamePic, and Data Properties: Feature).

Table 7 presents the results from these three cases of three types.

From all the above test cases, the average precision was 84% and the average recall was 100%. In addition, we measured the user satisfaction with the system based on the 25 users mentioned above. Their satisfaction with the general operation of the system, and types of data and the relationships between them, and the user interface design. It was found that the users’ satisfaction with the system in all aspects was above 4 out of 5.

Table 8.
Comparison with similar systems
5.1 Comparison with Other Systems

Table 8 shows a comparison of the system developed with some other semantic web applications in the tourism domain based on its general usefulness within the domain, its image descriptions, query language, annotation language, results (either text or image), the number of images tested, the number of users tested, and the measurements. The domains of the work in [24] and [26] are national archives and natural attractions in Thailand respectively. In [25], the historical domain is in the area of the former Qin dynasty in China and the study is similar to our work in that it applies the results of searches for images. In that study, the number of images interrogated was 49 with 30 customized natural language queries (in Chinese, while the present study used 100 images queried with 50 Thai phases. The number of users in this work was 25 while the Chinese study did not mention the number of people who contributed to the study [25]. For [26], the authors adopted weights according to the level of the RDF properties to compare with the matching RDF keywords before returning the images as search results. In the present study, queries were implemented using SPARQL and the properties of the sub-classes and data types were measured based on a weighting hierarchy. This study also tested performance based on its precision of recall (i.e., the accuracy, which repeated searches produced the same images) in user searches.

6. Introduction

This research presented a case study of a prototype system to search for images using the semantic web concept to enhance the performance of search engines in searching for images. An ontology-based model was created describing tourist attractions and images.and the sytem was found to provide results meeting users’ needs. The system designed could be extended to apply to other domains in Thailand.

This research is limited to the scope of image data searches in Thailand and the system was built with the image information in the Thai language. The characteristics of Thai phrases were the natural language of the system which helped users to find the right image of tourist attractions.

Image classification depends on the emphasis. For example, we studied pictures of attractions in the region and the attractions may be divided into many kinds, such as natural parks, historic places, and culture or traditions. The sub-classes of each class for each image should be designed to accommodate this division. However, the general findigns of this research relating to the extraction of an automatic ontology from images is nevertheless interesting.

The image ontology and the domain concept must be designed based on the domain in which it is intended to operate. When more images are added, it is possible that the original domain concepts will not supported. Moreover, the issues of automatic mapping between images and the domain concepts would need to be considered in any future study.


Chantana Chantrapornchai

She obtained her Bachelor’s degree (Computer Science) from Thammasat University of Thailand in 1991. She graduated from Northeastern University at Boston, College of Computer Science, in 1993 and University of Notre Dame, Department of Computer Science and Engineering, in 1999, for her Master’s and Ph.D degrees respectively. Currently, she is an associate professor at the Dept. of Computer Engineering, Faculty of Engineering, Kasetsart University, Thailand. Her research interests include: parallel computing, big data processing, semantic webs, computer architecture and fuzzy logic.


Natnapa Bullaw

She received a Master’s of Science in Computer and Information Science degree from Silpakorn University, Thailand. She currently works as the government officer at Samut Prakan Provincial Land Development Depot. Her research interests include semantic search, image ontology, web ontology language, SPARQL, and sustainable tourism in the west of Thailand.


Chidchanok Choksuchat

She received a Ph.D. degree in Computer and Information Science from Silpakorn University. She is currently a lecturer in the Information and Communication Technology Programme, Faculty of Science, Prince of Songkla University, Thailand. Her research interests include the CUDA, Java concurrency, ontology engineering, SPARQL endpoint, linked open data, natural language toolkit, and the Internet of Things.


  • 1 W3C, 2004;,
  • 2 N. Guarino, Formal Ontology in Information Systems. Amsterdam: IOS Press, 1998.custom:[[[-]]]
  • 3 T. Berners-Lee, 2000;,
  • 4 G. Klyne and J. J. Carrol, 2004;,
  • 5 R. Cyganiak, 2005;,
  • 6 Swoogle: semantic web search (Online). Available:,
  • 7 L. Ding, T. Finin, A. Joshi, R. Pan, R. S. Cost, Y. Peng, P. Reddivari, V. Doshi, J. Sachs, "Swoogle: a search and metadata engine for the semantic web," in Proceedings of the 13th ACM International Conference on Information and Knowledge Management, Washington, DC, 2004;pp. 652-659. doi:[[[10.1145/1031171.1031289]]]
  • 8 A. T. Schreiber, B. Dubbeldam, J. Wielemaker, B. Wielinga, "Ontology-based photo annotation," IEEE Intelligent Systems, 2001, vol. 16, no. 3, pp. 66-74. doi:[[[10.1109/5254.940028]]]
  • 9 E. Hyvonen, S. Saarela, A. Styrman, K. Viljanen, "Ontology-based image retrieval," in Proceedings of the XML Finland 2002 Conference, Helsinki, Finland, 2002;pp. 15-27. custom:[[[]]]
  • 10 M. d'Aquin, E. Motta, "Watson, more than a semantic web search engine," Semantic Web, 2011, vol. 2, no. 1, pp. 55-63. doi:[[[10.3233/SW-2011-0031]]]
  • 11 E. Thomas, H. Alani, D. Sleeman, C. Brewster, "Searching and ranking ontologies on the semantic web," in Proceedings of the 3rd K-CAP Workshop on Ontology Management: Searching, Selection, Ranking, and Segmentation, Banff, Canada, 2005;pp. 57-60. custom:[[[]]]
  • 12 F. Soualah-Alila, C. Faucher, F. Bertrand, M. Coustaty, A. Doucet, "Applying semantic web technologies for improving the visibility of tourism data," in Proceedings of the 8th Workshop on Exploiting Semantic Annotations Information Retrieval, Melbourne, Australia, 2015;pp. 5-10. doi:[[[10.1145/2810133.2810137]]]
  • 13 M. Dell’erba, O. Fodor, W. Hopken, H. Werthner, "Exploiting semantic web technologies for harmonizing e-markets," Information Technology Tourism, 2004, vol. 7, no. 3-4, pp. 201-219. doi:[[[10.3727/109830505774297210]]]
  • 14 G. S. Sadasivam, C. Kavitha, M. SaravanaPriya, "Ontology based information retrieval for e-tourism," International Journal of Computer Science and Information Security, 2010, vol. 8, no. 2, pp. 78-82. doi:[[[PSG Yahoo]]]
  • 15 B. Abrahams, "Tourism information systems integration and utilization within the semantic web," Ph.D. dissertationVictoria University, Melbourne, Australia, 2006. custom:[[[]]]
  • 16 X. Wang, S. Qiu, K. Liu, X. Tang, "Web image re-ranking using query-specific semantic signatures," IEEE Transactions on Pattern Analysis And Machine Intelligence, 2014, vol. 36, no. 4, pp. 810-823. doi:[[[10.1109/TPAMI.2013.214]]]
  • 17 N. Magesh, P. Thangaraj, "Semantic image retrieval based on ontology and SPARQL query," in Proceedings of International Conference on Advanced Computer Technology (ICACT), Pyeongchang, Korea, 2011;pp. 12-16. custom:[[[]]]
  • 18 C. Town, "Ontological inference for image and video analysis," Machine Vision and Applications, 2006, vol. 17, no. 2, pp. 94-115. doi:[[[10.1007/s00138-006-0017-3]]]
  • 19 P. Buitelaar, T. Eigner, "Ontology search with the ontoselect ontology library," in Proceedings of the International Conference on Language Resources and Evaluation (LREC), Marrakech, Morrocco, 2008;pp. 1030-1033. custom:[[[]]]
  • 20 H. Wang, L. T. Chia, S. Liu, "Semantic retrieval with enhanced matchmaking and multi-modality ontology," in Proceedings of 2007 IEEE International Conference on Multimedia and Expo, Beijing, China, 2007;pp. 516-519. doi:[[[10.1109/ICME.2007.4284700]]]
  • 21 P. Koletsis, E. G. Petrakis, "SIA: Semantic Image Annotation using ontologies and image content analysis," in Image Analysis and Recognition. Heidelberg: Springer2010,, pp. 374-383. doi:[[[10.1007/978-3-642-13772-3_38]]]
  • 22 A. Kallergi, Y. Bei, F. J. Verbeek, "The ontology viewer: Facilitating image annotation with ontology terms in the CSIDx imaging database," in Proceedings of Workshop on Visual Interfaces to the Social and the Semantic Web (VISSW), Sanibel Island, FL, 2009;pp. 1-6. custom:[[[]]]
  • 23 N. Boonsim, S. Arch-int, "A metadata model for semantic image retrieval based on RDF," Khon Kaen University Research Journal (Graduate Studies), 2006, vol. 6, no. 1, pp. 60-74. custom:[[[-]]]
  • 24 P. Pratumrat, M.S. thesis, Khon Kaen UniversityThailand, 2007.custom:[[[-]]]
  • 25 V. W. Soo, C. Y. Lee, C. C. Li, S. L. Chen, C. C. Chen, "Automated semantic annotation and retrieval based on sharable ontology and case-based learning techniques," in Proceedings of the 3rd ACM/IEEE-CS Joint Conference on Digital Libraries, Houston, TX, 2003;pp. 61-72. doi:[[[10.1109/JCDL.2003.1204844]]]
  • 26 N. Boonsim, M.S. thesis, Khon Kaen UniversityThailand, 2005.custom:[[[-]]]

Table 1.

The difference between traditional image searches and image searches by ontology
Aspects Image search using the database Image search using ontology
Data storage Text caption in natural language is used to describe the image. Ontology is used to represent the content, structure or hierarchy
Classification data There is no explicit classification except that the user classifies the categories in the database. Classification can be defined by the user and further analyzed by the semantic reasoner.
Creating data network Data network is not explicit since only keywords for indexing that are stored in the database and processed. The ontology is represented in graph form where relationships can be seen.
Method of search The search is done straightforwardly by keyword indexing. The search keywords are fed into the reasoner which finds the best results.

Table 2.

Example synonyms and resources
No. ?synonym ?type
1 Resource: Resource:
2 Resource: Resource:

Table 3.

Searching keyword synonym returning literal terms
No. ?resource ?title
1 Keyword 1: Find “Wachiralongkorn” Resource: Literal: WachiralongkornDam
2 Keyword 2: Find “Khaolam” Resource: Literal: Khaolam Atmosphere

Table 4.

Example of property weight
No. Weight
1 Class: ContactLocation, Sub-class: Amphoe 1
2 Class: ContactLocation, Sub-class: Province 2
3 Data Properties: Name 4
4 Data Properties: NamePic 7
5 Data Properties: Feature 11

Table 5.

Result of weight calculation
Variable Item 1 Item 2 Item 3 Item 4 Item 5
Result no. Feature: Data Properties NamePic: Data Properties Name: Data Properties Province: Class Amphoe: Class
Weight: 11 Weight: 7 Weight: 4 Weight: 2 Weight: 1
1 Japanese √ World War √ bridge √ Kanchanaburi √ Muang √
2 Japanese √ - bridge √ Kanchanaburi √ Muang √
3 Japanese √ - - Kanchanaburi √ Muang √
Total score Let x be the weight score of focused concepts. V is the item that has a value. n is a number of interested items. Result score[TeX:] $$\frac { \left( \sum _ { 1 } ^ { \# \mathrm { ofV } = 5 } \mathrm { x } \right) ? 00 } { \sum _ { 1 } ^ { 5 } \mathrm { x } }$$or=100 x total obtained score Result No. 1: [TeX:] $$\frac { ( 11 + 7 + 4 + 2 + 1 ) \times 100 = 25 \times 100 } { ( 11 + 7 + 4 + 2 + 1 ) } = \frac { 25 \times 100 } { 25 }$$=100% Result No. 2: [TeX:] $$\text { score } = \frac { ( 11 + 0 + 4 + 2 + 1 ) \times 100 } { ( 11 + 7 + 4 + 2 + 1 ) } = \frac { 18 \times 100 } { 25 }$$=72% Result No. 3: [TeX:] $$\text { score } = \frac { ( 11 + 0 + 0 + 2 + 1 ) \times 100 } { ( 11 + 7 + 4 + 2 + 1 ) } = \frac { 14 \times 100 } { 25 }$$=56%

Table 6.

Precision and recalls for the keyword search
Test case Precision (%) Recall (%)
Case 1 81 100
Case 2 100 100
Case 3 80 100
Average 87 100

Table 7.

Results for the three cases of three types
Test case Precision (%) Recall (%)
Type 1 Case 1 82 100
Case 2 85 100
Case 3 87 100
Average 85 100
Type 2 Case 1 84 100
Case 2 87 100
Case 3 86 100
Average 86 100
Type 3 Case 1 78 100
Case 2 79 100
Case 3 85 100
Average 81 100

Table 8.

Comparison with similar systems
Related work Domain Image description Query language Annotation language Result # of tested images # of testing users Measurement
[24] National Archives of Thailand / RDQL English/Thai Text N/A N/A N/A
[25] Terracotta soldiers in Qin dynasty / Natural Language Query Parser Chinese Image 49 N/A - Scoring function to weigh the matching triple - Precision-recall
[23,26] Natural Attractive Thailand / Matching RDF file with Query Keyword English Image N/A N/A - Weight by level of properties
Our work Western Region Tourism in Thailand / SPARQL English/Thai Image 100 25 - Sub-class and data type properties weight hierarchy - Precision-recall
Semantic web “Layer Cake” structure roadmap [ 3].
Structural model of OWL.
Description of the data in Fig. 2 through OWL.
Example query of SPARQL language.
Comparison of search results between the Google search engine and Swoogle [ 6].
The sample annotation tool in Protégé.
The searching process.
Main classes (left) and extended subclasses of Attraction class (right).
Image preparation.
Example of searching in the ontology.
Query subclasses of NatureAndWildllife.
Query results of Fig. 11.
Query based on the dam’s attributes for an image.
Transformation of hierarchy weights to ontology tree.
Keyword extraction and query.
Query results.
Example user interface widgets.