def semantic(self, collection, parent=None):
if parent is not None:<EOL><INDENT>collections = parent.parents[::-<NUM_LIT:1>] + [parent, collection]<EOL><DEDENT>else:<EOL><INDENT>collections = collection.parents[::-<NUM_LIT:1>] + [collection]<EOL><DEDENT>return filters.slugify("<STR_LIT>".join([item.get_label() for item in collections if item.get_label()]))<EOL>
Generates a SEO friendly string for given collection

        :param collection: Collection object to generate string for
        :param parent: Current collection parent
        :return: SEO/URL Friendly string