Create data model from your google spreadsheet

If you want to create a basic version of a data model, you can use a copy of this spreadsheet as template . This spreadsheet is always available at https://bit.ly/schema_sheet short name.

The blue cells are the ones ready for the general information for creating your data model. You cannot add or remove cells, columns or rows, (without changing the script).

You need to fill the blue cells for these parameters:

  • Subject: Official Subject where this data model should be allocated. (Check the official list)
  • DataModel: Official data model name (Only one word i.e. WeatherForecast, no _).
  • Title: use to be the name data model name with spaces. (i.e. Weather Forecast)
  • Global Description: General text description of the data model. (2 lines is nice)
  • Property name: Exactly this, the name of the property. Use camelCase. It would be good to check here whether this property already exists (you can copy and paste). Use those you need and leave one empty after those you filled. Properties below an empty property name are ignored.
  • NGSI type: (Property, Relationship or Geoproperty)
  • Data type: Type of data in the property. (array and object are not fully implemented)
  • Other restrictions: If you are unfamiliar with JSON schema leave it empty.
  • Description: Official description of the property.

Call:

Parameters: (Mandatories)

  • sheetUrl: The url of the spreadsheet (if not it takes default

Example: https://smartdatamodels.org/extra/generator_schema_from_any_sheet_v2.0.php?sheetUrl=https://docs.google.com/spreadsheets/d/1TwXCBI-oedpf9RYpYlLNZnz5Pxl6o6kxHXKINRdJi5c

Output: A json schema based on the properties defined in the database. this is an alpha version so errors are not managed.

NOTE 1: Do not write out of the blue cells (it will be ignored). And do not add or remove cells. The converter script looks for these precise locations in blue.

NOTE 2: Your spreadsheet has to be made public. (anyone with the link), otherwise, the script will not be able to retrieve your data.

 

    This form generates a json schema based on the properties of a google sheet (Based on this template)
     


    By using this form you agree with the storage and handling of your data by this website.


    After clicking it will appear a message confirming the submission

    It will take a while to redirect to the feedback on a specific page

    Thanks for being patient

    Comments are closed.