Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.UnknownOWLOntologyException


    }

    @Override
    public Set<OWLOntology> getDirectImports(OWLOntology ontology) {
        if (!contains(ontology)) {
            throw new UnknownOWLOntologyException(ontology.getOntologyID());
        }
        Set<OWLOntology> imports = new HashSet<>();
        for (OWLImportsDeclaration axiom : ontology.getImportsDeclarations()) {
            assert axiom != null;
            OWLOntology importedOntology = getImportedOntology(axiom);
View Full Code Here


     */
    public OWLOntologyChange createOntologyChange(OWLOntologyManager manager) {
        OWLOntology ontology = checkNotNull(manager, "manager cannot be null")
                .getOntology(ontologyID);
        if (ontology == null) {
            throw new UnknownOWLOntologyException(ontologyID);
        }
        return data.createOntologyChange(ontology);
    }
View Full Code Here

    }

    @Override
    public Set<OWLOntology> getImports(OWLOntology ontology) {
        if (!contains(ontology)) {
            throw new UnknownOWLOntologyException(ontology.getOntologyID());
        }
        Set<OWLOntology> result = new HashSet<>();
        getImports(ontology, result);
        return result;
    }
View Full Code Here

    }

    @Override
    public IRI getOntologyDocumentIRI(OWLOntology ontology) {
        if (!contains(ontology)) {
            throw new UnknownOWLOntologyException(ontology.getOntologyID());
        }
        return verifyNotNull(documentIRIsByID.get(ontology.getOntologyID()));
    }
View Full Code Here

    }

    @Override
    public void setOntologyDocumentIRI(OWLOntology ontology, IRI documentIRI) {
        if (!ontologiesByID.containsKey(ontology.getOntologyID())) {
            throw new UnknownOWLOntologyException(ontology.getOntologyID());
        }
        documentIRIsByID.put(ontology.getOntologyID(), documentIRI);
    }
View Full Code Here

     * @throws org.semanticweb.owlapi.model.UnknownOWLOntologyException
     *          if there isn't an ontology in this manager which has the specified IRI.
     */
    public Set<OWLOntology> getDirectImports(OWLOntology ontology) throws UnknownOWLOntologyException {
        if (!contains(ontology)) {
            throw new UnknownOWLOntologyException(ontology.getOntologyID());
        }
        Set<OWLOntology> imports = new HashSet<OWLOntology>();
        for (OWLImportsDeclaration axiom : ontology.getImportsDeclarations()) {
            OWLOntology importedOntology = getImportedOntology(axiom);
            if (importedOntology != null) {
View Full Code Here

     * @throws org.semanticweb.owlapi.model.UnknownOWLOntologyException
     *          if there isn't an ontology in this manager which has the specified IRI.
     */
    public Set<OWLOntology> getImports(OWLOntology ontology) throws UnknownOWLOntologyException {
        if (!contains(ontology)) {
            throw new UnknownOWLOntologyException(ontology.getOntologyID());
        }
        Set<OWLOntology> result = new HashSet<OWLOntology>();
        getImports(ontology, result);
        return result;
    }
View Full Code Here

    }


    public IRI getOntologyDocumentIRI(OWLOntology ontology) throws UnknownOWLOntologyException {
        if (!contains(ontology)) {
            throw new UnknownOWLOntologyException(ontology.getOntologyID());
        }
        return documentIRIsByID.get(ontology.getOntologyID());
    }
View Full Code Here

    }


    public void setOntologyDocumentIRI(OWLOntology ontology, IRI documentIRI) throws UnknownOWLOntologyException {
        if (!ontologiesByID.containsKey(ontology.getOntologyID())) {
            throw new UnknownOWLOntologyException(ontology.getOntologyID());
        }
        documentIRIsByID.put(ontology.getOntologyID(), documentIRI);
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.UnknownOWLOntologyException

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.