Package org.semanticweb.owlapi.formats

Examples of org.semanticweb.owlapi.formats.RioRDFXMLDocumentFormat


        OWLOntology ontology = m1
                .createOntology(IRI
                        .create("http://protege.stanford.edu/plugins/owl/owl-library/koala.owl"));
        OWLDocumentFormat rioOntologyFormat = rioParser.parse(
                getStream("/koala.owl"), ontology, config);
        assertEquals(new RioRDFXMLDocumentFormat(), rioOntologyFormat);
        equal(owlapiOntologyPrimer, ontology);
        assertEquals(70, ontology.getAxiomCount());
    }
View Full Code Here


        // .createOWLOntologyManager()
        OWLOntology rioOntologyPrimer = m1.createOntology(IRI
                .create("http://example.com/owl/families"));
        OWLDocumentFormat rioOntologyFormat = rioParser.parse(
                getStream("/primer.rdfxml.xml"), rioOntologyPrimer, config);
        assertEquals(new RioRDFXMLDocumentFormat(), rioOntologyFormat);
        equal(owlapiOntologyPrimer, rioOntologyPrimer);
        assertEquals(93, rioOntologyPrimer.getAxiomCount());
    }
View Full Code Here

        OWLOntology rioOntologyPrimer = OWLManager.createOWLOntologyManager()
                .createOntology(IRI.create("http://example.com/owl/families"));
        OWLDocumentFormat rioOntologyFormat = rioParser.parse(
                getStream("/rioParserTest1-minimal.rdf"), rioOntologyPrimer,
                config);
        assertEquals(new RioRDFXMLDocumentFormat(), rioOntologyFormat);
        equal(owlapiOntologyPrimer, rioOntologyPrimer);
        assertEquals(4, rioOntologyPrimer.getAxiomCount());
    }
View Full Code Here

        OWLOntology rioOntologyPrimer = m1.createOntology(IRI
                .create("http://example.com/owl/families"));
        OWLDocumentFormat rioOntologyFormat = rioParser.parse(
                getStream("/rioParserTest1-minimal.rdf"), rioOntologyPrimer,
                config);
        assertEquals(new RioRDFXMLDocumentFormat(), rioOntologyFormat);
        equal(owlapiOntologyPrimer, rioOntologyPrimer);
        assertEquals(4, rioOntologyPrimer.getAxiomCount());
    }
View Full Code Here

TOP

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

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.