Draft a data model

Click on the image of the spreadsheet and it will popup. Fill the blue cells and click the button under the image, you’ll get a drafted json schema documented according to the Smart data models below.
This is an alpha version. Currently there is no option for including array items or object properties. They have to be manually added to these data types.

Fill the blue cells


After clicking the button the page will refresh and you have to copy the generated schema below the spreadheet

SCHEMA

draft schema generated at 2021-02-23 17:31:25.081608+01:00

{
    "$schema": "http://json-schema.org/schema#",
    "$schemaVersion": "0.0",
    "$id": "https://smart-data-models.github.io/dataModel.Subject/NameOfDataModeld/schema.json",
    "title": " Smart Data Models - Name of the data model",
    "description": "Couple of lines of general description.",
    "type": "object",
    "allOf": [
        {
            "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
        },
        {
            "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons"
        },
        {
            "properties": {
                "type": {
                    "type": "string",
                    "format": "uri",
                    "description": "Property. Model:'https://schema.org/URL'. It has to be NameOfDataModel"
                },
                "propertyName1": {
                    "type": "string",
                    "description": "Property. Model:'https://schema.org/Text'. A property which is a simple string"
                },
                "propertyName2": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Property. Model:'https://schema.org/DateTime'. A property which is a string with the format date time"
                },
                "propertyName3": {
                    "type": "string",
                    "format": "uri",
                    "description": "Property. Model:'https://schema.org/URL'. A property which is a string with the format a a uri (url general)"
                },
                "propertyName4": {
                    "type": "number",
                    "description": "Property. Model:'https://schema.org/Number'. A property which is a number "
                },
                "propertyName5": {
                    "type": "boolean",
                    "description": "Property. Model:'https://schema.org/Boolean'. A property which is a boolean (true or false)"
                },
                "propertyName6": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Property. Model:'https://schema.org/DateTime'. A property which is composed of a list of values (not included)"
                },
                "propertyName7": {
                    "type": "object",
                    "description": "Property. A property which has other subpropertes (not included)",
                    "properties": {}
                },
                "propertyName8": {
                    "type": "string",
                    "format": "uri",
                    "description": "Relationship. Model:'https://schema.org/URL'. A relationship with other entities"
                },
                "propertyName9": {
                    "$ref": "http://geojson.org/schema/Geometry.json"
                }
            }
        }
    ]
}

Comments are closed.