Package nl.vu.few.anytimereasoning.workbench.approximation

Examples of nl.vu.few.anytimereasoning.workbench.approximation.ApproximationTask


            stepSizeStrategy, tboxPhysicalURI, aboxPhysicalURI);
      } catch (Exception e)
      {
        e.printStackTrace();
      }
      ApproximationTask approximation = new ApproximationTask(
          selectionStrategy, tboxPhysicalURI, aboxPhysicalURI,
          filePrefix, tmpTboxURI.toString(), rParameter, iParameter,
          resultsDirectory);
      Logger logger = Logger.getLogger(ApproximationTask.class.getName());
      logger.setLevel(Level.OFF);

      try
      {
        RunResult resultsFull = runFullOntology(tboxPhysicalURI,
            aboxPhysicalURI, concepts, properties);

        String xmlFile = filePrefix + rParameter + iParameter + "_"
            + approximation.getConfiguration()
            + "-ApproximationData";
        results[i] = new ExperimentResults(resultsFull, concepts,
            properties, xmlFile, resultsDirectory);

        URI tmpAboxURI = createAboxURI(tmpTboxURI);
        runApproximations(results[i], approximation, concepts,
            properties, aboxPhysicalURI, tmpTboxURI, tmpAboxURI,
            true, false, false);
        approximationConfig = approximation.getConfiguration();
      } catch (Exception e)
      {
        e.printStackTrace();
        System.exit(0);
      }
View Full Code Here


          StrategyFactory.newStepSizeStrategy("EqualParts",
              selectionStrategy.getConceptsSet().size()),
          selectionStrategy.getConceptsList(), selectionStrategy
              .getID());

      ApproximationTask approximation = new ApproximationTask(
          selectionStrategyCopy, tboxPhysicalURI, aboxPhysicalURI,
          filePrefix, tmpTboxURI.toString(), rParameter, iParameter,
          resultsDirectory);
      Logger logger = Logger.getLogger(ApproximationTask.class.getName());
      logger.setLevel(Level.OFF);

      try
      {
        RunResult resultsFull = runFullOntology(tboxPhysicalURI,
            aboxPhysicalURI, concepts, properties);

        String xmlFile = filePrefix + rParameter + iParameter + "_"
            + approximation.getConfiguration()
            + "-ApproximationData";
        results[i] = new ExperimentResults(resultsFull, concepts,
            properties, xmlFile, resultsDirectory);

        URI tmpAboxURI = createAboxURI(tmpTboxURI);
        runApproximations(results[i], approximation, concepts,
            properties, aboxPhysicalURI, tmpTboxURI, tmpAboxURI,
            true, false, false);
        approximationConfig = approximation.getConfiguration();
      } catch (Exception e)
      {
        e.printStackTrace();
        System.exit(0);
      }
View Full Code Here

TOP

Related Classes of nl.vu.few.anytimereasoning.workbench.approximation.ApproximationTask

Copyright © 2018 www.massapicom. 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.