Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.MissingImportListener


        if (!file.exists()) {
            uris.remove(uri);
            return getOntology(uri);
        }
        manager.setSilentMissingImportsHandling(true);
        manager.addMissingImportListener(new MissingImportListener() {
            public void importMissing(MissingImportEvent arg0) {
                if (!getUnresolvedURIs().contains(arg0.getImportedOntologyURI())) getUnresolvedURIs().add(
                    arg0.getImportedOntologyURI());
            }
        });
View Full Code Here


    private static synchronized OWLOntology retrieveRemoteResource(URI uri) throws OWLOntologyCreationException,
                                                                           UnknownOWLOntologyException,
                                                                           OWLOntologyStorageException {

        manager.setSilentMissingImportsHandling(true);
        manager.addMissingImportListener(new MissingImportListener() {
            public void importMissing(MissingImportEvent arg0) {
                if (!getUnresolvedURIs().contains(arg0.getImportedOntologyURI())) getUnresolvedURIs().add(
                    arg0.getImportedOntologyURI());
            }
        });
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.MissingImportListener

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.