Package nl.vu.few.anytimereasoning.workbench.selectionstrategies

Examples of nl.vu.few.anytimereasoning.workbench.selectionstrategies.VocabularyManager


      logger.error(e);
      System.exit(0);
    }
   
    //VocabularyManager vManager = new VocabularyManager(tbox,abox);
    VocabularyManager vManager = new VocabularyManager(tbox);
    Set<OWLClass> concepts = vManager.getConceptSet();
    Set<OWLProperty<?,?>> properties = new HashSet<OWLProperty<?,?>>();
   
    printInitialStatistics(tbox, abox, concepts, properties);
   
    /* remove tbox and abox from manager as we don't need them anymore */
 
View Full Code Here


    logger.info("");
    logger.info("Vocabulary subset (property set): ");
    for (OWLProperty<?, ?> owlp : currentVocabularyPropertySet){
      logger.info(owlp.getURI());
    }
    VocabularyManager vManager = new VocabularyManager(tbox);
    Set<OWLClass> conceptsInTbox = vManager.getConceptSet();
    logger.info("Atomic concept names in rewritten Tbox: "+conceptsInTbox.size());
    VocabularyManager vManager2 = new VocabularyManager(abox);
    Set<OWLClass> conceptsInAbox = vManager2.getConceptSet();
    logger.info("Atomic concept names in Abox: "+conceptsInAbox.size())
    logger.info("Abox's individual axioms: "+abox.getIndividualAxioms().size());
    logger.info("--------------------------------------------------------");   
  }
View Full Code Here

    OWLOntology ontology = loadOntology(uri);
    if (ontology != null){
      rowCnt++;
      int colCnt = -1;
     
      VocabularyManager vManager = new VocabularyManager(ontology);
      Set<OWLClass> concepts = vManager.getConceptSet();
      Set<OWLProperty<?,?>> properties = vManager.getPropertySet();
     
      Set<OWLIndividual> allIndividuals = ontology.getReferencedIndividuals();
   
      String link = "<a href=\"viewmetrics.php?o="+ontName+"\">C</a>&nbsp;<a href=\"viewmetrics-i.php?o="+ontName+"\">I</a>";
      this.writeToFile(this.output, ontName + " ");
View Full Code Here

    File file = new File(fileName);
    inputOntologies = readFile(file);
  }
 
  static void printMetrics(OWLOntology ontology, OWLOntologyManager manager){
    VocabularyManager vManager = new VocabularyManager(ontology);
    Set<OWLClass> concepts = vManager.getConceptSet();
     
    logger.info("Ontology loaded");
    logger.info("----TBox----");
    logger.info("\tURI: " + ontology.getURI());
    logger.info("\tClasses: " + concepts.size());
View Full Code Here

    try
    {
      tbox = manager.loadOntologyFromPhysicalURI(tboxPhysicalURI);
      abox = manager.loadOntologyFromPhysicalURI(aboxPhysicalURI);

      VocabularyManager vManager = new VocabularyManager(tbox);
      Set<OWLClass> classes = vManager.getConceptSet();
     
      Set<OWLProperty<?, ?>> properties = new HashSet<OWLProperty<?, ?>>();

      logger.info("Selected vocabulary subset: ");
      int cCounter = 1;
View Full Code Here

    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLOntology ontology = loadOntology(manager, uri);
    if (ontology != null){
      try {
        OWLDataFactory factory = manager.getOWLDataFactory();
        VocabularyManager vManager = new VocabularyManager(ontology);
        List<OWLClass> classes = new Vector<OWLClass>(vManager.getConceptSet());
       
        List<OWLAxiomChange> toAdd = new Vector<OWLAxiomChange>();
        for (int i = 0; i < instances; i++) {
          int rnd = m_random.nextInt(classes.size());
          OWLClassAssertionAxiom newAxiom = factory.getOWLClassAssertionAxiom(newIndividual(factory), classes.get(rnd));
View Full Code Here

    try
    {
      // load the ontology using the ontology manager
      // we need only classes (concepts) from it
      tboxOntology = manager.loadOntologyFromPhysicalURI(tBoxPhysicalURI);
      VocabularyManager vManager = new VocabularyManager(tboxOntology);
     
      CSVFileWriter out = new CSVFileWriter(outputCSVFile, ',');
      Vector<String> fields = new Vector<String>();
      fields.add("Concept name");
      for(ConceptMetric metric: metrics)
      {
        String[] headers = metric.getHeaders();
        for(int i=0; i < headers.length; i++)
          fields.add(headers[i]);
      }
      out.writeFields(fields);
      //get the concepts
      Set<OWLClass> classes = vManager.getConceptSet();
      for (OWLClass owlClass : classes)
      {
        String name = owlClass.toString();
        logger.info("Concept name - " + name);
        fields.clear();
View Full Code Here

    {
      e.printStackTrace();
      System.exit(0);
    }

    VocabularyManager vocabularyManager = new VocabularyManager(
        tboxOntology);
    // get the set of concepts
    Set<OWLClass> concepts = vocabularyManager.getConceptSet();

    ArrayList<ClassTop> map;
    try
    {
      map = loadGoogleTop(ontology);
View Full Code Here

      {
        e.printStackTrace();
        System.exit(0);
      }

      VocabularyManager vocabularyManager = new VocabularyManager(
          tboxOntology);
      Set<OWLClass> concepts = vocabularyManager.getConceptSet();
      Set<OWLProperty<?, ?>> properties = new HashSet<OWLProperty<?, ?>>();

      manager.removeOntology(tboxLogicalURI);
      manager.removeOntology(aboxLogicalURI);
View Full Code Here

      {
        e.printStackTrace();
        System.exit(0);
      }

      VocabularyManager vocabularyManager = new VocabularyManager(
          tboxOntology);
      Set<OWLClass> concepts = vocabularyManager.getConceptSet();
      Set<OWLProperty<?, ?>> properties = new HashSet<OWLProperty<?, ?>>();

      manager.removeOntology(tboxLogicalURI);
      manager.removeOntology(aboxLogicalURI);
View Full Code Here

TOP

Related Classes of nl.vu.few.anytimereasoning.workbench.selectionstrategies.VocabularyManager

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.