Examples of createOntology()


Examples of org.semanticweb.owlapi.model.OWLOntologyManager.createOntology()

    public void shouldCreatePropertyAssertions() throws Exception {
        // We can specify the properties of an individual using property
        // assertions Get a copy of an ontology manager
        OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
        IRI ontologyIRI = IRI.create("http://example.com/owl/families/");
        OWLOntology ontology = manager.createOntology(ontologyIRI);
        // Get hold of a data factory from the manager and set up a prefix
        // manager to make things easier
        OWLDataFactory factory = manager.getOWLDataFactory();
        PrefixManager pm = new DefaultPrefixManager(null, null,
                ontologyIRI.toString());
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLOntologyManager.createOntology()

    @Test
    public void testIRTsConversion() throws Exception {
        IRI ontologyIRI = IRI.create("http://purl.obolibrary.org/obo/test.owl");
        OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
        OWLOntology ontology = manager.createOntology(ontologyIRI);
        convert(ontology);
        String ontId = OWLAPIOwl2Obo.getOntologyId(ontology);
        assertEquals("test", ontId);
        IRI iri = IRI.create("http://purl.obolibrary.org/obo/OBI_0000306");
        String id = OWLAPIOwl2Obo.getIdentifier(iri);
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLOntologyManager.createOntology()

        // OWLOntologyManagerFactoryRegistry.getOWLDataFactory(),
        // storerRegistry, parserRegistry);
        OWLOntologyManager testManager = OWLManager.createOWLOntologyManager();
        testManager.getOntologyStorers().set(new RioNTriplesStorerFactory(),
                new RioRDFXMLStorerFactory(), new RioTurtleStorerFactory());
        testOntologyEmpty = testManager.createOntology(testOntologyUri1);
        testOntologyKoala = testManager
                .loadOntologyFromOntologyDocument(getClass()
                        .getResourceAsStream("/koala.owl"));
        assertEquals(70, testOntologyKoala.getAxiomCount());
        testHandlerStatementCollector = new StatementCollector();
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.