Package org.apache.stanbol.ontologymanager.servicesapi.collector

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


                "Cannot set connectivity policy on scopes. Ontology scopes only allow LOOSE connectivity policy (set by default).");
    }

    @Override
    public synchronized void setCustomSpace(OntologySpace customSpace) throws UnmodifiableOntologyCollectorException {
        if (this.customSpace != null && this.customSpace.isLocked()) throw new UnmodifiableOntologyCollectorException(
                getCustomSpace());
        this.customSpace = customSpace;
        this.customSpace.addOntologyCollectorListener(this);
    }
View Full Code Here


    @Override
    public synchronized OWLOntologyID addOntology(OntologyInputSource<?> ontologySource) throws UnmodifiableOntologyCollectorException {

        // Check for error conditions.
        if (locked) throw new UnmodifiableOntologyCollectorException(this);
        if (ontologySource == null) throw new IllegalArgumentException("Ontology source cannot be null.");

        log.debug("Adding ontology to collector {}", getID());
        OWLOntologyID key = null;
View Full Code Here

    public void removeOntology(OWLOntologyID publicKey) throws OntologyCollectorModificationException {
        if (publicKey == null) throw new IllegalArgumentException(
                "Cannot remove an ontology by providing a null public key.");
        if (publicKey.getOntologyIRI() == null) throw new IllegalArgumentException(
                "Cannot remove an ontology whose public key has a null ontology IRI.");
        if (locked) throw new UnmodifiableOntologyCollectorException(this);

        Set<OWLOntologyID> aliases = ontologyProvider.listAliases(publicKey);
        aliases.add(publicKey);
        boolean removed = false;
        for (OWLOntologyID alias : aliases)
View Full Code Here

TOP

Related Classes of org.apache.stanbol.ontologymanager.servicesapi.collector.UnmodifiableOntologyCollectorException

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.