Package com.esri.ontology.service.catalog

Examples of com.esri.ontology.service.catalog.OntClassMap


  private void processCategories(
    OntModelUtil ontModelUtil,
    QueryCriteria queryCriteria,
    OntClass search,
    Terms terms) {
    OntClassMap classMap = new OntClassMap();
    Iterator<String> CatIt = ontCtx.getCategories().keySet().iterator();
    while (CatIt.hasNext()) {
      String cat = CatIt.next();
      String code = ontModelUtil.getCode(cat, locale);
      if (code != null) {
        classMap.put(cat, ontCtx.getModel().getOntClass(code));
      }
    }

    int numberrecord = 0;
    Iterator<String> CatOnt = classMap.keySet().iterator();
    while (CatOnt.hasNext()) {
      String key = CatOnt.next();
      OntTools.Path path =
        OntTools.findShortestPath(ontCtx.getModel(), search, classMap.get(key),
        Filter.any);
      if (path != null) {

        float ii = 1;
        int TopicRecord = numberrecord;
View Full Code Here

TOP

Related Classes of com.esri.ontology.service.catalog.OntClassMap

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.