Semantic Service Discovery

Published 2014-10-28 | (Compatible with SDK 5.1 and 2014 models)

The keyword given by a user is semantically analyzed, and related services are searched.

When the user inputs a query about the search target in Semantic Service Explorer, Semantic Service Discovery will be performed and the service search results that satisfy the entered query will be provided. The Semantic Service Discovery function will be performed for 3rd party web services, which are opened via the web, and Samsung SDK Library API. See the following section for more details.

Utilities

Integrated functions are provided in the Semantic Service Explorer , such as Web Services Discovery, and Samsung SDK Discovery. See below for more details.

Auto-completion of a keyword

The keyword auto-completion function as shown below will be provided, when entering a search world in the Semantic Service Explorer.

Figure: Keyword auto-completion screen

The following section shows an example.

  1. Input a keyword.
  2. A list of keywords that match the entered keyword will be displayed.
  3. Then click one of them and press Enter.
  4. The number of found services will be displayed.

Search within results

in the Semantic Service Explorer , Search within results is provided to filter the first result discovered by a keyword in the field of Keyword. This function is as shown below.

Figure: Search within results screen

The following section shows an example.

  1. Input a keyword and press Enter.
  2. A list of services that match the entered keyword will be displayed in the result window.
  3. Click the checkbox button for Search within results.
  4. Input a new keyword in the field of Search within results
  5. The filtered results by a new keyword will be displayed.

Automatic insertion of a sample code snippet

If the item activated in black color on the search result table of the Semantic Service Explorer is dragged and dropped on the opened editor, the sample code snippet will be automatically inserted. This function is also available in the Matching View screen.

If the item in the service search result table has the associated sample code snippet, it will be displayed in black color. Otherwise, it will be displayed in gray color, so that the availability of the sample code snippet can be determined intuitively.

Figure: Automatic sample code insertion screen

The following section shows an example.

  1. Move the cursor to the position where the sample code snippet will be inserted.
  2. Select the search item to insert the sample code snippet and drag & drop it in the opened editor.
  3. The sample code snippet will be automatically inserted into the opened editor.

Calling the web browser

If any item in the search result table in the Semantic Service Explorer is double clicked, the web browser will be opened (the default web browser set in Eclipse) and the web page

corresponding to the URL of the selected service will be displayed. This function can also be called by double clicking the service_url item in the Properties View.

Figure: Web browser calling screen

The following section shows an example.

  1. Double click the table item in the Semantic Service Explorer or service_url in Properties View.
  2. The web page corresponding to selected URL will be displayed on the web browser.

JSON Viewer

The JSON information of the input/output item among the search results will be displayed on JSON Viewer, which provides high readability.

Figure: The screen that shows the input/output item having the Json information

Figure: Pretty-print JSON Viewer screen

The following section shows an example.

  1. Double click the input/output item in the Properties View.
  2. JSON Viewer will be opened and the JSON information will be displayed.

Checking the detailed service information

When the table item is clicked regarding the found service in the Semantic Service Explorer , the detailed information will be displayed in the Properties View. . This function can also be called by clicking an item in the Matching View

Figure: Detailed service information output screen

The following section shows an example.

  1. Click the service item to check its detailed information in the Semantic Service Explorer Explorer or the Matching View
  2. The Properties View will display the detailed information on the selected service item.

For more information

  1. How to Use (Video Tutorial) : For a user’s better understanding, video tutorials how to use this tool are found here.