def load_from_rdf_string(self, rdf_str):
        """Initialize given an RDF string representing the hierarchy."

        Parameters
        ----------
        rdf_str : str
            An RDF string.
        """
        self.graph = rdflib.Graph()
        self.graph.parse(data=rdf_str, format='nt')
        self.initialize()
def load_from_rdf_string ( self , rdf_str ) : self . graph = rdflib . Graph ( ) self . graph . parse ( data = rdf_str , format = 'nt' ) self . initialize ( )
Initialize given an RDF string representing the hierarchy."

        Parameters
        ----------
        rdf_str : str
            An RDF string.