Working towards the next version of the SWIM Supporting Material
Working towards the next version of the SWIM Supporting Material
Requirement
Guidance
A namespace is defined as "A set of elements in which each element has a name unique within that set. The same name may be associated with elements in different sets."
Guidance on namespaces are available at various locations such as https://en.wikipedia.org/wiki/XML_namespace.
The requirement talks about "a dedicated namespace". Dedicated is understood to mean that the namespace is unique and allocated to a particular set of names. This normally means that it is managed/governed by an organisation.
It is acceptable to have more than one namespace in an information definition. This reflects that some information definitions are large and spread over multiple files. In addition, many are organised around the idea of a "core" model and "extensions" - each of which may have its own namespace.
In many cases the namespace will be a URL that is stable over a long time. Ideally it should reference to an actual schema file but this is not always so.
The specification caters for the fact that information definitions are often contained in service descriptions. When no namespace is given for the information definition itself, it can be derived from the service. In effect, the service name acts as the namespace.
Verification Support
Completeness
Check that:
[ ] The information definition declares a dedicated namespace for its concepts.
Examples
XML Schema
The example below shows how the namespace can be embedded into an XML schema.
A complete example is available at: complete example.
xmlns:don="http://www.swim.donlon-airport.com/swim-ops/gateway" targetNamespace="http://www.swim.donlon-airport.com/swim-ops/gateway"
Spreadsheet
The spreadsheet available on the Example information definition page provides an example of where no dedicated namespace is provided. The name of the service (Donlon TOBT Setting Service) acts as the namespace in this case.
This example can be used by all non-machine readable formats for information definitions and service descriptions.