Sei sulla pagina 1di 9

SOLVED: Problem with Protg 3.2.

x, OWL-S Plugin and Graphviz


Juan Felipe Muoz Fernndez jfmunozf@unal.edu.co
April, 2015

Abstract
In this document I'll show you how to solve problem with Protg 3.2.1 with OWL-S Plugin for
semantic markup of Atomic Web Services and Composite Web Services in Windows 7
operating system. It's really a pain in the ass struggle with all this software components working
together very good.

1. Current context.
When you try to use OWL-S Editor in Protg 3.2.1 you get the following errors.

Grappa Exception Detected att.grappa.GraphParserException: at


[8(14)]: Syntax error...
ERROR: Somewhere in filterGraph

The following figures describe the situation

Figure 1: Grappa Exception Detected

Figure 2: Error somewhere in filterGraph

2. Software components.
You must download and install the following software components.

Protg

3.2.1

(With

Java

Virtual

Machine).

You

can

download

from

here:

http://protegewiki.stanford.edu/wiki/Protege_Desktop_Old_Versions.

Graphviz

2.28.

You

can

download

from

here:

http://www.graphviz.org/pub/graphviz/stable/windows/.

OWL-S Plugin build 23 (not working with build 24. Build 23 includes OWL-S 1.2
specification).

You

can

download

from

here:

http://projects.semwebcentral.org/frs/?group_id=25

3. Procedure.

3.1 Install

Protg

as

usual

but

notice

the

install

directory

(e.g.

C:\Program

but

notice

the

install

directory

(e.g.

C:\Program

Files\Protege_3.2.1).

3.2 Install

Graphviz

as

usual

Files\Graphviz 2.28) you will need this path later.

3.3 Unzip OWL-S Plugin and copy folder 'com.sri.owlseditor' into Protg Plugins directory (e.g.
C:\Program Files\Protege_3.2.1\plugins).
3.4 Start

Protg

by

clicking

Protg.exe

(e.g.

C:\Program

Files\Protege_3.2.1\Protege.exe). Start by creating an OWL /RDF Files, New


Project.

Figure 3: Create New Project

3.5 Go to Project menu and click Configure...


3.6 Check Owlstab and click OK. Wait for plugin load.

Figure 5: Select OWL-S Plugin for Protg

3.7 Go to OWL-S Editor tab and click in Options icon (upper left buttons in OWL-S Editor).

Figure 6: Select options to configure Graphviz

3.8 Change Graphviz path for the full path to dot.exe. You'll need the installation path of
Graphviz

(e.g.

the

full

path

to

dot.exe

is

C:\Program

Files\Graphviz

2.28\bin\dot.exe). Clic OK to set correct path.

Figure 6: Change Graphviz path


3.9 Save project. If you don't save the project, the settings about OWL-S Editor Plugin and
Graphviz path will be lost.

4. Test.
4.1 Into OWL-S Editor tab, click in WSDL icon (upper left buttons in OWL-S Editor).

Figure 7: Import WSDL


4.2 Import this WSDL: http://www.webservicex.net/globalweather.asmx?WSDL in Enter URL
field. Press Enter to load Operations (left Operations panel). Fig. 8.
4.3 Select any operations from Operations panel and click in Import WSDL button. Save the
OWL file and wait for the load of semantic markup of Web Service. Fig. 8.

Figure 8: Select web service operation to import WSDL


4.4 Create a new instance of Process Class by clicking Create instance button on
process:Process panel. Select Composite process and click OK. Fig. 9 and 10.

Figure 9: Create instance of Process Class

Figure 10: Selecting composite process


4.5 If everything is fine, your visual editor looks like this.

Figure 11: Create instance of Process Class

4.6 Try to add a Perform element to process graph.


5. Final Words.
This solution was tested on Windows 7 Home Edition 32 bits. Any other testing environment will
be welcome. Submit your tests.

Potrebbero piacerti anche