Open robertschubert opened 1 month ago
future feature (as a remark):
in the payloads sent to the EDC there are fields like:
"connectorId": "edc_pr",
"consumerId": "edc_co",
"providerId": "edc_pr",
After this story is finished we want also to parameterize our new dialog (where we specify the consumer EDC-URL) with those values.
Idea: use the field service-access-point.name as value for providerId
This feature orchestrates data resource transfer from the provider's infrastructure into the cunsumer's infrastructure, through interactions with the EDC.
It implements getting resource details, most importantly the contractId
and the serviceAccessPoint
of a data reasource:
MATCH (dataResource:DataResource)
OPTIONAL MATCH (dataResource)-[:instanceOf]-(instantiatedVirtualResource:InstantiatedVirtualResource)
OPTIONAL MATCH (instantiatedVirtualResource)-[:serviceAccessPoint]-(serviceAccessPoint:ServiceAccessPoint)
OPTIONAL MATCH (dataResource)-[:general]-(general:General)
OPTIONAL MATCH (general)-[:data]-(data:Data)
WITH COUNT(*) AS totalCount,
properties(dataResource).name AS name,
properties(dataResource).uri AS uri,
labels(dataResource) AS labels,
CASE WHEN serviceAccessPoint IS NOT NULL THEN
{
name: properties(serviceAccessPoint).name,
protocol: properties(serviceAccessPoint).protocol,
host: properties(serviceAccessPoint).host,
port: properties(serviceAccessPoint).port,
version: properties(serviceAccessPoint).version
}
ELSE
null
END AS serviceAccessPoint,
properties(data).contractId AS contractId
RETURN name, uri, contractId, serviceAccessPoint, labels
Current situation: There is a Button "Kontaktieren oder Kaufen" in the detail page of a resource without any function.
Target situation:
contract-id
and can be obtained from the field<entity-name>/general/data/contractId
<entity-name>.dataResource.instanciatedVirtualResource.serviceAccessPoint
, fieldsprotocol
+://
+host
(+ "management" or "/api/v1/dsp") . The class model is described (here)[https://github.com/GAIA-X4PLC-AAD/gaia-x-compliant-claims-example]edc_pr
in the example payloads representing the provider's participant ID (configured in the EDC) should be replaced with<entity-name>.dataResource.instanciatedVirtualResource.serviceAccessPoint
, fieldname
https://edc-co.gxfs.gx4fm.org/management
.msgedcstorage
uc1-dest
COMPLETED
and display the transfer state underneath the "Kaufen" button. Possible states areSTARTED
,COMPLETED
,TERMINATED
,DEPROVISIONED
,INITIATED
,PROVISIONED
,REQUESTED
,STARTED
.Acceptance criterias:
https://edc-co.gxfs.gx4fm.org/management
,msgedcstorage
anduc1-dest
assetsSelector
when querying a contract) an error is displayed: "Contract has more than one Asset. This is currently not supported. Please choose a contract with only one asset"STARTED
for now since there is a bug in the EDC setting the state toCOMPLETED
If you need help to create an asset I can show you how to do it with the Frontend. There is also a documentation how to create an asset with the REST endpoints in the same link above.