Examples of MissingOntologyException


Examples of org.apache.stanbol.ontologymanager.servicesapi.collector.MissingOntologyException

                log.debug("Deferring addition to stored Clerezza graph {} (if available).", ref);
                key = addOntology(new GraphSource((UriRef) ref));
            } else if (ref instanceof OWLOntologyID) {
                OWLOntologyID idref = (OWLOntologyID) ref;
                log.debug("Deferring addition to stored ontology with public key {} (if available).", ref);
                if (!ontologyProvider.hasOntology(idref)) throw new MissingOntologyException(this, idref);
                key = idref;
                if (managedOntologies.add(idref)) fireOntologyAdded(idref);
            } else throw new IllegalArgumentException("Invalid origin " + origin);
        } else throw new IllegalArgumentException(
                "Ontology source must provide either an ontology object, or a way to reference one (i.e. an origin).");
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.servicesapi.collector.MissingOntologyException

        boolean removed = false;
        for (OWLOntologyID alias : aliases)
            removed |= managedOntologies.remove(alias);
        // Don't fire if the ontology wasn't there in the first place.
        if (removed) fireOntologyRemoved(publicKey);
        else throw new MissingOntologyException(this, publicKey);
    }
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.