Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

LuisRickert/SD-Hackathon-shapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SD-Hackathon-shapes

This repository is used to track the progress of the SelfDescription Team during the Gaia-X GXFS Hackathon (22.05-23.05.2023). In this repository we want to collect our learnings and provide guidance to follow our steps.

Shapes

In the directory shapes there are some shapes we defiend for the Hackathon. They are derived from the previouse Hackahton in Berlin. We used these shapes to generate Self Descriptions.

For the Hackathon we developed the following roles that need their own self descriptions.

  • Dispatcher: Description of a member that uses the Vehicle Position Service.

  • Supervisor: Federation member that supervises the Vehicle that provides the data for the VehiclePositionService.

  • VehiclePositionService: Description of the Vehicle Position Service.

  • Service Owner: Descprition of a federation member that provides the service.

Self Descriptions

We used the Self-Description Wizard to create the Self-Descriptions based on the defined shapes above. The resulting Self-Descriptions had to be transformed such that the signer tool accepts those. This transformation was done with a script that we created located at ./scripts/make_signable.py.

We used this signer to sign the self-description.

Self-Description Wizard

We run the Self-Description Wizard on our local machine with the provided docker compose file located in the Self-Description-Wizard-Frontend repo. We had to build the images for the frontend and api. To do so run mvn clean install inside the root of the api repository and yarn build within the implementation dir.

Note:

  • use the tag option "-t" for both builds and modify the docker-compose file to use those images.

Self-Description Signer

The singer is one java file. The script searches in the resource folder for a self-description named sd.jsonld. To use this signer you have to set the target location of the script within the main.java .

Steps

  1. Start the Self-Description Wizard navigate to upload shape and add each shape an fill the empty fields.
  2. run the make_signable.pyscript by passing the created Self-Descriptions
  3. Sign each Self-Description
  4. add the .rdf file to the FC together with the shapes

Result

  • In the postman dir you find a postman collection to interact with the federated catalog
  • The example dir has the following structure:
example
├── self-descriptions
│   ├── Dispatcher-instance.json
│   ├── PositionService-instance.json
│   ├── ServiceOwner-instance.json
│   └── Supervisor-instance.json
├── signable-self-descriptions
│   ├── signable_Dispatcher-instance.json
│   ├── signable_PositionService-instance.json
│   ├── signable_ServiceOwner-instance.json
│   └── signable_Supervisor-instance.json
└── signed-self-descriptions
   ├── signed_signable_Dispatcher-instance.json
   ├── signed_signable_PositionService-instance.json
   ├── signed_signable_ServiceOwner-instance.json
   └── signed_signable_Supervisor-instance.json
  • self-descriptions contains the results from the self descriptions creation wizard

  • signabel-self-descriptions contains the result after running the make_signable.pyscript

  • signed-self-descriptions contains the signed self descriptions

  • as for now the federated catalogue does not accept these Self-Descriptions due to malformed credential subject.

    • we assume this is depening on the super class LegalPerson
    • we assume this, because the during the Berlin-Hackathon the used super class was "Service Offering". In this context the Self-Descriptions created and signed the same way were accepted.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages