piertv21 / ditto-wodt-integration

An integration for Ditto things into the Web of Digital Twins paradigm.
0 stars 1 forks source link

Eclipse Ditto WoDT Integration

An integration for Eclipse Ditto that allows a Ditto Thing to be used as a WoDT Digital Twin in a WoDT Platform, implementing the Web of Digital Twins paradigm.

Requirements

In order to use this integration you will need:

Note: some libraries such as "wot-servient" may have to be imported manually.

Configuration

The module is preconfigured to work with a local Eclipse Ditto running in Docker. Find more information on GitHub.

You can change the configuration to your liking by editing resources/config.properties.

You can also specify the URI and port where the module will be exposed.

To integrate a Ditto Thing:

There are two ways to integrate a Ditto Thing::

After creating the Ditto thing you can start the module.

If you need to provide ontology mapping, you will need to indicate the path where it is saved, specifying it among the parameters.

Module instantiation example:

WoDTAdapter woDTAdapter = WoDTAdapter.create(
  "io.eclipseprojects.ditto:ambulance",
  "AmbulanceDTOntology.yaml",
  "http://localhost:5000",
  "bulbHolderPhysicalAssetId"
);

Parameters: