Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "SCA/Components/Ontology"

< SCA
m (Install Jena Library)
m (Prerequisites)
Line 10: Line 10:
  
 
In order to be able to drag and drop semantic information from the ontology view, you need to :  
 
In order to be able to drag and drop semantic information from the ontology view, you need to :  
* have SCA Tools and SCA Tools feature - SAWSDL support
+
* have SCA Tools and SCA Tools feature - SAWSDL support,
 
* install the Jena 2.0 Library Plugin on your machine,
 
* install the Jena 2.0 Library Plugin on your machine,
 
* set up Jena with rosetta.owl.
 
* set up Jena with rosetta.owl.
Line 16: Line 16:
 
=== Install SCA Tools ===
 
=== Install SCA Tools ===
  
Follow the instruction on the wiki to get [[STP/SCA Component#Download|SCA Tools]]
+
Follow the instruction on the wiki to get [[STP/SCA Component#Download|SCA Tools]].
  
 
Do not forget to select the SCA Tools Feature - SAWSDL support which brings the semantic annotations support to SCA Tools.
 
Do not forget to select the SCA Tools Feature - SAWSDL support which brings the semantic annotations support to SCA Tools.

Revision as of 18:12, 4 June 2009

SCA Tools provides a semantic feature : SCA Tools Feature - SAWSDL Support. It allows users to add SAWSDL annotations on extended SCA elements :

  • Component
  • ComponentService
  • ComponentReference


Prerequisites

In order to be able to drag and drop semantic information from the ontology view, you need to :

  • have SCA Tools and SCA Tools feature - SAWSDL support,
  • install the Jena 2.0 Library Plugin on your machine,
  • set up Jena with rosetta.owl.

Install SCA Tools

Follow the instruction on the wiki to get SCA Tools.

Do not forget to select the SCA Tools Feature - SAWSDL support which brings the semantic annotations support to SCA Tools.

Install Jena Library

Jena is a Java Framework for building Semantic Web applications.
The Jena 2.0 Library Plugin is a wrapper for the latest Jena Libraries, it brings the API support when developing other Eclipse plugins.

To install the plugin, use 2.0 Library Plugin location in the SCA Tools installation instructions Jena2.0LibraryPlugin.png

Get a sample semantic model

Semantic Annotations for WSDL are described on the following location : Annotations for WSDL.

Sample semantic models can be found on the following location : http://www.w3.org/2002/ws/sawsdl/spex/ontolgy.

Download the purchase order ontology.

The Ontology Concept Digger view

This view uses any installed semantic framework like Jena to add semantic information to SCA elements.
It is a search view that allows to load *.owl files (or other ontology files) and search for semantic conecpts.
Once the wanted concept is found, it can be dragged and dropped from the search view to the SCA element to annotate.

If the Ontology Concept Digger view is not visible :

  • Go to Window menu > Show view > Other.
  • Select Semantic > Ontology Concept Digger.

Ontology Concept Digger configuration

The Ontology Concept Digger can use local and remote OWL models. To use a local model :

  • Click on the View menu button > Modify Sources Settings.

Ontology Concept Digger : modify sources settings

  • In the General tab, select Use Local OWL files.

Ontology Concept Digger : use local models

  • In the Local OWL Models tab, add and select the previously downloaded purchasedorder.owl

Ontology Concept Digger : select use local models


DnD enabled from the view to some SCA elements

The following SCA elements are SAWSDL enabled : Component, Component Services, Component References.
The Ontology Concept Digger provides DnD from its result list to these elements.

How to add semantic information to a composite

There are two ways to add semantic annotations on SAWSDL extended SCA elements.

SAWSDL Extension / properties

Drag and drop semantic information from the Ontology Concept Digger

  • Open the Ontology Concept Digger.
  • Enter the following request : Order.
  • Click on Search.
  • Drag one of the results and drop it on a Component / ComponentService / ComponentReference.

The model reference feature is automatically completed.

Back to the top