def _parse_properties(self):
        """Nodes have properties, which are facts like the
        name, description, url etc.
        Loop through each of them and set it as attributes on this company so
        that we can make calls like
            company.name
            person.description
        """
        props_dict = self.data.get('properties', {})
        for prop_name in self.KNOWN_PROPERTIES:
            if prop_name in props_dict:
                setattr(self, prop_name, props_dict.get(prop_name))
            else:
                setattr(self, prop_name, None)
def _parse_properties ( self ) : props_dict = self . data . get ( 'properties' , { } ) for prop_name in self . KNOWN_PROPERTIES : if prop_name in props_dict : setattr ( self , prop_name , props_dict . get ( prop_name ) ) else : setattr ( self , prop_name , None )
Nodes have properties, which are facts like the
        name, description, url etc.
        Loop through each of them and set it as attributes on this company so
        that we can make calls like
            company.name
            person.description