A schema describes the structure of a data set through the definition of types and their properties. Schemas can be imported from multiple types of data sources, such as databases, XML schema files, or even a Shapefile. They can also be created directly in hale connect using the built-in modelling tools.
To create a new schema using the modelling tools, follow this workflow logged in as a Theme Manager or Superuser:
Go to “Schemas” on the main toolbar
Go to “Create new schema” at the bottom of the schema list
Select creation method. In the first step, select «Create based on an existing schema». Click «Continue»
Define schema. Next, define the schema you want to use. The schema definition is determined by the creation method.
Add information. Provide the name, namespace, shorthand, author, version and description of your schema. When you are finished, click «Continue»
Add type. Provide the name and description of the feature type. Click «Continue»
Create relationship. Optionally, you can decide that your new feature type should be related to an existing feature type. If you want to associate the new feature type with an existing one, click the dashed box corresponding to the association type that you want to use. There are four type extension patterns to choose from:
You then need to pick the actual type to associate to – first, select a schema, then, select the concrete feature type.
If you are not sure which type extension pattern to apply, click «I need a suggestion». Click on the » button to select a schema which contains a feature type that is related to your new feature type. Next, click on the » button to select the related feature type.
Click the chevron next to each question and provide an answer. A suggestion based on your answers is provided. If multiple options exist, a green bar under the applicable type extension patterns will appear. The most complete status bar represents the most suitable choice. Click on the type extension pattern to select it.
When you are finished, click «Continue».
Define properties. Click the «+» button to add an additional property to your feature type. Click Name to enter a name. Click Configure property to edit property types and constraints. Use the description field to provide any relevant information. When you are finished, click «Continue»
Confirm creation. Click «Create» to save the schema