You can rename data flows and library nodes from the Directory. Select a document and choose Rename from the menu in the Details panel. See Directory user interface for more details about how to find the Details panel.
You will be prompted to enter a new name for the document. The name must be unique within the folder (i.e. unique within My Documents or Public Documents).