Package org.semanticweb.owl.model

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


      OWLOntologyManager tboxMgr = OWLManager.createOWLOntologyManager();
      OWLOntologyManager aboxMgr = OWLManager.createOWLOntologyManager();
     
      // Create two ontologies: Tbox and Abox
      OWLOntology tbox = tboxMgr.createOntology(tboxURI);
      OWLOntology abox = aboxMgr.createOntology(aboxURI);
   
      Set<OWLLogicalAxiom> axioms = ontology.getLogicalAxioms();
      logger.info("Number of logical axioms: "+axioms.size());
      for (OWLLogicalAxiom axiom : axioms){
        if (axiom instanceof OWLIndividualAxiom){
View Full Code Here


      OWLOntologyManager tboxMgr = OWLManager.createOWLOntologyManager();
      OWLOntologyManager aboxMgr = OWLManager.createOWLOntologyManager();
     
      // Create two ontologies: Tbox and Abox
      OWLOntology tbox = tboxMgr.createOntology(tboxURI);
      OWLOntology abox = aboxMgr.createOntology(aboxURI);
   
      Set<OWLLogicalAxiom> axioms = ontology.getLogicalAxioms();
      logger.info("Number of logical axioms: "+axioms.size());
      for (OWLLogicalAxiom axiom : axioms){
        if (axiom instanceof OWLClassAssertionAxiom){
View Full Code Here

              .getRunNumber());
          SimpleURIMapper mapper = new SimpleURIMapper(newAboxURI,
              newAboxPhysicalURI);
          manager.addURIMapper(mapper);

          modifiedAboxOntology = manager.createOntology(newAboxURI);
          manager.addAxioms(modifiedAboxOntology, aboxOntology
              .getAxioms());

          /*
           * System.out.println(newAboxPhysicalURI.toString() + ", " +
View Full Code Here

  @Test
  public void testIsClass5() throws OWLException {
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLDataFactory factory = manager.getOWLDataFactory();
    OWLOntology ontology = manager.createOntology(URI
        .create("http://example.org"));
   
    OWLDataRange dataRange = factory.getOWLDataType(XSDVocabulary.INTEGER
        .getURI());
    OWLDataRangeFacetRestriction dataRangeFacetRestriction = factory
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.