Semantic Graphic Service Mashup Editor

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

A user can mashup services graphically on the mashup editor.

This graphic editor shows the correlation between the keyword entered by the developer and its derived services intuitively. The following pallet components can be used to mashup the services.

  • keyword : The keyword that explains the service searched by the developer. The keyword must be entered in the keyword box of Graphic Mashup Editor.
  • goal : Shows the goals of the service that can be executed with the keyword entered by the developer. The goal is automatically searched for by using a keyword. However, the developer can manually select the goal. (For example, if the keyword ‘video’ is entered, goals like ‘find video, upload video, and play video’ will be generated in the results.)
  • service : The services for which the developer ultimately wants to search. Goals are searched using a keyword, and a service can be search when a desired goal is selected.
  • goal connection : A interoperability between services of the two goals can be examined by connecting the goal of two keywords.

Creating Graphic Service Mashup Editor

Service Mashup Editor can be created as described below.

Figure : Search Mashup Editor Popup Menu

Figure : Service Mashup Editor Create

Figure : Service Mashup Editor Run

  1. Right-click the ‘Samsung Smart TV Apps’ project and select ‘New > Other’ on the pop-up menu.
  2. Select ‘Semantic Service > Semantic Service Mashup File.’
  3. Click the ‘Next’ button.
  4. Input the file named Service Mashup Editor in the ‘File name’ column.
  5. Click the ‘Finish’ button.
  6. A Service Mashup Editor file with a ‘.sme’ extension will be created under the selected project. Double-click the Service Mashup Editor file to start the Service Mashup Editor.

Service Mashup in an Editor

Service Mashup Editor functions can be executed as follows.

Figure : Service Mashup Editor Palette Open

Figure : Create Keyword

Figure : Input Keyword

Figure : Reflect Goal List

Figure : Reflect Service List

  1. Click the ‘◀’ button on the Service Mashup Editor to open a palette.
  2. Select a keyword from the palette.
  3. Move the cursor on the editor, and left-click the mouse button on the desired position to create keyword.
  4. Double-click the keyword component, input a keyword and then, press the ‘Enter’ key.
  5. A list of goals corresponding to the entered keyword from the server is retrieved and displayed on the editor.
  6. Double-click the goal.
  7. A list of service goals matching the clicked goal search perimeters is displayed on the editor.

Goal-to-Goal matching

The goal-to-goal matching is the function to check interoperability among services that belong to the same goal by connecting two goals. Goal-to-goal matching is performed as follows.

Figure : Create Goal Connection

Figure : Show Goal Connection

Figure : Run Interoperable Service

  1. Create two different keywords and set the goal for each keyword.
  2. Select goal connection from the pallet.
  3. Connect one goal belonging to each keyword as a goal connection.
  4. The goal connection will be marked with gray dot lines.
  5. Double-click the service to execute the interoperable service from a service list of the goals with a goal connection.
  6. The color will change to green (over 50% relevance), yellow (20% ~ 50% relevance), or red (under 20% relevance), depending on the relevance among services for which goals are connected as a result of goal-to-goal matching.

Matching IO

The matching IO function is provided to compare goal-to-goal matching results in detail.

That is, the information will be displayed on a pop-up window that allows for a detailed comparison between one service connected with a goal connection and other services connected with other goals.

The matching I/O function can be performed as follows.

Figure : Run Matching IO

Figure : Matching IO Dialog

  1. Connect the goal belonging to different keywords with a goal connection.
  2. Right-click a certain service of the goal connected with a goal connection.
  3. Select a matching IO.
  4. The result of executing the matching IO will be displayed on a pop-up window, as shown below. Detailed information of source services on the pop-up window can be compared among comparison target services by pressing ‘◀’ and ‘▶’, as shown below.
  5. Click ‘Close’ to finish.

More goals

Up to 30 keywords for one keyword will be searched on the Graphic Mashup Editor.

Initially, only 5 goals will be displayed on the search result screen. Other hidden goals can be checked or pasted to the keyword component by executing ‘More Goals’.

When adding a hidden goal as a keyword component, up to six goals can be shown. Therefore, any unnecessary goals should be deleted when adding a hidden goal.

The ‘More Goals’ function can be executed as follows;

Figure : Run More goals

Figure : More goals Result

  1. Right-click the keyword.
  2. Select the ‘More goals’ pop-up menu.
  3. Goals hidden from the editor will be displayed. Select a goal from the displayed goals. (Up to six goals can be displayed.)
  4. The goals selected by ‘More goals’ will be displayed on the ‘Keyword’ of the editor. As ‘More goals’ doesn’t work while six goals are displayed on one keyword component, delete any unnecessary goals or the goal with the lowest priority and perform step 3 again. The deleted goal will be hidden again and displayed when ‘More goals’ is executed.

More services

Up to five services will be searched for under one goal on the Graphic Mashup Editor.

To get more search results, run ‘More Services’ to check the results on the Semantic Service Explorer.

That is, right-click the keyword component and select ‘More Services’. Then, the keyword-based search result will be displayed on the ‘Semantic Service Explorer’ window immediately.

The ‘More Services’ function can be executed as follows.

Figure : Run More services

Figure : More services result

  1. Right-click the keyword.
  2. Select the ‘More Services’ pop-up menu.
  3. Figure below is Semantic Service Explorer that shows the result of Keywords that have been performed ‘More Services’.

Find Code Snippet

The developer can generate a source code on Mashup Editor using the existing code snippet.

That is, the code snippet of the service can be searched from the Graphic Mashup Editor and attached to the service to generate a source code.

The ‘Find Code Snippet’ function can be executed as follows.

Figure : Run Find Code Snippet

Figure : Code Snippet Drag And Drop

Figure : Attached sample code snippet

  1. Right click ‘Service’.
  2. Select the ‘Find Code Snippet’ pop-up menu.
  3. The results found with the selected service name will be displayed on theSemantic Service Explorer.
  4. Select a code snippet to add it from the search results of the Semantic Service Explorer.
  5. Drag and drop the selected code snippet on the selected service.
  6. The ‘Code Snippet’ icon will be displayed on the service on which the code snippet is dropped, and the code snippet will be added.

Generate Source Code

When the ‘Generate Code’ function is performed on the Graphic Mashup Editor, the code snippet of the services attached with the code snippet will be merged as a single source file and a source code will be generated.

That is, the source code template can be automatically generated by executing ‘Generate Code’, after attaching service codes by executing ‘Find Code Snippet’.

The ‘Generate Code’ function can be executed as follows;

Figure : Generate Code Dialog Open

Figure : Create a new file name for generated code

Figure : The result of generated code

  1. A pop-up menu will be displayed when the editor screen is right-clicked on.
  2. Select the ‘Generate Code’ pop-up menu.
  3. Input the path and file name to generate a code file.
  4. When entered successfully, click the ‘Generate’ button.
  5. The code file will be generated.
  6. The content of the generated code file can be checked.

Publish Source Code

A source code developed by a certain developer can be shared with other developers using the ‘Publish’ function. Once the ‘Publish’ function is executed, the source code will be saved in a remote server and can be searched for by any developers.

However, it is deemed that the developer who publishes the source code allows other developers to use the source code without any license agreement.

The ‘Publish’ function can be executed as follows;

Figure : Publish Dialog Open

Figure : Run Publish

  1. Right-click the code file generated with ‘Generate Code’.
  2. Select the ‘Publish’ popup-up menu.
  3. Input the file name, publisher, and description in ‘Publish Dialog’.
  4. Click the ‘OK’ button when the input is finished.
  5. A ‘Successfully published’ message will appear. Click the ‘OK’ button to complete the publishing process.

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.