<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">How are you building and running this?</div>
<div class=""><br class="">
</div>
<div class="">You get the warning because you don’t have an SLF4J logging implementation on your class path.  See this link for more information:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://www.slf4j.org/manual.html" class="">http://www.slf4j.org/manual.html</a></div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class=""><br class="">
</div>
<div class="">Matthew</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 7 Dec 2015, at 00:25, Jake <<a href="mailto:micro_wf@outlook.com" class="">micro_wf@outlook.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hello, i just happen to a problem.  The program appears error like this.<br class="">
<br class="">
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".<br class="">
SLF4J: Defaulting to no-operation (NOP) logger implementation<br class="">
SLF4J: See <a href="http://www.slf4j.org/codes.html#StaticLoggerBinder" class="">
http://www.slf4j.org/codes.html#StaticLoggerBinder</a> for further<br class="">
details.<br class="">
<br class="">
this is the code as the following:<br class="">
<br class="">
import org.semanticweb.owlapi.apibinding.OWLManager;<br class="">
import org.semanticweb.owlapi.model.IRI;<br class="">
import org.semanticweb.owlapi.model.OWLOntology;<br class="">
import org.semanticweb.owlapi.model.OWLOntologyCreationException;<br class="">
import org.semanticweb.owlapi.model.OWLOntologyManager;<br class="">
import org.semanticweb.owlapi.reasoner.OWLReasoner;<br class="">
import org.swrlapi.exceptions.SWRLRuleEngineException;<br class="">
import org.swrlapi.factory.SWRLAPIFactory;<br class="">
import org.swrlapi.parser.SWRLParseException;<br class="">
import org.swrlapi.sqwrl.SQWRLQueryEngine;<br class="">
import org.swrlapi.sqwrl.SQWRLResult;<br class="">
import org.swrlapi.sqwrl.exceptions.SQWRLException;<br class="">
<br class="">
public class test {<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>public static OWLOntologyManager manager;<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>public static OWLOntology ontology;<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>public static OWLReasoner reasoner;<br class="">
<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>public static void main(String[] args) {<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>try {<br class="">
//<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>System.out.println("=================");<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>manager = OWLManager.createOWLOntologyManager();<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>ontology = manager.loadOntology(IRI.create("file:/d:/animal.owl"));<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>SQWRLQueryEngine queryEngine = SWRLAPIFactory<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>.createSQWRLQueryEngine(ontology);<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>SQWRLResult result = queryEngine.runSQWRLQuery("Q1",<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>"Animal(?a)
  -> sqwrl:select(?a)");<br class="">
<br class="">
//<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>System.out.println("----------------------------------");<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>while (result.next()) {<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>System.out.println(result.getColumnNames());<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>System.out.println("Name:
 "<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>+
 result.getLiteral("name").getString());<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>System.out.println("Salary:
 "<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>+
 result.getLiteral("salary").getInt());<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>}<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>} catch (SWRLRuleEngineException | SQWRLException | SWRLParseException<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>| OWLOntologyCreationException
 e) {<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>e.printStackTrace();<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>}<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>}<br class="">
<br class="">
}<br class="">
<br class="">
<br class="">
could you tell me why?thank you very much!<br class="">
<br class="">
<br class="">
<br class="">
--<br class="">
View this message in context: <a href="http://protege-project.136.n4.nabble.com/SLF4J-Failed-to-load-class-org-slf4j-impl-StaticLoggerBinder-tp4664113.html" class="">
http://protege-project.136.n4.nabble.com/SLF4J-Failed-to-load-class-org-slf4j-impl-StaticLoggerBinder-tp4664113.html</a><br class="">
Sent from the Protege Developer mailing list archive at <a href="http://nabble.com" class="">
Nabble.com</a>.<br class="">
_______________________________________________<br class="">
protege-dev mailing list<br class="">
<a href="mailto:protege-dev@lists.stanford.edu" class="">protege-dev@lists.stanford.edu</a><br class="">
https://mailman.stanford.edu/mailman/listinfo/protege-dev<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>