Schema One or more schemas describe the entity model exposed by an OData service. The schema acts as a namespace for elements of the entity model such as entity types, complex types, enumerations and terms. Element edm:Schema The edm:Schema element contains one or more of the following elements: edm:Term Values of the Name attribute MUST be unique across all direct child elements of a schema, with the sole exception of overloads for an action and overloads for a function. The names are local to the schema; they need not be unique within a document. Attribute Namespace A schema is identified by a . All edm:Schema elements MUST have a namespace defined through a Namespace attribute which MUST be unique within the document, and SHOULD be globally unique. A schema cannot span more than one document. The schema’s namespace is combined with the name of elements in the entity model to create unique , so identifiers that are used to name types MUST be unique within a namespace to prevent ambiguity. See for more detail. The Namespace attribute MUST NOT use the reserved values Edm, odata, System, or Transient. Attribute Alias A schema MAY define an alias by providing a value for the Alias attribute. An alias allows nominal types to be qualified with a short string rather than a long namespace. Aliases are document-global, so all and elements within a document MUST specify different values for the attribute. Aliases defined by an element can be used throughout the containing document and are not restricted to the schema that defines them. The Alias attribute MUST NOT use the reserved values Edm, odata, System, or Transient.
Schema One or more schemas describe the entity model exposed by an OData service. The schema acts as a namespace for elements of the entity model such as entity types, complex types, enumerations and terms. Element edm:Schema The edm:Schema element contains one or more of the following elements: edm:Term Values of the Name attribute MUST be unique across all direct child elements of a schema, with the sole exception of overloads for an action and overloads for a function. The names are local to the schema; they need not be unique within a document. Attribute Namespace A schema is identified by a . All edm:Schema elements MUST have a namespace defined through a Namespace attribute which MUST be unique within the document, and SHOULD be globally unique. A schema cannot span more than one document. The schema’s namespace is combined with the name of elements in the entity model to create unique , so identifiers that are used to name types MUST be unique within a namespace to prevent ambiguity. See for more detail. The Namespace attribute MUST NOT use the reserved values Edm, odata, System, or Transient. Attribute Alias A schema MAY define an alias by providing a value for the Alias attribute. An alias allows nominal types to be qualified with a short string rather than a long namespace. Aliases are document-global, so all and elements within a document MUST specify different values for the attribute. Aliases defined by an element can be used throughout the containing document and are not restricted to the schema that defines them. The Alias attribute MUST NOT use the reserved values Edm, odata, System, or Transient.
odata-csdl-xml-v4.01-wd01.docx