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] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

Jake micro_wf at
Mon Dec 7 00:25:39 PST 2015

Hello, i just happen to a problem.  The program appears error like this.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See for further

this is the code as the following:

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("----------------------------------");
			while ( {
				System.out.println("Name: "
						+ result.getLiteral("name").getString());
				System.out.println("Salary: "
						+ result.getLiteral("salary").getInt());
		} catch (SWRLRuleEngineException | SQWRLException | SWRLParseException
				| OWLOntologyCreationException e) {



could you tell me why?thank you very much!

View this message in context:
Sent from the Protege Developer mailing list archive at

More information about the protege-dev mailing list