Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.MissingImportListener


        log.info("manager: {}", manager);
        // FIXME Which is the other way of doing this?
        // Maybe -> OWLOntologyManagerProperties();
        manager.setSilentMissingImportsHandling(true);
        // Listening for missing imports
        manager.addMissingImportListener(new MissingImportListener() {
            @Override
            public void importMissing(MissingImportEvent arg0) {
                log.warn("Missing import {} ", arg0.getImportedOntologyURI());
            }
        });
View Full Code Here


        // FIXME Which is the other way of doing this?
        // Maybe -> OWLOntologyManagerProperties();
        manager.setSilentMissingImportsHandling(true);
        // Listening for missing imports
        manager.addMissingImportListener(new MissingImportListener() {
            @Override
            public void importMissing(MissingImportEvent arg0) {
                log.warn("Missing import {} ", arg0.getImportedOntologyURI());
            }
        });
View Full Code Here

      
        // FIXME Which is the other way of doing this?
        // Maybe -> OWLOntologyManagerProperties();
        manager.setSilentMissingImportsHandling(true);
        // Listening for missing imports
        manager.addMissingImportListener(new MissingImportListener() {
            @Override
            public void importMissing(MissingImportEvent arg0) {
                log.warn("Missing import {} ", arg0.getImportedOntologyURI());
            }
        });
View Full Code Here

        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().toURI());
            }
        });
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().toURI());
            }
        });
View Full Code Here

  public OWLAPILoader() {
    iriMapper = new LimitedMapIRIMapper();
    manager = OWLManager.createOWLOntologyManager();

    manager.setSilentMissingImportsHandling(true);
    manager.addMissingImportListener(new MissingImportListener() {
      public void importMissing(MissingImportEvent event) {
        if (!ignoreImports) {
          IRI importURI = event.getImportedOntologyURI();
          System.err.println("WARNING: Cannot import " + importURI);
          event.getCreationException().printStackTrace();
View Full Code Here

  public OWLAPILoader() {
    iriMapper = new LimitedMapIRIMapper();
    manager = OWLManager.createOWLOntologyManager();

    manager.setSilentMissingImportsHandling(true);
    manager.addMissingImportListener(new MissingImportListener() {
      public void importMissing(MissingImportEvent event) {
        if (!ignoreImports) {
          URI importURI = event.getImportedOntologyURI();
          System.err.println("WARNING: Cannot import " + importURI);
          event.getCreationException().printStackTrace();
View Full Code Here

      
        // FIXME Which is the other way of doing this?
        // Maybe -> OWLOntologyManagerProperties();
        manager.setSilentMissingImportsHandling(true);
        // Listening for missing imports
        manager.addMissingImportListener(new MissingImportListener() {
            @Override
            public void importMissing(MissingImportEvent arg0) {
                log.warn("Missing import {} ", arg0.getImportedOntologyURI());
            }
        });
View Full Code Here

     */
    final Set<String> missing = new HashSet<String>();
    /**
     * We setup our missing import listener
     */
    MissingImportListener missingImportListener = new MissingImportListener() {
      @Override
      public void importMissing(MissingImportEvent arg0) {
        if (arg0.getCreationException() instanceof OWLOntologyDocumentAlreadyExistsException) {
          // Simply do not consider already existent ontologies as
          // missing imports
View Full Code Here

        // FIXME Which is the other way of doing this?
        // Maybe -> OWLOntologyManagerProperties();
        manager.setSilentMissingImportsHandling(true);
        // Listening for missing imports
        manager.addMissingImportListener(new MissingImportListener() {
            @Override
            public void importMissing(MissingImportEvent arg0) {
                log.warn("Missing import {} ", 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.