Package org.apache.stanbol.ontologymanager.ontonet.api.collector

Examples of org.apache.stanbol.ontologymanager.ontonet.api.collector.DuplicateIDException


    }

    @Override
    public OntologyScope createOntologyScope(String scopeID, OntologyInputSource<?,?>... coreSources) throws DuplicateIDException {

        if (registry.containsScope(scopeID)) throw new DuplicateIDException(scopeID,
                "Scope registry already contains ontology scope with ID " + scopeID);
        OntologyScope scope = new OntologyScopeImpl(scopeID, getNamespace(), spaceFactory, coreSources);
        // scope.addOntologyScopeListener(ONManager.get().getOntologyIndex());
        // TODO : manage scopes with null core ontologies
        fireScopeCreated(scope);
View Full Code Here

TOP

Related Classes of org.apache.stanbol.ontologymanager.ontonet.api.collector.DuplicateIDException

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.