Package org.semanticweb.owlapi.model

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


     */
    public BlankOntologySource() {
        OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
        bindTriplesProvider(manager);
        try {
            bindRootOntology(manager.createOntology());
        } catch (OWLOntologyCreationException e) {
            bindRootOntology(null);
        }
        bindPhysicalIri(null);
    }
View Full Code Here


  public static OWLOntology getScopes(Set<OntologyScope> scopes) {

    OWLOntologyManager mgr = OWLManager.createOWLOntologyManager();
    OWLOntology ont = null;
    try {
      ont = mgr.createOntology();
    } catch (OWLOntologyCreationException e) {
      LoggerFactory
          .getLogger(ScopeSetRenderer.class)
          .error(
              "KReS :: could not create empty ontology for rendering scopes.",
View Full Code Here

        scopeRegistry = onm.getScopeRegistry();
        assertNotNull(spaceFactory);
        assertNotNull(scopeFactory);
        OWLOntologyManager mgr = OWLOntologyManagerFactory.createOWLOntologyManager(null);
        try {
            src1 = new RootOntologySource(mgr.createOntology(baseIri), null);
            src2 = new RootOntologySource(mgr.createOntology(baseIri2), null);
        } catch (OWLOntologyCreationException e) {
            fail("Could not setup ontology with base IRI " + Constants.PEANUTS_MAIN_BASE);
        }
    }
View Full Code Here

        assertNotNull(spaceFactory);
        assertNotNull(scopeFactory);
        OWLOntologyManager mgr = OWLOntologyManagerFactory.createOWLOntologyManager(null);
        try {
            src1 = new RootOntologySource(mgr.createOntology(baseIri), null);
            src2 = new RootOntologySource(mgr.createOntology(baseIri2), null);
        } catch (OWLOntologyCreationException e) {
            fail("Could not setup ontology with base IRI " + Constants.PEANUTS_MAIN_BASE);
        }
    }
View Full Code Here

    JenaToOwlConvert j2o = new JenaToOwlConvert();

                OWLOntologyManager mgr = OWLManager.createOWLOntologyManager();
                OWLOntology ont = null;
                try{
                    ont = mgr.createOntology();
                } catch(OWLOntologyCreationException e){
                    e.printStackTrace();
                    fail("Can not create ontology");
                }
View Full Code Here

            OWLOntologyManager mgr = OWLManager.createOWLOntologyManager();
            OWLOntology ont = null;
            StmtIterator resource = null;

            try{
             ont = mgr.createOntology();
            } catch (OWLOntologyCreationException e) {
      e.printStackTrace();
      fail("Could not load ontology");
            }
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.