# Meta-schema.json

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "../Documentation/Implementation/data_model/Json/",
    "title": "Meta",
    "description": "Meta schema",
    "dataTypes": null,
    "type": "object",
    "properties": {
        "title": {
            "type": "string",
            "description": "Data Management Plan Title"
        },
        "deliverableNumber": {
            "type": "string",
            "description": "Number of the deliverable to which the DMP is related"
        },
        "version": {
            "type": "string",
            "description": "DMP version",
            "enum": [
                "First version",
                "Mid term version",
                "Final version"
            ]
        },
        "description": {
            "type": "string",
            "description": "Description of the scope of the management plan"
        },
        "dmpKeyword": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Fields of science and technology from the OECD classification"
        },
        "dmpLanguage": {
            "type": "string",
            "length": "3",
            "description": "DMP language (French or english)"
        },
        "contact": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Person",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Person responsible for implementing and monitoring the data management plan"
        },
        "creationDate": {
            "type": "string",
            "format": "date",
            "description": "DMP creation date"
        },
        "lastModifiedDate": {
            "type": "string",
            "format": "date",
            "description": "DMP last modification date"
        },
        "dmpId": {
            "type": "string",
            "description": "Persistent identifier assigned to the data management plan"
        },
        "idType": {
            "type": "string",
            "description": "Identification system"
        },
        "license": {
            "type": "object",
            "$comment": "class=License",
            "properties": {
                "dbid": {
                    "type": "number"
                }
            },
            "required": [
                "dbid"
            ],
            "description": "License applied to the content of the Data Management Plan for sharing and reuse"
        },
        "relatedDoc": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=ResourceReference",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "References to any documents related to the data management plan (e.g. publications)"
        },
        "associatedDmp": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=ResourceReference",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Other data management plans related to the project or the entity's activities"
        }
    },
    "required": [
        "title",
        "dmpLanguage",
        "contact",
        "creationDate",
        "lastModifiedDate"
    ]
}