parameters: (self,
                   uri,
                   rdftype=None,
                   namespaces=None,
                   ext_model=False,
                   is_Bnode=False,
                   pref_title="qname",
                   pref_lang="en",
                   )
docstring: Init ontology object. Load the graph in memory, then setup all necessary attributes.
  
          2017-07-23
          ext_model: flag to mark entities that are instantiated but are not part
          of the main model (eg xsd:String range values)
          is_Bnode: flag to identify Bnodes
docstring_summary: Init ontology object. Load the graph in memory, then setup all necessary attributes.
docstring_tokens: Init ontology object . Load the graph in memory then setup all necessary attributes .
function: def __init__(self,
                   uri,
                   rdftype=None,
                   namespaces=None,
                   ext_model=False,
                   is_Bnode=False,
                   pref_title="qname",
                   pref_lang="en",
                   ):
          """
          Init ontology object. Load the graph in memory, then setup all necessary attributes.
  
          2017-07-23
          ext_model: flag to mark entities that are instantiated but are not part
          of the main model (eg xsd:String range values)
          is_Bnode: flag to identify Bnodes
          """
          self.id = next(self._ids)
  
          self.uri = uri  # rdflib.Uriref
  
          self.locale = inferURILocalSymbol(self.uri)[0]
          self.ext_model = ext_model
          self.is_Bnode = is_Bnode
          self._pref_title = pref_title
          self._pref_lang = pref_lang
  
          self.rdftype = rdftype
          self.triples = None
          self.rdflib_graph = rdflib.Graph()
          self.namespaces = namespaces
          self.all_shapes = []
  
          self.qname = self._build_qname()
          self.rdftype_qname = self._build_qname(rdftype)
  
          # PS default slug gets overridden later for typed entities
          self.slug = "entity-" + slugify(self.qname)
  
          self._children = []
          self._parents = []
          self._instance_of = []
function_tokens: def __init__ ( self , uri , rdftype = None , namespaces = None , ext_model = False , is_Bnode = False , pref_title = "qname" , pref_lang = "en" , ) : self . id = next ( self . _ids ) self . uri = uri # rdflib.Uriref self . locale = inferURILocalSymbol ( self . uri ) [ 0 ] self . ext_model = ext_model self . is_Bnode = is_Bnode self . _pref_title = pref_title self . _pref_lang = pref_lang self . rdftype = rdftype self . triples = None self . rdflib_graph = rdflib . Graph ( ) self . namespaces = namespaces self . all_shapes = [ ] self . qname = self . _build_qname ( ) self . rdftype_qname = self . _build_qname ( rdftype ) # PS default slug gets overridden later for typed entities self . slug = "entity-" + slugify ( self . qname ) self . _children = [ ] self . _parents = [ ] self . _instance_of = [ ]