Newer
Older
dmpopidor / config / schemas / main / DataCollection-schema.json
@Quentin Sonrel Quentin Sonrel on 7 Sep 2020 2 KB Small fix for examples
{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "../Documentation/Implementation/data_model/Json/",
    "title": "Data collection",
    "description": "Data collection schema",
    "type": "object",
    "properties": {
        "title": {
            "label@fr_FR": "Titre",
            "label@en_GB": "Title",
            "type": "string",
            "pattern": "(.)*((@en)|(@fr))",
            "description": "Title for a data collection (step)",
            "toolTip@fr_FR": "Saisissez le titre de la collection",
            "toolTip@en_GB": "Enter collection title",
            "example": "Foobar",
            "default": "Titre de la collection"
        },
        "description": {
            "label": "Description",
            "type": "string",
            "pattern": "(.)*((@en)|(@fr))",
            "description": "description of the data collection methodology",
            "toolTip@fr_FR": "Saisissez la description de la collection",
            "toolTip@en_GB": "Enter the collection description"
        },
        "dataNature": {
            "label": "Data Nature",
            "type": "string",
            "format": "select",
            "values": ["Observation", "Experimental data", "Simulation", "Model", "other"]
        },
        "acquisition": {
            "label": "Acquisition",
            "type": "object",
            "description": "Internal identifier pointing to a technicalResourceUsage JSON document",
            "classname": "technical_resource_usage",
            "properties": {
                "dbid": {
                    "type": "number"
                }
            },
            "required": ["dbid"]
        },
        "methodsUrl": {
            "label": "Methods URL",
            "type": "string",
            "format": "uri",
            "description": "Urls of methods",
            "toolTip@fr_FR": "Saisissez une URL de méthode",
            "toolTip@en_GB": "Enter a method URL"
        },
        "staffMember": {
            "label": "Staff Member",
            "type": "array",
            "items": {
                "type": "object",
                "classname": "staff_member",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": ["dbid"]
            }
        },
        "cost": {
            "label": "Cost",
            "type": "array",
            "items": {
                "type": "object",
                "classname": "cost",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": ["dbid"]
            }
        }
        
    },
    "required": [
            "description",
            "dataNature"
        ]
}