Examples of code associated to every data model

In order to make easier the use of the Smart Data Models now in every repository in GitHub there is a new directory named ‘code’ that contains for the python code using the pysmartdatamodels  for the architecture in the image below.

The idea is a code that fills several attributes of the data model with suitable values and insert them into a context broker installed by default.

The code for installing an instance of the context broker is also included as comments in the header of the code

The code is generated automatically (like most of what we do)

You can see an example of this code here

https://github.com/smart-data-models/dataModel.Transportation/blob/master/EVChargingStation/code/code_for_using_dataModel.Transportation_EVChargingStation.py

Of course there could be many things that could be improved and extended. Let us know in this mail account or in the usual support channels.

In the future if there are interest we could create also in other languages. Please let us know if you have interest on this possibility.

New version of pysmartdatamodels python package 0.7.1

The changes in this new version are:

– Including new function validate_dcat_ap_distribution_sdm
– Updating the comments of most of the functions
– Some code improvements by jilin.he@fiware.org
– Included a new directory with templates for the creation of a data model. Not used yet but next version they will be used for the creation of local data models. Available at my_subject directory
– Fixing the missing dependency of ruamel.yaml package

It also has an updated version of all data models (but you can get this also by running the function sdm.update_data() with the old versions)

The source code for the new version 0.7.1 is here at the data-models repository

 

 

New subject Gaia-X

Thanks to the collaboration in the Data Spaces Business Alliance (DSBA) there is a new subject to compile the mapping of the semantic assets of Gaia-X to be used in NGSI-LD systems. It allows the storage of the information related to assets according to the definitions of Gaia-X. The first group of models is coming from the outcomes of the Service characteristics group.

It is located in the domain Cross sector and the subject is dataModel.Gaia-X

Data models will be soon added.

 

Major release of PortCall data model at MarineTransport subject

A new major version of the PortCall data model in the subject of Marine Transport has been published.

Additions includes a more precise timing attributes and alignment with maritime regulations.

In example

Thanks to the adopters and contributors for the valuable contribution
Nyk Aphrodite p2 approaching Port of Rotterdam, Holland 09-Apr-2007

New data models I4submodelElement operation and I4SubmodelElementProperty In AAS subject

Two new data models have been published in the subject dataModel.AAS (Asset administration shell) in the Smart manufacturing domain.

The data model was created thanks to the project Corosect.

  • I4SubmodelElementOperation. Based on IDTA-01001-3-0, describes a generic RAMI4.0 SubmodelElement representing an OPERATION (Command) of a referenced Asset Administration Shell

  • I4SubmodelElementProperty. Based on IDTA-01001-3-0, maps a generic RAMI4.0 SubmodelElement representing a PROPERTY or attribute of a referenced AAS. RAMI4.0 Standard

New data models I4AAS and I4Asset

Two new data models has been published in the subject dataModel.AAS (Asset administration shell) in the Smart Manufacturing domain.

The data models were created thanks to the project Corosect.

  • I4AAS. Based on IDTA-01001-3-0, describes a generic Asset Administration Shell – AAS – tree, component of the RAMI4.0

  • I4Asset. Based on IDTA-01001-3-0, defines the Asset -instance- linked to a given AAS a generic Asset Administration Shell – AAS – component of the RAMI4.0

 

New subject Asset Administration Shell

We have created a new subject, aligned with Asset Administration Shell, dataModel.AAS in the Smart Manufacturing domain.

The Corosect project is using NGSI-LD for using AAS assets coming from the document Specification of the Asset Administration Shell. Part 1: Metamodel.

Data models will be soon added.

Thanks to the contributors coming from these organizations

 

pysmartdatamodels updated to 0.7

The new version does not provide new functionalities but an indication, including drafted code, about what is missing or in progress to the package can grow according to your needs.

The source code for the new version 0.7.0 is here at the data-models repository

There are 4 new functions drafted with the headings inputs and outputs and some recommendations for development.

1) validate_payload(datamodel, subject, payload)
2) create_QR_code(datamodel, subject)
3) include_local_datamodel(schema, subject, datamodel, contributors (optional), adopters (optional), notes(optional))
4) submit_datamodel(subject, datamodel, contributors (optional), adopters (optional), notes(optional), example_payload, notes_context, public_repository, credentials)

we will be glad to receive code or questions implementing this and we will include the authorship