Skip to main content

Open-licensed and free data models to model your digital twins, share data in data spaces or develop smart applications

Project description

Smart Data Models

Smart Data Models

The Smart Data Models is a program lead by 4 organizations with the collaboration of more than 80 and open to collaboration. It provides multisector agile standardized free and open-licensed data models based either on actual use cases or on adopted open standards. The data models describe the entities and their attributes to be used in digital twins deployments, data spaces and other smart applications. The data models are grouped in subjects. Each subject is available at a unique repository at Contributions to existing data models can be done there. New ones are drafted in the incubated repository once filled this form for getting the permissions. This manual helps you with the creation. There is a database of contributors available.

This python package includes all the data models and several functions (listed below) to use them in your developments.

Every data model is open licensed and the list of its attributes and every attribute definition is included. Also, there is a function to check if a key values payload complies with a data model.

If you want to be updated on this package you can join this mailing list (Announcements are sent only when something relevant happens). We love to hear from you at

There are several online tools to manage and to create the data models, generate examples or to adapt to existing ontologies. See tools menu option at the home site.

Currently, there are thirteen domains.

Smart Cities

Smart Agrifood

Smart Water

Smart Energy

Smart Environment

Smart Robotics

Smart Sensoring

Cross sector

Smart Aeronautics

Smart Destination

Smart Health

Smart Manufacturing

Smart Logistics

Functions available include:

1- List all data models. Function list_all_datamodels()

2- List all subjects. Function list_all_subjects()

3- List the data models of a subject. Function datamodels_subject(subject)

4- List description of an attribute. Function description_attribute(subject, datamodel, attribute)

5- List data-type of an attribute. Function datatype_attribute(subject, datamodel, attribute)

6- Give reference model for an attribute. Function model_attribute(subject, datamodel, attribute)

7- Give reference units for an attribute. Function attributes_datamodel(subject, datamodel)

8- List the attributes of a data model. Function attributes_datamodel(subject, datamodel)

9- List the NGSI type (Property, Relationship or Geoproperty) of the attribute. Function ngsi_datatype_attribute(subject, datamodel, attribute)

10- Print a list of data models attributes separated by a separator. Function print_datamodel(subject, datamodel, separator, meta_attributes)

11- Returns the link to the repository of a subject. Function subject_repolink(subject)

12- Returns the links to the repositories of a data model name. Function datamodel_repolink(datamodel)

13- Update the official data model list or the database of attributes from the source. Function update_data()

Pending features (glad to receive contributions to them)

C.- Function to allow submission of improvements (i.e. missing recommended units or model) and comments to the different data models. Currently, you can do it searching for your data model here going to the github repo and making your PR or raising your issues there.

D.- Function to submit a new data model to an incubation repository. Currently, this is done manually incubated repository. By filling this form you are granted to contribute with new data models. For existing data models just see point C

if you want to suggest other functions / needs please let us know at

some example code

from pysmartdatamodels import pysmartdatamodels as sdm

subject = "dataModel.Weather"

dataModel = "WeatherForecast"

attribute = "precipitation"




print(sdm.description_attribute(subject, dataModel, attribute))

print(sdm.datatype_attribute(subject, dataModel, attribute))

print(sdm.model_attribute(subject, dataModel, attribute))

print(sdm.units_attribute(subject, dataModel, attribute))

print(sdm.attributes_datamodel(subject, dataModel))



print(sdm.print_datamodel(subject, dataModel, ",", [ "property", "type", "dataModel", "repoName", "description", "typeNGSI", "modelTags", "format", "units", "model", ]))


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysmartdatamodels-0.5.40.tar.gz (460.6 kB view hashes)

Uploaded Source

Built Distribution

pysmartdatamodels-0.5.40-py3-none-any.whl (485.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page