# DistributionStandard-template.json

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "../Documentation/Implementation/data_model/Json/",
    "title": "DistributionStandard",
    "description": "DistributionStandard template",
    "dataTypes": null,
    "type": "object",
    "class": "DistributionStandard",
    "properties": {
        "fileName": {
            "type": "string",
            "description": "File name",
            "label@fr_FR": "Nom du fichier",
            "label@en_GB": "Filename",
            "tooltip": null,
            "form_label@fr_FR": "Nom du fichier",
            "form_label@en_GB": "Filename"
        },
        "description": {
            "type": "string",
            "description": "A clear, concise and accurate description of the dataset file",
            "inputType": "textarea",
            "label@fr_FR": "Description",
            "label@en_GB": "Description",
            "tooltip@fr_FR": "Résumé décrivant le fichier et ses variables",
            "tooltip@en_GB": "Summary describing the file and its variables",
            "form_label@fr_FR": "Description",
            "form_label@en_GB": "Description"
        },
        "releaseDate": {
            "type": "string",
            "format": "date",
            "description": "Publication date of the distribution",
            "label@fr_FR": "Date de diffusion",
            "label@en_GB": "Release date",
            "tooltip@fr_FR": "Date à laquelle les données sont disponibles",
            "tooltip@en_GB": "Date when data is available",
            "form_label@fr_FR": "Date de diffusion",
            "form_label@en_GB": "Release date"
        },
        "dataAccess": {
            "type": "string",
            "description": "Data access status (open, restricted, closed)",
            "inputType": "dropdown",
            "label@fr_FR": "Mode d'accès",
            "label@en_GB": "DataAccess",
            "registries": [
                "DataAccess"
            ],
            "registryCategory": "Access",
            "tooltip": null,
            "form_label@fr_FR": "Mode d'accès",
            "form_label@en_GB": "DataAccess"
        },
        "fileFormat": {
            "type": "string",
            "description": "File format (recommended MIME type)",
            "inputType": "dropdown",
            "label@fr_FR": "Format du fichier",
            "label@en_GB": "File format",
            "registries": [
                "MediaType"
            ],
            "registryCategory": "MediaType",
            "overridable": true,
            "tooltip@fr_FR": "Format sous forme MIME type",
            "tooltip@en_GB": "Format expressed as MIME type",
            "example@fr_FR": "text/csv, text/markdown, video/JPEG, application/json,... ",
            "example@en_GB": "text/csv, text/markdown, video/JPEG, application/json,... ",
            "form_label@fr_FR": "Format du fichier",
            "form_label@en_GB": "File format"
        },
        "application": {
            "type": "string",
            "description": "Name of the software enabling data reading and reuse",
            "label@fr_FR": "Application",
            "label@en_GB": "Application",
            "tooltip@fr_FR": "Application permettant de lire le fichier",
            "tooltip@en_GB": "Application to read the data",
            "form_label@fr_FR": "Application",
            "form_label@en_GB": "Application"
        },
        "fileVolume": {
            "type": "number",
            "description": "The size of a file in  bytes",
            "label@fr_FR": "Volume du fichier",
            "label@en_GB": "File volume",
            "tooltip": null,
            "form_label@fr_FR": "Volume du fichier",
            "form_label@en_GB": "File volume"
        },
        "volumeUnit": {
            "type": "string",
            "description": "Size unit",
            "inputType": "dropdown",
            "label@fr_FR": "Unité",
            "label@en_GB": "Unit",
            "registries": [
                "VolumeUnit"
            ],
            "registryCategory": "VolumeUnit",
            "overridable": true,
            "tooltip": null,
            "form_label@fr_FR": "Unité",
            "form_label@en_GB": "Unit"
        },
        "availableUntil": {
            "type": "string",
            "format": "date",
            "description": "Date until which the data remain available at this hosting service (repository or data center, etc.)",
            "label@fr_FR": "Disponible jusqu'à",
            "label@en_GB": "Available until",
            "tooltip": null,
            "form_label@fr_FR": "Disponible jusqu'à",
            "form_label@en_GB": "Available until"
        },
        "accessUrl": {
            "type": "string",
            "format": "url",
            "description": "URL for accessing the data file resource (landing page, SPARQL endpoint, feed)",
            "label@fr_FR": "URL d'accès",
            "label@en_GB": "Access URL",
            "tooltip@fr_FR": "URL d'un service ou d'un lieu qui peut donner accès à cette distribution, généralement par le biais d'un formulaire Web, d'une requête ou d'un appel API.",
            "tooltip@en_GB": "URL of a service or location that can provide access to this distribution, typically through a Web form, query or API cal",
            "form_label@fr_FR": "URL d'accès",
            "form_label@en_GB": "Access URL"
        },
        "downloadUrl": {
            "type": "string",
            "format": "url",
            "description": "Download URL of the file in a specified format",
            "label@fr_FR": "URL de téléchargement",
            "label@en_GB": "Download URL",
            "tooltip@fr_FR": "URL d'un fichier téléchargeable dans un format donné",
            "tooltip@en_GB": "URL of the downloadable file in a given format",
            "form_label@fr_FR": "URL de téléchargement",
            "form_label@en_GB": "Download URL"
        },
        "license": {
            "type": "object",
            "class": "License",
            "properties": {
                "dbid": {
                    "type": "number"
                }
            },
            "template_name": "LicenseStandard",
            "required": [
                "dbid"
            ],
            "description": "License attached to the data",
            "label@fr_FR": "Licence",
            "label@en_GB": "License",
            "inputType": "dropdown",
            "registries": [
                "DataLicenses"
            ],
            "registryCategory": "License",
            "overridable": true,
            "tooltip@fr_FR": "Choisir une licence pour définir les conditions de réutilisation des données",
            "tooltip@en_GB": "Choose a license to define the conditions for reuse of the data",
            "form_label@fr_FR": "Licence",
            "form_label@en_GB": "License"
        },
        "licenseStartDate": {
            "type": "string",
            "format": "date",
            "description": "The license start date corresponds to the publication or release date of the data (dct:issued in DCAT). A future date indicates the presence of an embargo period.",
            "label@fr_FR": "Date de début de la licence",
            "label@en_GB": "License start date",
            "tooltip@fr_FR": "Date à laquelle la license s'applique. Si fixée dans le futur, elle indique un embargo",
            "tooltip@en_GB": "Date when license is applied. If date set in the future, it indicates embargo period",
            "form_label@fr_FR": "Date de début de la licence",
            "form_label@en_GB": "License start date"
        }
    },
    "required": [
        "fileName",
        "releaseDate",
        "dataAccess",
        "fileFormat",
        "fileVolume",
        "availableUntil",
        "accessUrl",
        "license",
        "licenseStartDate"
    ],
    "to_string": [
        "$.fileName",
        " (",
        "$.fileFormat",
        ")"
    ]
}