Skip to content

i-Asset/asset-repository

Repository files navigation

asset-repository

Asset Administration Shell Repository is the development environment for the i-Twin Project.

Getting started

Build Dependencies and Install to Local Maven Repository

The asset-repository depends on Java-Models of the AAS. As long as they are not available from Maven Central, they need to be built and installed locally.

Step 1 (optional)

If a new RDF-Model is available, it is possible to generate your own (Java-)models from RDF. Usually the latest version of the required Java-Model will be available in the repo aas4j (see below)

# to be done in a separate folder
$ git clone git@github.com:i-Asset/aas4j-model-generator
$ cd aas4j-model-generator
$ git checkout feature/update-to-3.0.RC02
$ mvn clean package -P i-Asset

Step 2 checkout existing java model and install to local maven repository

# to be done in a separate folder
$ git clone git@github.com:i-Asset/aas4j
$ mvn clean install -DskipTests

Build and run the asset-repository service

The service depends on a running MongoDB instance, which has two configuration values:

  • REPOSITORY_SERVICE_MONGODB_URL, e.g. mongodb://root:example@localhost:27017
  • REPOSITORY_SERVICE_MONGODB_NAME, e.g. asset
# this repository
$ git clone git@github.com:i-Asset/asset-repository
$ cd asset-repository
$ git checkout development
$ mvn clean install -DskipTests
# run app (mongodb config required!)
$ cd asset-repository-service
$ mvn spring-boot:run

Build and run the asset-connector

The connector depends on a running asset repository and a messaging system, which can be configured in the application.properties of the asset connector

# asset-connector/src/main/resources/application.properties
repository.baseUri=https://iasset.sensornet.salzburgresearch.at/repository-service/
connector.network.id=
connector.network.name=SRFG Lab System
connector.network.broker.hosts=il061.salzburgresearch.at:9092,il062.salzburgresearch.at:9092,il063.salzburgresearch.at:9092
connector.network.broker.type=KAFKA
# run the connector
$ cd ../asset-connector
$ mvn spring-boot:run

About

Asset Administration Shell Repository

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages