Examples of checkOntology()


Examples of org.semanticweb.owlapi.profiles.OWL2DLProfile.checkOntology()

      OWLAxiom axiom = OWL.factory.getOWLSubDataPropertyOfAxiom(topProperty, property);
     
      OWL.manager.addAxiom(ontology, axiom);
     
      OWL2DLProfile owl2Profile = new OWL2DLProfile();
      assertFalse( owl2Profile.checkOntology( ontology ).isInProfile() );
    }
    finally {
      OWL.manager.removeOntology(ontology);
    }     
  }
View Full Code Here

Examples of org.semanticweb.owlapi.profiles.OWL2DLProfile.checkOntology()

  public void testInvalidTransitivity() throws OWLOntologyCreationException {
    OWLOntology ontology = OWL.manager.loadOntologyFromOntologyDocument(new File("test/data/misc/invalidTransitivity.owl"));
   
    try {
      OWL2DLProfile owl2Profile = new OWL2DLProfile();
      assertFalse( owl2Profile.checkOntology( ontology ).isInProfile() );     
    }
    finally {
      OWL.manager.removeOntology(ontology);
    }
  }
View Full Code Here

Examples of org.semanticweb.owlapi.profiles.OWL2RLProfile.checkOntology()

                + "<rdf:type rdf:resource=\"http://www.w3.org/2002/07/owl#DatatypeProperty\"/>\n"
                + "<rdfs:subPropertyOf rdf:resource=\"http://ex.com#p1\"/>\n"
                + "</rdf:Property>\n" + "</rdf:RDF>";
        OWLOntology o = loadOntologyFromString(onto);
        OWL2RLProfile p = new OWL2RLProfile();
        OWLProfileReport report = p.checkOntology(o);
        assertTrue(report.getViolations().isEmpty());
    }

    @Test
    public void shouldCauseViolationsWithUseOfPropertyInChain()
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.