Pascal Dihé edited this page May 24, 2016 · 11 revisions

Open Data Registration Tool JSON API

The Open Data Registration Tool accepts a single query parameter representations that has to contain an encoded JSON array of the following format:

        "name": "name",
        "description": "description",
        "contentlocation": "",
        "contenttype": "contenttype",
        "type": "type",
        "function": "function",
        "protocol": "protocol",
        "uploadmessage": "uploadmessage"

A JSON array representations array submitted to the Open Data Registration Tool must contain at least one element. Only the values of contentlocation, contenttype and function of the first array element are shown in the Open Data Registration Tool.


The representation JSON object is a description of the “physical” representation of a dataset. This is in line with the specification of SWITCH-ON's Standard Information Model for Meta-Data (SIM): A resource (dataset) may have different representations. For example, a dataset may be available in different formats (WMS, WSF, downloadable SHP File) or an aggregated representation of the data for enabling preview and search functionality may exist.

The representation JSON object defines the following properties:

  • name name of the representation (mandatory)
  • description description of the representation (optional)
  • contentlocation URI (link) of the representation (mandatory)
  • contenttype content type (MIME Type) of the representation (mandatory)
  • type type of the representation (mandatory)
  • function function of the contentlocation link (mandatory)
  • protocol protocol of the contentlocation link (mandatory)
  • uploadmessage processing instructions evaluated by the SIP Backend when resource meta-data is uploaded (optional)

Allowed Tags

Apart from name, description, contentlocation and uploadmessage, the value of the properties must comply to predefined "tags" defined in the SIM. The allowed values for contenttype, type, function and protocol are listed below.


MIME Type of the representation (open group which several predefined tags).

name description
application/adrg ADRG (Digitilized Raster Graphics)
application/agr AGR (ESRI ArcGIS Ascii Grid)
application/aib AIB (ARC/INFO Coverages)
application/dem DEM (Digital Elevation Model)
application/dlg DLF (Digital Line Graph)
application/drg DRG (Digital raster graphic)
application/gml+xml GML (Geography Markup Language)
application/grb GRIB (GRIdded Binary)
application/gzip TAR.GZ (Compressed tar file)
application/json JSON (Java Script Object Notation)
application/ntf NTF (National Imagery Transmission Format)
application/octet-stream unknown or multiple formats
application/pdf PDF (Portable Document Format)
application/sdf SDF (Spatial Data File)
application/shp SHP (ESRI Shapefile)
application/vnd.geo+json GEOJSON (Geo JavaScript Object Notation)
application/ KML (Keyhole Markup Language)
application/ MDB (MS Access File)
application/ XLS (MS Excel File)
application/wkb WKB (Well-known binary)
application/wkt WKT (Well-known text)
application/x-hdf5 HDF5 (hierachical data format)
application/xhtml+xml XHTML (Extensible HyperText Markup Language)
application/xml XML (eXtensible Markup Language)
application/x-netcdf NETCDF (Network Common Data Form)
application/x-rar-compressed RAR (Compredded Roshal ARchive)
application/x-tar TAR (Composite tar file)
application/zip ZIP (zip archive file format)
image/ecw ECW (Enhanced Compressed Wavelet)
image/geotiff GEOTIFF (Tagged Image File Format)
image/gif GIF (Graphigs Interchange Format)
image/jp2 JP2 (JPEG2000)
image/jpeg JPEG (Joint Photographic Experts Group)
image/png PNG (Portable Network Graphics)
image/tiff TIFF (Tagged Image File Format)
image/vnd.dwg DWG (AutoCAD DWG)
image/vnd.dxf DXF (AutoCAD DXF)
image/x-mrsid MRSID (Multi-Resolution raster format)
text/csv CSV (Comma Separated Values)
text/html HTML (Hypertext Markup Language)
text/plain TXT (raw, ascii text)
text/rtf RTF (Rich Text Format)
text/tab-separated-values TAB (Tab Separated Values)

SIP internal type of the representation of the resource (fixed group).

name description
aggregated data The representation holds aggregated data of the resource
original data The representation holds the original data of the resource
preview data The representation holds preview data of the resource, e.g. an image or a specific WMS getMap request

In general original data should be used. However, the representation's type property is also evaluated by BYOD to show WMS or TMS (WMTS) Layers on the Map Component. If such a WMS or TMS layer is available (Example), an additional representation of the type aggregated data can be added to the JSON array. In this case, the following property values must be used:

#####function Function that can be performed following the contentLocation link to the resource representation (fixed group, ISO standard codelist).

name description
application link points to an application (e.g. downloadable exe or Java Webstart rich internet application) which can be used to get the resource
download The link will get the dataset. The function of the link is to download a file.
information link provides information about resource
link to order data The link value is the URL of a web application requiring user interaction to order/request access to the dataset.
service link is service endpoint

#####protocol Protocol of the service that can be accessed at the contentLocation of the resource representation (open group with several predefined tags from standard ISO codelists).

name description
OGC:CSW OGC Catalogue Service for the Web
OGC:GML OGC Geography Markup Language
OGC:SOS OGC Sensor Observation Service
OGC:WCS OGC Web Coverage Service
OGC:WFS-1.0.0-http-get-capabilities OGC Web Feature Service, a WFS getcapabilities operation
OGC:WFS-1.0.0-http-get-feature OGC Web Feature Service, a WFS getFeature operation
OGC:WMS-1.1.1-http-get-capabilities OGC Web Map Service
OGC:WMS-1.1.1-http-get-map OGC Web Map Service, a WMS getMap operation
OGC:WPS OGC Web Processing Service
OpenSearch1.1 OpenSearch template
OpenSearch1.1:Description OpenSearch description document
UNIDATA:CDM Common Data Model Remote Web Service
UNIDATA:CdmRemote Common Data Model index subsetting
UNIDATA:CdmrFeature Common Data Model coordinate subsetting
UNIDATA:NCSS NetCDF Subset Service
WWW:DOWNLOAD-1.0-ftp--download File for download through FTP
WWW:DOWNLOAD-1.0-http--download Web Address (URL), this is a download URL
WWW:FORM Web form
WWW:LINK-1.0-http--link Web Address (URL), should be used when no further information about the resource is available
WWW:RIA Rich Internet Application (JavaScript/HTML5 application)

####Processing Instructions (uploadmessage) The optional property uploadmessage may contain a processing instruction that is evaluated by the SIP Backend when the resource meta-data is uploaded to SIP Meta-Data Repository. Please refer to the documentation of Processing Instructions for more information and examples.


The following example JSON array defines 4 representations:

  • the main representation (MDB downland)
  • an alternate download representation (ZIP File)
  • another alternate service representation (WFS)
  • an 'aggregated' representation that is used as map layer in BYOD (TMS)
        "name": "ECRINS_lake MS Access file",
        "type": "original data",
        "function": "download",
        "protocol": "WWW:DOWNLOAD-1.0-http--download",
        "contentlocation": "",
        "contenttype": "application/"
    }, {
        "name": "ECRINS_lake Spatialite file",
        "type": "original data",
        "function": "download",
        "protocol": "WWW:DOWNLOAD-1.0-http--download",
        "contentlocation": "",
        "contenttype": "application/zip"
    }, {
        "name": "ECRINS_lake WFS",
        "type": "original data",
        "function": "service",
        "protocol": "OGC:WFS-1.0.0-http-get-feature",
        "contentlocation": "",
        "contenttype": "application/xml"
    }, {
        "name": "ECRINS:ECRINS_lakes Tileserver",
        "description": "ECRINS:ECRINS_lakes Tileserver",
        "type": "aggregated data",
        "function": "service",
        "protocol": "WWW:TILESERVER",
        "contentlocation": "{z}/{x}/{y}.png",
        "contenttype": "image/png"

The JSON array must be encoded with encodeURIComponent before it can be passed via the representations query parameter to the Open Data Registration Tool


Open Data Registration Tool URL with representations query parameter:

Resource with 4 representations in BYOD:

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.