Skip to content

Commit

Permalink
update use cases
Browse files Browse the repository at this point in the history
  • Loading branch information
EmidioStani committed Feb 28, 2024
1 parent ad8caac commit 19c03e8
Show file tree
Hide file tree
Showing 27 changed files with 1,673 additions and 956 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## STR-AP 1.0

This is the first version of STR-AP.
5 changes: 5 additions & 0 deletions context/strap.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"@context": {
"ActivityData": "https://w3id.org/str/ActivityData",
"ActivityData.countryOfTheGuests": {
"@container": "@set",
"@id": "https://w3id.org/str/countryOfGuests",
"@type": "@id"
},
Expand Down Expand Up @@ -454,6 +455,10 @@
"@type": "@id"
},
"RegistrationProcedure": "https://w3id.org/str/RegistrationProcedure",
"RegistrationProcedure.appliesTo": {
"@id": "https://w3id.org/str/appliesTo",
"@type": "@id"
},
"RegistrationProcedure.hasCost": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/hasCost",
Expand Down
5 changes: 5 additions & 0 deletions context/strap_en.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"@context": {
"ActivityData": "https://w3id.org/str/ActivityData",
"ActivityData.countryOfTheGuests": {
"@container": "@set",
"@id": "https://w3id.org/str/countryOfGuests",
"@type": "@id"
},
Expand Down Expand Up @@ -454,6 +455,10 @@
"@type": "@id"
},
"RegistrationProcedure": "https://w3id.org/str/RegistrationProcedure",
"RegistrationProcedure.appliesTo": {
"@id": "https://w3id.org/str/appliesTo",
"@type": "@id"
},
"RegistrationProcedure.hasCost": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/hasCost",
Expand Down
Binary file added html/activity_data.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/area.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/listing.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/order.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html/overview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/sequence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions html/sequence.xyz
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
materialdesignicons F064D Hosts
materialdesignicons F02E3 "STR Platforms" as STR
materialdesignicons F01EE "Single Digital Entry Point" as SDEP
// participantgroup #lightblue **Competent Authorities**
// materialdesignicons F01BC Registries
materialdesignicons F0070 "Competent Authorities" as CA
// end
autonumber 1
// registering for registration number
// If necessary, the host requests a registration number through the\nregistry platform operated by the Competent Authorities.
box over Hosts, CA:Use Case 1
Hosts-->CA:Host and unit data
CA-->Hosts:Registration number

// listing unit on str platform
// The host posts their listing on the STR Platform.
box over Hosts, STR:Use Case 2
Hosts-->STR:List unit (with registration number)

// str platform checks if a registration number is required
// The STR Platform obtains a list from the Competent Authorities\nindicating the areas where registration numbers are required.
box over STR, CA:Use Case 3
STR->SDEP: GET: /area
activate SDEP
SDEP->CA: Gets area data
activate CA
CA->SDEP: List of area's where registration is required
deactivate CA
SDEP->STR:200 OK
deactivate SDEP


// str platform checks status of registration number
// The STR Platform informs the CA of a new listing which is subject to the policy based on its adress
box over STR, CA:Use Case 4
STR->STR: publish listing
STR->SDEP: POST: /listing
activate SDEP
SDEP->CA: Listing data (URL, address, registration number, ...)
activate CA
CA->SDEP: Received succesfully message
deactivate CA
SDEP->STR: 202 Accepted
deactivate SDEP


// str platform checks the orders queue
// The STR Platform checks with the SDEP for any outstanding orders in regards to their listings
box over STR, CA:Use Case 5
STR->SDEP: GET: /orders
activate SDEP
SDEP->CA: Gets the list of orders from a queue database
activate CA
CA->SDEP: Orders of listings to be removed (id, reason, ...)
deactivate CA
SDEP->STR: 200 OK
deactivate SDEP
STR-->STR: Delete listing if ordered



// str platform shares data to competent authorities
// The STR Platform provides Competent Authorities with datasets\ncontaining activity data, along with the corresponding registration numbers and URLs.
box over STR, CA:Use Case 6
STR->SDEP:POST: /activity-data

SDEP->CA:Activity Data
Loading

0 comments on commit 19c03e8

Please sign in to comment.