1. A computer-implemented method, the method comprising: receiving, by a computer system, a request for multiple data elements that are specialized for use in generating an electronic document for a particular context, the request indicating at least one context value that specifies the particular context, each of the multiple data elements configured for use in semantically identifying information portions in the electronic document or other electronic documents of the particular context, the multiple data elements to be valid in the particular context; identifying, by the computer system, the multiple data elements as being specialized for the particular context from a repository of data elements, wherein the identification of the multiple data elements includes evaluating at least one logical rule that defines a data element of the multiple data elements as being valid for the at least one context value; and generating, by the computer system, an output of the multiple data elements so as to allow a user to generate the electronic document for the particular context using at least some of the multiple data elements, the output being in response to the request for the multiple data elements.