Skip to content

feat: provide asset property for CatalogAsset type#5796

Draft
ndr-brt wants to merge 3 commits into
mainfrom
5721-catalog-asset
Draft

feat: provide asset property for CatalogAsset type#5796
ndr-brt wants to merge 3 commits into
mainfrom
5721-catalog-asset

Conversation

@ndr-brt

@ndr-brt ndr-brt commented Jun 4, 2026

Copy link
Copy Markdown
Member

What this PR changes/adds

Remove binding between CatalogAsset and DataAddress, as the later will be removed soon from the Asset entity.
Added dcat:endpointURL and dct:format as mandatory (in V5) properties.
In V4 those properties are not mandatory and a warning will be logged if they are not set correctly

Why it does that

remove DataAddress tangles

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Who will sponsor this feature?

Please @-mention the committer that will sponsor your feature.

Linked Issue(s)

Closes #5721

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt added the enhancement New feature or request label Jun 4, 2026
@ndr-brt ndr-brt force-pushed the 5721-catalog-asset branch 3 times, most recently from 0a417bd to b70b590 Compare June 4, 2026 12:59
@ndr-brt ndr-brt force-pushed the 5721-catalog-asset branch from b70b590 to eea642b Compare June 4, 2026 13:15
}
return ServiceResult.fromFailure(createResult);
});
logWarningWhenCatalogAssetPropertiesAreNotSet(asset);
updatedAsset.onSuccess(a -> observable.invokeForEach(l -> l.updated(a)));
return ServiceResult.from(updatedAsset);
});
logWarningWhenCatalogAssetPropertiesAreNotSet(asset);
Asset %s has no 'endpointURL' property and the DataAddress baseUrl is used instead, please adapt it as the
DataAddress will be removed from Asset in the forthcoming versions"""
.formatted(asset.getId()));
endpointUrl = asset.getDataAddress().getStringProperty(EDC_NAMESPACE + "baseUrl", null);
Asset %s has no 'format' property and the DataAddress type is used instead, please adapt it as the
DataAddress will be removed from Asset in the forthcoming versions"""
.formatted(asset.getId()));
format = Optional.ofNullable(asset.getDataAddress()).map(DataAddress::getType).orElse("");
@ndr-brt ndr-brt force-pushed the 5721-catalog-asset branch from 32a9d73 to 3c3cae7 Compare June 5, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Asset that points to a Catalog shouldn't rely on the DataAddress

2 participants