# Metadata

Metadata can be associated with spatial data sources in JMap. It can include information such as the person who produced the data, the date it was updated, a description, etc. Users can view this information for the corresponding layers in JMap applications. Metadata can be entered directly into JMap Admin using preset templates or it can be taken from an external metadata management system. Refer to the [Metadata Templates](#metadata-templates) section for more information on creating templates.

To access the metadata settings of a spatial data source, click on **Metadata** in the details section of a spatial data source. The following options are available:

<table data-header-hidden><thead><tr><th width="174.5"></th><th></th></tr></thead><tbody><tr><td><strong>Metadata</strong></td><td> </td></tr><tr><td>Type</td><td>3 options are possible:<br><strong>None</strong>: No metadata is associated with this data source.<br><strong>External</strong>: The metadata comes from a metadata management system that is outside of JMap and accessed through a URL. The URL must be entered in the URL field below.<br><strong>Template</strong>: The metadata is entered directly in this section using the selected template.</td></tr><tr><td>URL</td><td>If the type of metadata is external, this setting defines the URL to be opened in order to view the metadata associated with this spatial data source.</td></tr><tr><td>Template</td><td><p>If the type of metadata is template, select the template to be used for this data source. </p><p>The metadata entry form for this template displays. </p><p>Enter the metadata in the various fields.</p></td></tr></tbody></table>

Layers whose data originates from spatial data sources with metadata will automatically inherit this metadata. Metadata can be viewed by users of JMap Web and JMap Pro applications.

## Metadata templates

JMap Server allows you to define metadata templates to document spatial data sources directly in JMap Admin. Once the template has been defined, you can associate it to certain data sources and enter all the information, which users can then easily view in JMap’s applications. If you already use a metadata management system that can be accessed in a browser, you can also create a direct link between certain layers and this system.

You can create as many metadata templates as you want.

The metadata template management section can be accessed by clicking on **Metadata templates** in the **Spatial data** section.

## Creating a metadata template

Click on **Create** to create a new template. The interface shows the following options.

<table data-header-hidden><thead><tr><th width="166.5"></th><th></th></tr></thead><tbody><tr><td><strong>Metadata template</strong></td><td></td></tr><tr><td>Name</td><td>Enter a name for this template. Template names must be unique.</td></tr><tr><td>Default language</td><td>Among the languages available for the metadata template, choose the default language that will be used when the requested language is unavailable or when translations are missing.</td></tr><tr><td>Available languages</td><td><p>Select one or more languages that will be supported for this metadata template. </p><p>All text elements in the template's configuration (section and field names, field values) will have to be translated into each supported language. </p><p>You must select at least one language.</p></td></tr><tr><td>Section name</td><td><p>You can define one or more metadata sections. </p><p>Enter a name for the current section. </p><p>Click on <img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2FmBd4py5mIaf5ZEstMErv%2F2017-02-03_11-49-01.png?alt=media&#x26;token=b5bb32a0-c226-4ef2-bbe8-2abd2a01f1ef" alt="img"> to add a new section. </p><p>Click on <img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2F0p3zKkdRmnWKeH0ORn76%2F2017-02-20_14-05-38.png?alt=media&#x26;token=5b2e038b-206e-49aa-bb1a-a8d369a0a063" alt="img"> to delete a section.</p></td></tr><tr><td>Label</td><td><p>Enter a label for the field. </p><p>The label text will be displayed in the metadata entry window and in the consultation interface.</p><p>Click on <img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2FmBd4py5mIaf5ZEstMErv%2F2017-02-03_11-49-01.png?alt=media&#x26;token=b5bb32a0-c226-4ef2-bbe8-2abd2a01f1ef" alt="img"> to add a new field. </p><p>Click on <img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2F0p3zKkdRmnWKeH0ORn76%2F2017-02-20_14-05-38.png?alt=media&#x26;token=5b2e038b-206e-49aa-bb1a-a8d369a0a063" alt="img"> to delete a field.</p></td></tr><tr><td>Type</td><td>Select the type of field. The following types are available: <strong>TEXT</strong>: Alphanumeric data entry field on a single line. <strong>TEXTAREA</strong>: Data entry field spanning multiple lines to allow for longer text.</td></tr><tr><td>Mouseover</td><td><p>By selecting this option, the field value will be displayed in the mouseover bubble when a layer is pointed in the layer bar of JMap Server applications. </p><p>This bubble presents a summary of a layer's metadata.</p></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.k2geospatial.com/en2/administrator/jmap-server-administrator-manual/spatial-data-sources/configuring-spatial-data-sources/metadata.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
