Package org.semanticweb.reasonerfactory

Examples of org.semanticweb.reasonerfactory.OWLReasonerSetupException


            Class faCTPPClass = Class.forName("uk.ac.manchester.cs.factplusplus.owlapi.Reasoner");
            factPPConstructor = faCTPPClass.getConstructor(OWLOntologyManager.class);
            setSynchronisingMethod = faCTPPClass.getMethod("setSychroniseOnlyOnClassify", Boolean.TYPE);
        }
        catch (ClassNotFoundException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch (NoSuchMethodException e) {
            throw new OWLReasonerSetupException(this, e);
        }
    }
View Full Code Here


            OWLReasoner reasoner = (OWLReasoner) factPPConstructor.newInstance(manager);
            setSynchronisingMethod.invoke(reasoner, Boolean.FALSE);
            return reasoner;
        }
        catch (InstantiationException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch (IllegalAccessException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch (InvocationTargetException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch(UnsatisfiedLinkError e) {
            throw new FaCTNativeLibraryNotFoundException();
        }
    }
View Full Code Here

            reasonerConstructor = pelletReasonerClass.getConstructor(OWLOntologyManager.class);
            setTracingEnabled(false);
            setUseConsoleProgressMonitor();
        }
        catch (ClassNotFoundException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch (NoSuchMethodException e) {
            throw new OWLReasonerSetupException(this, e);
        }
    }
View Full Code Here

            Class pelletOptionsClass = Class.forName("org.mindswap.pellet.PelletOptions");
            Field tracingField = pelletOptionsClass.getField("USE_TRACING");
            tracingField.set(pelletOptionsClass, b);
        }
        catch (ClassNotFoundException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch (NoSuchFieldException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch (IllegalAccessException e) {
            throw new OWLReasonerSetupException(this, e);
        }
    }
View Full Code Here

            Field monitorTypeNoneField = monitorType.getField("NONE");
            tracingField.set(pelletOptionsClass, monitorTypeNoneField.get(monitorType));
        }
        catch (ClassNotFoundException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch (NoSuchFieldException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch (IllegalAccessException e) {
            throw new OWLReasonerSetupException(this, e);
        }
    }
View Full Code Here

    public OWLReasoner createReasoner(OWLOntologyManager manager) {
        try {
            return (OWLReasoner) reasonerConstructor.newInstance(manager);
        }
        catch (InstantiationException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch (IllegalAccessException e) {
            throw new OWLReasonerSetupException(this, e);
        }
        catch (InvocationTargetException e) {
            throw new OWLReasonerSetupException(this, e);
        }
    }
View Full Code Here

            Class clsHermitReasoner = Class.forName("org.semanticweb.HermiT.HermitReasoner");
            constructor = clsHermitReasoner.getDeclaredConstructor(OWLOntologyManager.class);
            constructor.setAccessible(true);

        } catch (ClassNotFoundException e) {
            throw new OWLReasonerSetupException(this, e);
        } catch (NoSuchMethodException e) {
            throw new OWLReasonerSetupException(this, e);
        }
    }
View Full Code Here

    public OWLReasoner createReasoner(OWLOntologyManager manager) {
        try {
            return (OWLReasoner) constructor.newInstance(manager);
        } catch (InstantiationException e) {
            throw new OWLReasonerSetupException(this, e);
        } catch (IllegalAccessException e) {
            throw new OWLReasonerSetupException(this, e);
        } catch (InvocationTargetException e) {
            throw new OWLReasonerSetupException(this, e);
        }
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.reasonerfactory.OWLReasonerSetupException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.