parameters: (self, hrlinetop=True, print_inferred=False)
return_statement: return
docstring: print(more informative stats about the object)
          2016-06-14: added inferred option
docstring_summary: print(more informative stats about the object)
          2016-06-14: added inferred option
docstring_tokens: print ( more informative stats about the object ) 2016 - 06 - 14 : added inferred option
function: def _printClassRange(self, hrlinetop=True, print_inferred=False):
          """
          print(more informative stats about the object)
          2016-06-14: added inferred option
          """
          if not self.currentEntity:  # ==> ontology level
              return
          x = self.currentEntity['object']
          if self.currentEntity['type'] == 'class':
              if hrlinetop:
                  self._print("----------------")
              self._print("RANGE OF:", "IMPORTANT")
              self._print("[%d] Explicitly declared" % len(x.range_of), "IMPORTANT")
              for i in x.range_of:
                  if i.domains:
                      domains = ",".join([y.qname if hasattr(y, "qname") else str(y)
                                          for y in i.domains])
                  else:
                      domains = "owl:Thing"
                  printInfo(Style.DIM + domains + Style.RESET_ALL + " => " + Fore.MAGENTA + i.qname +
                        Style.RESET_ALL + " => " + Fore.GREEN + x.qname + Style.RESET_ALL)
  
              # inferred stuff
              if print_inferred:
                  for _dict in x.range_of_inferred:
                      _class = list(_dict.items())[0][0]
                      _propslist = list(_dict.items())[0][1]
                      if _class.id != x.id and len(_propslist):  # print only inferred properties
                          self._print("[%d] Inherited from [%s]" % (len(_propslist), _class.qname),
                                      "IMPORTANT")
                          for i in _propslist:
                              if i.domains:
                                  domains = ",".join(
                                      [y.qname if hasattr(y, "qname") else str(y) for y in i.domains])
                              else:
                                  domains = "owl:Thing"
                              printInfo(Style.DIM + domains + Style.RESET_ALL + " => " + Fore.MAGENTA +
                                    i.qname + Style.RESET_ALL + " => " + Fore.GREEN + x.qname + Style.RESET_ALL)
  
              self._print("----------------")
          return
function_tokens: def _printClassRange ( self , hrlinetop = True , print_inferred = False ) : if not self . currentEntity : # ==> ontology level return x = self . currentEntity [ 'object' ] if self . currentEntity [ 'type' ] == 'class' : if hrlinetop : self . _print ( "----------------" ) self . _print ( "RANGE OF:" , "IMPORTANT" ) self . _print ( "[%d] Explicitly declared" % len ( x . range_of ) , "IMPORTANT" ) for i in x . range_of : if i . domains : domains = "," . join ( [ y . qname if hasattr ( y , "qname" ) else str ( y ) for y in i . domains ] ) else : domains = "owl:Thing" printInfo ( Style . DIM + domains + Style . RESET_ALL + " => " + Fore . MAGENTA + i . qname + Style . RESET_ALL + " => " + Fore . GREEN + x . qname + Style . RESET_ALL ) # inferred stuff if print_inferred : for _dict in x . range_of_inferred : _class = list ( _dict . items ( ) ) [ 0 ] [ 0 ] _propslist = list ( _dict . items ( ) ) [ 0 ] [ 1 ] if _class . id != x . id and len ( _propslist ) : # print only inferred properties self . _print ( "[%d] Inherited from [%s]" % ( len ( _propslist ) , _class . qname ) , "IMPORTANT" ) for i in _propslist : if i . domains : domains = "," . join ( [ y . qname if hasattr ( y , "qname" ) else str ( y ) for y in i . domains ] ) else : domains = "owl:Thing" printInfo ( Style . DIM + domains + Style . RESET_ALL + " => " + Fore . MAGENTA + i . qname + Style . RESET_ALL + " => " + Fore . GREEN + x . qname + Style . RESET_ALL ) self . _print ( "----------------" ) return