Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-dev] swrltab-project problem

Matthew Horridge matthew.horridge at
Tue Dec 8 18:23:34 PST 2015

Hi Jake,

Try adding the following dependencies to your pom file:





On 8 Dec 2015, at 17:34, Jake <micro_wf at<mailto:micro_wf at>> wrote:

            Hi,i have constructed the swrltab-project with maven and git . I do it just step by step according to the following website.

<script type="jsv#1177_"></script>

 <script type="jsv/1177_"></script>
<script type="jsv#1178_"></script>

I have get the APIs.  I want to programming  manuplate owl ontology  and query it by SQWRL .  But i happen to many runtime errors.  I don't know what is the problem.  Or  i  have packaged the swrl-project with mistake  ?or version  incompatibility ? I am upset with the problem.  the problem is as following:

the source program:

import org.semanticweb.owlapi.apibinding.OWLManager;
import org.semanticweb.owlapi.model.IRI;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLOntologyCreationException;
import org.semanticweb.owlapi.model.OWLOntologyManager;
import org.semanticweb.owlapi.reasoner.OWLReasoner;

import org.swrlapi.exceptions.SWRLRuleEngineException;
import org.swrlapi.factory.SWRLAPIFactory;
import org.swrlapi.parser.SWRLParseException;
import org.swrlapi.sqwrl.SQWRLQueryEngine;
import org.swrlapi.sqwrl.SQWRLResult;
import org.swrlapi.sqwrl.exceptions.SQWRLException;

public class test {
public static OWLOntologyManager manager;
public static OWLOntology ontology;
public static OWLReasoner reasoner;

public static void main(String[] args) {
try {
// System.out.println("=================");
manager = OWLManager.createOWLOntologyManager();
ontology = manager.loadOntology(IRI.create("file:/d:/animal.owl"));
SQWRLQueryEngine queryEngine = SWRLAPIFactory

SQWRLResult result = queryEngine.runSQWRLQuery("Q1",
"Animal(?a)  -> sqwrl:select(?a)");

// System.out.println("----------------------------------");
} catch (SWRLRuleEngineException
| OWLOntologyCreationException | SQWRLException | SWRLParseException e) {



after compiling and running :           just like this

<script type="jsv#1179_"></script>
 configuration:  win10 x86       eclipse4.4.2       jdk1.8_65

I don't know why the program appear the problem, please help me.
I will appreciate you very much.

Best wishes for you!


<script type="jsv/1178_"></script>

View this message in context: swrltab-project problem<>
Sent from the Protege Developer mailing list archive<> at<>.
protege-dev mailing list
protege-dev at<mailto:protege-dev at>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the protege-dev mailing list