Package org.obolibrary.obo2owl

Examples of org.obolibrary.obo2owl.OWLAPIObo2Owl


            return false;
        }

        @Nullable
        IRI getIRIByIdentifier(@Nonnull String id) {
            OWLAPIObo2Owl b = new OWLAPIObo2Owl(manager);
            b.setObodoc(new OBODoc());
            return b.oboIdToIRI(id);
        }
View Full Code Here


            } else {
                return parse(source.getDocumentIRI(), null, in);
            }
        }
        // create a translator object and feed it the OBO Document
        OWLAPIObo2Owl bridge = new OWLAPIObo2Owl(in.getOWLOntologyManager());
        OWLOntology ontology = bridge.convert(obodoc, in);
        if (ontology == in) {
            return in;
        }
        return ontology;
    }
View Full Code Here

        }

        @Override
        public String getName(String id) {
            // convert OBO id to IRI
            OWLAPIObo2Owl obo2owl = new OWLAPIObo2Owl(
                    ont.getOWLOntologyManager());
            IRI iri = obo2owl.oboIdToIRI(id);
            // look for label of entity
            Set<OWLAnnotationAssertionAxiom> axioms = ont.getAxioms(
                    OWLAnnotationAssertionAxiom.class,
                    OWLAnnotationSubject.class, iri, Imports.INCLUDED,
                    IN_SUB_POSITION);
View Full Code Here

TOP

Related Classes of org.obolibrary.obo2owl.OWLAPIObo2Owl

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.