This disclosure pertains to the interaction between query expressions and metadata. Metadata, for example provided by one or more schemas, can supply information over a domain to be queried and/or navigated. This metadata can be applied to the query expression, or vice versa, to return information about the domain and/or the query expression.