test_class.declarator: lOnt
test_class.modifier: private
test_class.original_string: private LocalOntology lOnt;
test_class.type: LocalOntology
test_class.var_name: lOnt
test_class.file: core/src/test/java/gov/nasa/jpl/mudrod/ontology/process/TestLocalOntology.java
test_class.identifier: TestLocalOntology
test_case.body: @Ignore
    @Test
    public final void testSubclasses() {
      fail("Not yet implemented"); // TODO
    }
test_case.class_method_signature: TestLocalOntology.testSubclasses()
test_case.full_signature: @Ignore @Test public final void testSubclasses()
test_case.identifier: testSubclasses
test_case.invocations: fail
test_case.modifiers: @Ignore @Test public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSubclasses()
focal_class.declarator: LOG = LoggerFactory.getLogger(LocalOntology.class)
focal_class.modifier: public static final
focal_class.original_string: public static final Logger LOG = LoggerFactory.getLogger(LocalOntology.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: DELIMITER_SEARCHTERM = " "
focal_class.modifier: public static final
focal_class.original_string: public static final String DELIMITER_SEARCHTERM = " ";
focal_class.type: String
focal_class.var_name: DELIMITER_SEARCHTERM
focal_class.declarator: searchTerms = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private Map<Object, Object> searchTerms = new HashMap<>();
focal_class.type: Map<Object, Object>
focal_class.var_name: searchTerms
focal_class.declarator: parser
focal_class.modifier: private static
focal_class.original_string: private static OntologyParser parser;
focal_class.type: OntologyParser
focal_class.var_name: parser
focal_class.declarator: ontologyModel
focal_class.modifier: private static
focal_class.original_string: private static OntModel ontologyModel;
focal_class.type: OntModel
focal_class.var_name: ontologyModel
focal_class.declarator: ontology
focal_class.modifier: private
focal_class.original_string: private Ontology ontology;
focal_class.type: Ontology
focal_class.var_name: ontology
focal_class.declarator: mAnonIDs = new HashMap<>()
focal_class.modifier: private static
focal_class.original_string: private static Map<AnonId, String> mAnonIDs = new HashMap<>();
focal_class.type: Map<AnonId, String>
focal_class.var_name: mAnonIDs
focal_class.declarator: mAnonCount = 0
focal_class.modifier: private static
focal_class.original_string: private static int mAnonCount = 0;
focal_class.type: int
focal_class.var_name: mAnonCount
focal_class.declarator: ontArrayList
focal_class.modifier: private
focal_class.original_string: private List<String> ontArrayList;
focal_class.type: List<String>
focal_class.var_name: ontArrayList
focal_class.file: core/src/main/java/gov/nasa/jpl/mudrod/ontology/process/LocalOntology.java
focal_class.identifier: LocalOntology
focal_class.interfaces: implements Ontology
focal_class.class_method_signature: LocalOntology.LocalOntology()
focal_class.full_signature: public  LocalOntology()
focal_class.identifier: LocalOntology
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  LocalOntology()
focal_class.class_method_signature: LocalOntology.getInstance()
focal_class.full_signature: public Ontology getInstance()
focal_class.identifier: getInstance
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Ontology
focal_class.signature: Ontology getInstance()
focal_class.class_method_signature: LocalOntology.load()
focal_class.full_signature: @Override public void load()
focal_class.identifier: load
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void load()
focal_class.class_method_signature: LocalOntology.load(String[] urls)
focal_class.full_signature: @Override public void load(String[] urls)
focal_class.identifier: load
focal_class.modifiers: @Override public
focal_class.parameters: (String[] urls)
focal_class.return: void
focal_class.signature: void load(String[] urls)
focal_class.class_method_signature: LocalOntology.load(Object m, String url)
focal_class.full_signature: private void load(Object m, String url)
focal_class.identifier: load
focal_class.modifiers: private
focal_class.parameters: (Object m, String url)
focal_class.return: void
focal_class.signature: void load(Object m, String url)
focal_class.class_method_signature: LocalOntology.getParser()
focal_class.full_signature: public OntologyParser getParser()
focal_class.identifier: getParser
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: OntologyParser
focal_class.signature: OntologyParser getParser()
focal_class.class_method_signature: LocalOntology.getModel()
focal_class.full_signature: public static OntModel getModel()
focal_class.identifier: getModel
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: OntModel
focal_class.signature: OntModel getModel()
focal_class.class_method_signature: LocalOntology.getLoadedOntologyResources()
focal_class.full_signature: public List<String> getLoadedOntologyResources()
focal_class.identifier: getLoadedOntologyResources
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getLoadedOntologyResources()
focal_class.class_method_signature: LocalOntology.merge(Ontology o)
focal_class.full_signature: @Override public void merge(Ontology o)
focal_class.identifier: merge
focal_class.modifiers: @Override public
focal_class.parameters: (Ontology o)
focal_class.return: void
focal_class.signature: void merge(Ontology o)
focal_class.class_method_signature: LocalOntology.subclasses(String entitySearchTerm)
focal_class.full_signature: @Override public Iterator<String> subclasses(String entitySearchTerm)
focal_class.identifier: subclasses
focal_class.modifiers: @Override public
focal_class.parameters: (String entitySearchTerm)
focal_class.return: Iterator<String>
focal_class.signature: Iterator<String> subclasses(String entitySearchTerm)
focal_class.class_method_signature: LocalOntology.synonyms(String queryKeyPhrase)
focal_class.full_signature: @Override public Iterator synonyms(String queryKeyPhrase)
focal_class.identifier: synonyms
focal_class.modifiers: @Override public
focal_class.parameters: (String queryKeyPhrase)
focal_class.return: Iterator
focal_class.signature: Iterator synonyms(String queryKeyPhrase)
focal_class.class_method_signature: LocalOntology.addSearchTerm(String label, OntResource resource)
focal_class.full_signature: public void addSearchTerm(String label, OntResource resource)
focal_class.identifier: addSearchTerm
focal_class.modifiers: public
focal_class.parameters: (String label, OntResource resource)
focal_class.return: void
focal_class.signature: void addSearchTerm(String label, OntResource resource)
focal_class.class_method_signature: LocalOntology.retrieve(String label)
focal_class.full_signature: public Map<OntResource, String> retrieve(String label)
focal_class.identifier: retrieve
focal_class.modifiers: public
focal_class.parameters: (String label)
focal_class.return: Map<OntResource, String>
focal_class.signature: Map<OntResource, String> retrieve(String label)
focal_class.class_method_signature: LocalOntology.renderHierarchy(PrintStream out, OntClass cls, List<Object> occurs, int depth)
focal_class.full_signature: protected static void renderHierarchy(PrintStream out, OntClass cls, List<Object> occurs, int depth)
focal_class.identifier: renderHierarchy
focal_class.modifiers: protected static
focal_class.parameters: (PrintStream out, OntClass cls, List<Object> occurs, int depth)
focal_class.return: void
focal_class.signature: void renderHierarchy(PrintStream out, OntClass cls, List<Object> occurs, int depth)
focal_class.class_method_signature: LocalOntology.renderClassDescription(PrintStream out, OntClass c, int depth)
focal_class.full_signature: public static void renderClassDescription(PrintStream out, OntClass c, int depth)
focal_class.identifier: renderClassDescription
focal_class.modifiers: public static
focal_class.parameters: (PrintStream out, OntClass c, int depth)
focal_class.return: void
focal_class.signature: void renderClassDescription(PrintStream out, OntClass c, int depth)
focal_class.class_method_signature: LocalOntology.renderRestriction(PrintStream out, Restriction r)
focal_class.full_signature: protected static void renderRestriction(PrintStream out, Restriction r)
focal_class.identifier: renderRestriction
focal_class.modifiers: protected static
focal_class.parameters: (PrintStream out, Restriction r)
focal_class.return: void
focal_class.signature: void renderRestriction(PrintStream out, Restriction r)
focal_class.class_method_signature: LocalOntology.renderURI(PrintStream out, PrefixMapping prefixes, String uri)
focal_class.full_signature: protected static void renderURI(PrintStream out, PrefixMapping prefixes, String uri)
focal_class.identifier: renderURI
focal_class.modifiers: protected static
focal_class.parameters: (PrintStream out, PrefixMapping prefixes, String uri)
focal_class.return: void
focal_class.signature: void renderURI(PrintStream out, PrefixMapping prefixes, String uri)
focal_class.class_method_signature: LocalOntology.renderAnonymous(PrintStream out, Resource anon, String name)
focal_class.full_signature: protected static void renderAnonymous(PrintStream out, Resource anon, String name)
focal_class.identifier: renderAnonymous
focal_class.modifiers: protected static
focal_class.parameters: (PrintStream out, Resource anon, String name)
focal_class.return: void
focal_class.signature: void renderAnonymous(PrintStream out, Resource anon, String name)
focal_class.class_method_signature: LocalOntology.indent(PrintStream out, int depth)
focal_class.full_signature: protected static void indent(PrintStream out, int depth)
focal_class.identifier: indent
focal_class.modifiers: protected static
focal_class.parameters: (PrintStream out, int depth)
focal_class.return: void
focal_class.signature: void indent(PrintStream out, int depth)
focal_method.body: @Override
    public Iterator<String> subclasses(String entitySearchTerm) {
      Map<OntResource, String> classMap = retrieve(entitySearchTerm);
      Map<String, String> subclasses = new HashMap<>();
  
      Iterator<OntResource> iter = classMap.keySet().iterator();
      while (iter.hasNext()) {
        OntResource resource = iter.next();
  
        if (resource instanceof OntClass) {
          //get subclasses N.B. we only get direct sub-classes e.g. direct children
          //it is possible for us to navigate the entire class tree if we wish, we simply
          //need to pass the .listSubClasses(true) boolean parameter.
          for (Iterator<?> i = ((OntClass) resource).listSubClasses(); i.hasNext();) {
            OntResource subclass = (OntResource) i.next();
            for (Iterator<?> j = subclass.listLabels(null); j.hasNext();) {
              Literal l = (Literal) j.next();
              subclasses.put(l.toString(), "1");
            }
          }
          //get individuals
          for (Iterator<?> i = ((OntClass) resource).listInstances(); i.hasNext(); ) {
            OntResource subclass = (OntResource) i.next();
            for (Iterator<?> j = subclass.listLabels(null); j.hasNext();) {
              Literal l = (Literal) j.next();
              subclasses.put(l.toString(), "1");
            }
          }
        } else if (resource instanceof Individual) {
          for (Iterator<?> i = resource.listSameAs(); i.hasNext();) {
            OntResource subclass = (OntResource) i.next();
            for (Iterator<?> j = subclass.listLabels(null); j.hasNext();) {
              Literal l = (Literal) j.next();
              subclasses.put(l.toString(), "1");
            }
          }
        }
      }
      return subclasses.keySet().iterator();
    }
focal_method.class_method_signature: LocalOntology.subclasses(String entitySearchTerm)
focal_method.full_signature: @Override public Iterator<String> subclasses(String entitySearchTerm)
focal_method.identifier: subclasses
focal_method.invocations: retrieve iterator keySet hasNext next listSubClasses hasNext next listLabels hasNext next put toString listInstances hasNext next listLabels hasNext next put toString listSameAs hasNext next listLabels hasNext next put toString iterator keySet
focal_method.modifiers: @Override public
focal_method.parameters: (String entitySearchTerm)
focal_method.return: Iterator<String>
focal_method.signature: Iterator<String> subclasses(String entitySearchTerm)