Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets data is not in format "edc :dataAddress" #893

Closed
tuanphampmt opened this issue Dec 1, 2023 · 1 comment
Closed

Assets data is not in format "edc :dataAddress" #893

tuanphampmt opened this issue Dec 1, 2023 · 1 comment
Labels
enhancement New feature or request triage all new issues awaiting classification

Comments

@tuanphampmt
Copy link

When I request to api /management/v3/assets/request, the returned assets do not contain "edc:"
{ "@id": "urn:uuid:9f53d26f-853e-4315-bd34-3bee13d0feb9", "@type": "Asset", "properties": { "description": "IRS EDC Test Asset", "id": "urn:uuid:9f53d26f-853e-4315-bd34-3bee13d0feb9" }, "dataAddress": { "@type": "DataAddress", "proxyPath": "true", "type": "HttpData", "proxyMethod": "false", "proxyQueryParams": "false", "proxyBody": "false", "baseUrl": "http://irs-provider-backend:8080/data/urn:uuid:8f4da0a6-b5da-4a25-af5a-4b888c141b55" }, "@context": { "@vocab": "https://w3id.org/edc/v0.0.1/ns/", "edc": "https://w3id.org/edc/v0.0.1/ns/", "tx": "https://w3id.org/tractusx/v0.0.1/ns/", "odrl": "http://www.w3.org/ns/odrl/2/" } }
I want the returned data to contain "edc:"
For example:
{ "@id": "urn:uuid:9f53d26f-853e-4315-bd34-3bee13d0feb9", "@type": "Asset", "edc:properties": { "edc:description": "IRS EDC Test Asset", "edc:id": "urn:uuid:9f53d26f-853e-4315-bd34-3bee13d0feb9" }, "dataAddress": { "@type": "DataAddress", "edc:proxyPath": "true", "edc:type": "HttpData", "edc:proxyMethod": "false", "edc:proxyQueryParams": "false", "edc:proxyBody": "false", "edc:baseUrl": "http://irs-provider-backend:8080/data/urn:uuid:8f4da0a6-b5da-4a25-af5a-4b888c141b55" }, "@context": { "@vocab": "https://w3id.org/edc/v0.0.1/ns/", "edc": "https://w3id.org/edc/v0.0.1/ns/", "tx": "https://w3id.org/tractusx/v0.0.1/ns/", "odrl": "http://www.w3.org/ns/odrl/2/" } }

@tuanphampmt tuanphampmt added enhancement New feature or request triage all new issues awaiting classification labels Dec 1, 2023
@github-project-automation github-project-automation bot moved this to Open in EDC Board Dec 1, 2023
@ndr-brt
Copy link
Contributor

ndr-brt commented Dec 1, 2023

This was done by purpose, because the @vocab configuration tells that every property that's not namespaced will be expanded with the EDC IRL. For details: eclipse-edc/Connector#3525

Temporarily there's a way to rollback to the old behavior by setting edc.jsonld.vocab.disable to true (details in the PR), but it will be removed in more or less 4 months, so it's better to adapt to the new behavior.

Generally speaking, the advice is to always expand json-ld documents before processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage all new issues awaiting classification
Projects
Status: Done
Development

No branches or pull requests

2 participants