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.
SCA Tools provides a semantic feature : SCA Tools Feature - SAWSDL Support. It allows users to add SAWSDL annotations on extended SCA elements :
- 1 Prerequisites
- 2 The Ontology Concept Digger view
- 3 How to add semantic information to a composite
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.
Get a sample semantic model
Semantic Annotations for WSDL are described on the following location : Semantic 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.
- In the General tab, select Use Local OWL files.
- In the Local OWL Models tab, add and select the previously downloaded purchasedorder.owl
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
- Select a Component, a ComponentService or a ComponentReference.
- Go toProperties View > SAWSDL tab.
- Enter a model reference ( for exemple : http://www.w3.org/2002/ws/sawsdl/spec/ontology/purchaseorder#OrderRequest )
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.