Package org.semanticweb.owlapi.formats

Examples of org.semanticweb.owlapi.formats.OBODocumentFormat


    public void shouldAllowCommentInDate() {
        String in1 = "format-version: 1.2\n"
                + "data-version: beta2 ! WSIO Beta 2\n"
                + "date: 19:06:2014 18:57 ! CE(S)T";
        OWLOntology o1 = loadOntologyFromString(in1, IRI.create("urn:test1"),
                new OBODocumentFormat());
        String in2 = "format-version: 1.2\n"
                + "date: 19:06:2014 18:57 ! CE(S)T"
                + "data-version: beta2 ! WSIO Beta 2\n";
        OWLOntology o2 = loadOntologyFromString(in2, IRI.create("urn:test2"),
                new OBODocumentFormat());
        assertEquals(o1.getAxioms(), o2.getAxioms());
    }
View Full Code Here


                + "synonym: \"human immunodeficiency virus-1 HIV-1\" RELATED []\n"
                + "synonym: \"LAV\" RELATED []\n" + "xref: NCBITaxon:11676\n"
                + "instance_of: HIV:00010\n"
                + "property value: host_range human\n" + "type_of: HIV:00000";
        loadOntologyFromString(in, IRI.create("urn:test"),
                new OBODocumentFormat());
    }
View Full Code Here

        } catch (OBOFormatParserException e) {
            throw new OWLParserException(e);
        } catch (OWLOntologyCreationException e) {
            throw new OWLParserException(e);
        }
        return new OBODocumentFormat();
    }
View Full Code Here

        } catch (OBOFormatParserException e) {
            throw new OWLParserException(e);
        } catch (OWLOntologyCreationException e) {
            throw new OWLParserException(e);
        }
        return new OBODocumentFormat();
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.formats.OBODocumentFormat

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.