Examples of OrphanOntologyKeyException


Examples of org.apache.stanbol.ontologymanager.servicesapi.ontology.OrphanOntologyKeyException

                throw new IllegalArgumentException("No ontology with public key " + reference + " found.");
            case UNCHARTED:
                log.warn("No key found for IRI {}", reference);
                return null;
            case ORPHAN:
                throw new OrphanOntologyKeyException(reference);
            default:
                String key = /* getKey(reference); */
                keymap.getMapping(reference).getUnicodeString();
                return getStoredOntology(key, returnType, merge);
        }
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.servicesapi.ontology.OrphanOntologyKeyException

    }

    @Override
    public boolean hasOntology(OWLOntologyID id) {
        Status stat = getStatus(id);
        if (stat == Status.ORPHAN) throw new OrphanOntologyKeyException(id);
        return getStatus(id) == Status.MATCH;
    }
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.