def get_edge_attrs(source_id, targe_id, node_label, edge_label, attrs_var):
    """Query for retreiving edge's attributes."""
    query = (
        "MATCH (n:{} {{ id: '{}' }})-[rel:{}]->(m:{} {{ id: '{}' }}) \n".
        format(node_label, source_id, edge_label, node_label, targe_id) +
        """RETURN properties(rel) as {}
""".format(attrs_var))
    return query
