As of Protege 3.4 beta, build 108, this plug-in has been replaced by the SQWRLQueryTab.    (A3C)

The SWRLQueryTab is a plug-in to the Protege-OWL SWRLTab that provides a graphical interface to work with SWRL rules that contain query built-ins. It provides a convenient way to visualize the results of queries on an OWL ontology. Users wishing to work with the results of SWRL queries at the API level can use the SWRLQueryAPI.    (92B)

Installation    (8A2)

The SWRLQueryTab is contained in the standard Protege-OWL 3.3.1 distribution and does not need to be downloaded separately. However, since many of the SWRLTab components are under active development, the most recent Protege-OWL beta build should be used when possible.    (9W9)

The SWRLQueryTab currently requires the Jess rule engine, which must be downloaded separately. Jess is not open source and a license is required for its use. However, this license is free for academic users. The Jess rule engine is contained in a Java JAR called jess.jar, which is contained in the standard Jess distribution. This distribution can be obtained here. This JAR must be copied to the Protege-OWL plugins subdirectory in the Protege installation directory (i.e., the ./plugins/edu.stanford.smi.protegex.owl/ subdirectory of the Protege installation directory). Protege-OWL will automatically load this JAR file on startup if it is present in its plugins directory. If this JAR file is not present, the SWRLQueryTab will display an error when it is activated.    (8A0)

If you are already successfully using the SWRLJessTab, you should not need to do anything to install the SWRLQueryTab.    (8A1)

Activation    (8A4)

The SWRL Editor will display a list of icons for plugins that have registered themselves with the SWRLTab. These icons will be displayed on the top right of the SWRL rules table. If the query tab is installed, a "Q" icon will be visible in this list. The query tab is activated by pressing this icon.    (8A5)

When activated, the SWRLQueryTab will be displayed in a window under the SWRL Editor. It contains a window that can be used to display the results of SWRL rules with query built-ins.    (8ZO)

Pressing the "Q" icon again will hide the tab and deactivate the query tab. Note that when the tab is deactivated, all of its state will be lost.    (8AO)

Interacting with the SWRLQueryTab    (8AS)

The SWRLQueryTab has a control tab that can be used to control the execution of SWRL rules containing query built-ins. A rule can be selected from the rule table in the SWRL Editor and the "Run Rules" button pressed to execute all the SWRL rules in the rule base. If the selected rule has query built-ins and generates results, the results will appear in a new sub-tab.    (8X6)

Users can navigate to that sub-tab to review the results displayed in tabular form. This sub-tab has buttons to re-run the rule base and update the display, or to close the tab. A save option is also provided to save the results to a file in comma separated value format.    (8XI)

Executing rules in the SWRLQueryTab does not modify the loaded OWL ontology.    (8X8)

Where can I get the source code for the SWRLQueryTab?    (8AQ)

The SWRLQueryTab is open source and all of its source code is bundled with the Protege-OWL source code. This source code is available for download from the Protege-OWL Subversion Repository.    (8XJ)