Examples of OWLXMLParser


Examples of org.semanticweb.owlapi.owlxml.parser.OWLXMLParser

                + (char) 0240
                + "<owl:Class rdf:about=\"http://www.example.org/ISA14#Researcher\"/>\n"
                + "</rdf:RDF>";
        ByteArrayInputStream in = new ByteArrayInputStream(
                onto.getBytes(Charset.forName("ISO-8859-1")));
        OWLXMLParser parser = new OWLXMLParser();
        try {
            parser.parse(new StreamDocumentSource(in), m.createOntology(),
                    config);
            fail("parsing should have failed, invalid input");
        } catch (Exception ex) {
            // expected to fail, but actual exception depends on the parsers in
            // the classpath
View Full Code Here

Examples of org.semanticweb.owlapi.owlxml.parser.OWLXMLParser

        assertEquals("KRSSOWLParser", new KRSSOWLParser().getName());
        assertEquals("OWLFunctionalSyntaxOWLParser",
                new OWLFunctionalSyntaxOWLParser().getName());
        assertEquals("ManchesterOWLSyntaxOntologyParser",
                new ManchesterOWLSyntaxOntologyParser().getName());
        assertEquals("OWLXMLParser", new OWLXMLParser().getName());
        assertEquals("RDFXMLParser", new RDFXMLParser().getName());
        assertEquals("TurtleOntologyParser",
                new TurtleOntologyParser().getName());
        OWLOntology createOntology = OWLManager.createOWLOntologyManager()
                .createOntology();
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.