#NEWLINE# def _ExpandURNComponents( self , urn , unique_urns ) : #NEWLINE# #INDENT# 'This expands URNs.\n\n    This method breaks the urn into all the urns from its path components and\n    adds them to the set unique_urns.\n\n    Args:\n      urn: An RDFURN.\n      unique_urns: A set to add the components of the urn to.\n    ' #NEWLINE# x = ROOT_URN #NEWLINE# for component in rdfvalue . RDFURN ( urn ) . Path ( ) . split ( '/' ) : #NEWLINE# #INDENT# if urn : #NEWLINE# #INDENT# x = x . Add ( component ) #NEWLINE# unique_urns . add ( x )