WordPress File wp-includes/taxonomy.php

get_object_taxonomies()

Returns the names or objects of the taxonomies which are registered for the requested object or object type, such as a post object or post type name.

get_tax_sql()

Given a taxonomy query, generates SQL to be appended to a main query.