Semantic Graphic Service Mashup Editor
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.
Service Mashup Editor can be created as described below.
- Right-click the ‘Samsung Smart TV Apps’ project and select ‘New > Other’ on the pop-up menu.
- Select ‘Semantic Service > Semantic Service Mashup File.’
- Click the ‘Next’ button.
- Input the file named Service Mashup Editor in the ‘File name’ column.
- Click the ‘Finish’ button.
- 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 Editor functions can be executed as follows.
- Click the ‘◀’ button on the Service Mashup Editor to open a palette.
- Select a keyword from the palette.
- Move the cursor on the editor, and left-click the mouse button on the desired position to create keyword.
- Double-click the keyword component, input a keyword and then, press the ‘Enter’ key.
- A list of goals corresponding to the entered keyword from the server is retrieved and displayed on the editor.
- Double-click the goal.
- A list of service goals matching the clicked goal search perimeters is displayed on the editor.
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.
- Create two different keywords and set the goal for each keyword.
- Select goal connection from the pallet.
- Connect one goal belonging to each keyword as a goal connection.
- The goal connection will be marked with gray dot lines.
- Double-click the service to execute the interoperable service from a service list of the goals with a goal connection.
- 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.
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.
- Connect the goal belonging to different keywords with a goal connection.
- Right-click a certain service of the goal connected with a goal connection.
- Select a matching IO.
- 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.
- Click ‘Close’ to finish.
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;
- Right-click the keyword.
- Select the ‘More goals’ pop-up menu.
- Goals hidden from the editor will be displayed. Select a goal from the displayed goals. (Up to six goals can be displayed.)
- 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.
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.
- Right-click the keyword.
- Select the ‘More Services’ pop-up menu.
- Figure below is Semantic Service Explorer that shows the result of Keywords that have been performed ‘More Services’.
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.
- Right click ‘Service’.
- Select the ‘Find Code Snippet’ pop-up menu.
- The results found with the selected service name will be displayed on theSemantic Service Explorer.
- Select a code snippet to add it from the search results of the Semantic Service Explorer.
- Drag and drop the selected code snippet on the selected service.
- The ‘Code Snippet’ icon will be displayed on the service on which the code snippet is dropped, and the code snippet will be added.
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;
- A pop-up menu will be displayed when the editor screen is right-clicked on.
- Select the ‘Generate Code’ pop-up menu.
- Input the path and file name to generate a code file.
- When entered successfully, click the ‘Generate’ button.
- The code file will be generated.
- The content of the generated code file can be checked.
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;
- Right-click the code file generated with ‘Generate Code’.
- Select the ‘Publish’ popup-up menu.
- Input the file name, publisher, and description in ‘Publish Dialog’.
- Click the ‘OK’ button when the input is finished.
- A ‘Successfully published’ message will appear. Click the ‘OK’ button to complete the publishing process.