Package org.semanticweb.owl.model

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


   
    OWLOntology tbox = null, abox = null;
    try {
     
      tbox = manager.loadOntology(tboxURI);
      abox = manager.loadOntology(aboxURI);
     
      // Compute the number of direct individuals for each class
      for (OWLClass owlClass : v)
      {
        hashClasses.put(owlClass, 1.0 * owlClass.getIndividuals(abox).size());
 
View Full Code Here


    // Compute the ordered list of classes
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();

    OWLOntology tbox = null;
    try {
      tbox = manager.loadOntology(tboxURI);

      // Compute the number of direct subclasses of each class
      for (OWLClass owlClass : v) {
        Set<OWLDescription> superClasses = owlClass
            .getSuperClasses(tbox);
View Full Code Here

    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
   
    OWLOntology tbox = null, abox = null;
    try {
     
      tbox = manager.loadOntology(tboxURI);
      abox = manager.loadOntology(aboxURI);
     
      // Compute the number of direct individuals for each class
      for (OWLClass owlClass : v)
      {
View Full Code Here

   
    OWLOntology tbox = null, abox = null;
    try {
     
      tbox = manager.loadOntology(tboxURI);
      abox = manager.loadOntology(aboxURI);
     
      // Compute the number of direct individuals for each class
      for (OWLClass owlClass : v)
      {
        fillScores(owlClass, 1.0 * owlClass.getIndividuals(abox).size(), tbox, MAX_STEP);
View Full Code Here

    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
   
    OWLOntology tbox = null, abox = null;
    try {
     
      tbox = manager.loadOntology(tboxURI);
      abox = manager.loadOntology(aboxURI);
     
      // Compute the number of direct individuals for each class
      for (OWLClass owlClass : v)
      {
View Full Code Here

   
    OWLOntology tbox = null, abox = null;
    try {
     
      tbox = manager.loadOntology(tboxURI);
      abox = manager.loadOntology(aboxURI);
     
      // Compute the number of direct individuals for each class
      for (OWLClass owlClass : v)
      {
        fillScores(owlClass, 1.0 * owlClass.getIndividuals(abox).size(), tbox, MAX_STEP);
View Full Code Here

    // Compute the ordered list of classes
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
   
    OWLOntology tbox = null;
    try {
      tbox = manager.loadOntology(tboxURI);
     
      // Compute the number of direct subclasses of each class
      for (OWLClass owlClass : this.classes){
        Set<OWLDescription> subClasses = owlClass.getSubClasses(tbox);
        this.sortedList.add(new OWLSubclass(owlClass,subClasses.size()));
View Full Code Here

    // Compute the ordered list of classes
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLOntology tbox = null;
   
    try {
      tbox = manager.loadOntology(tboxURI);
     
      // Compute the number of direct subclasses of each class
      for (OWLClass owlClass : this.classes){
        Set<OWLDescription> subClasses = owlClass.getSubClasses(tbox);
        this.sortedList.add(new OWLSubclass(owlClass,subClasses.size()));
View Full Code Here

  private void testOWLAPI(String premiseURI, String conclusionURI) {
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    Reasoner reasoner = new Reasoner(manager);
   
    try {
      OWLOntology premise = manager.loadOntology(URI.create(premiseURI));
      OWLOntology conclusion = manager.loadOntology(URI
          .create(conclusionURI));

      reasoner.loadOntology(premise);
     
View Full Code Here

    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    Reasoner reasoner = new Reasoner(manager);
   
    try {
      OWLOntology premise = manager.loadOntology(URI.create(premiseURI));
      OWLOntology conclusion = manager.loadOntology(URI
          .create(conclusionURI));

      reasoner.loadOntology(premise);
     
      assertTrue(reasoner.isEntailed(conclusion));
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.