Examples of OntologyManager


Examples of ru.spbu.math.ontologycomparison.zhukova.logic.builder.loader.impl.OntologyManager

    }

    private IOntologyGraph buildGraph(final File firstFile, final File secondFile) throws IOException, OWLReasonerException {

        log(String.format("Loading %s...", firstFile.getName()));
        final OntologyManager firstOntologyManager = new OntologyManager(firstFile, this);
        final IOntologyGraph[] firstOntologyGraph = {null};
        Thread firstGraphThread = new Thread(new Runnable() {
            public void run() {
                try {
                    firstOntologyGraph[0] = firstOntologyManager.load(new ClassAnnotationVisitor(), new PropertyVisitor());
                } catch (Throwable e1) {
                    Main.this.handleException(e1);
                }
            }
        });
        firstGraphThread.start();
        final OntologyManager secondOntologyManager = new OntologyManager(secondFile, this);
        log(String.format("Loading %s...", secondFile.getName()));
        IOntologyGraph secondOntologyGraph = secondOntologyManager.load(new ClassAnnotationVisitor(), new PropertyVisitor());
        try {
            firstGraphThread.join();
        } catch (InterruptedException e) {
            // ignore;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.