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

chore: fixes after upstream changes on catalog transformers #260

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/federated-catalog-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies {
implementation(libs.edc.core.connector)
implementation(libs.edc.lib.query)
implementation(libs.edc.dsp.transform.catalog)
implementation(libs.edc.dsp.transform.catalog.lib)
implementation(libs.edc.controlplane.transform)
implementation(libs.edc.lib.transform)
implementation(libs.edc.dsp.api.configuration)
Expand All @@ -47,6 +48,7 @@ dependencies {
// required for integration test
testFixturesImplementation(libs.edc.core.connector)
testFixturesImplementation(libs.edc.dsp.transform.catalog)
testFixturesImplementation(libs.edc.dsp.transform.catalog.lib)
testFixturesImplementation(libs.edc.json.ld.lib)
testFixturesImplementation(libs.edc.controlplane.transform)
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import static org.eclipse.edc.jsonld.spi.PropertyAndTypeNames.DCAT_DATASET_ATTRIBUTE;
import static org.eclipse.edc.jsonld.spi.PropertyAndTypeNames.DCAT_DATA_SERVICE_ATTRIBUTE;
import static org.eclipse.edc.jsonld.spi.PropertyAndTypeNames.DCAT_DISTRIBUTION_TYPE;
import static org.eclipse.edc.jsonld.spi.PropertyAndTypeNames.DSPACE_PROPERTY_PARTICIPANT_ID;
import static org.eclipse.edc.jsonld.spi.PropertyAndTypeNames.DSPACE_PROPERTY_PARTICIPANT_ID_IRI;
import static org.eclipse.edc.jsonld.spi.TypeUtil.nodeType;

/**
Expand Down Expand Up @@ -67,7 +67,7 @@ private void transformProperties(String key, JsonValue value, Catalog.Builder bu
}
} else if (DCAT_DATA_SERVICE_ATTRIBUTE.equalsIgnoreCase(key)) {
transformArrayOrObject(value, DataService.class, builder::dataService, context);
} else if (DSPACE_PROPERTY_PARTICIPANT_ID.equalsIgnoreCase(key)) {
} else if (DSPACE_PROPERTY_PARTICIPANT_ID_IRI.equalsIgnoreCase(key)) {
builder.participantId(transformString(value, context));
} else if (DCAT_DISTRIBUTION_TYPE.equalsIgnoreCase(key)) {
transformArrayOrObject(value, Distribution.class, builder::distribution, context);
Expand Down
1 change: 1 addition & 0 deletions extensions/api/federated-catalog-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dependencies {
testImplementation(libs.edc.iam.mock)
testImplementation(libs.edc.json.ld.lib)
testImplementation(libs.edc.dsp.transform.catalog)
testImplementation(libs.edc.dsp.transform.catalog.lib)
testImplementation(testFixtures(libs.edc.core.jersey))
testImplementation(libs.edc.lib.transform)
testImplementation(libs.edc.lib.query)
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ edc-lib-jerseyproviders = { module = "org.eclipse.edc:jersey-providers-lib", ver
edc-dsp-api-configuration = { module = "org.eclipse.edc:dsp-http-api-configuration", version.ref = "edc" }
edc-dsp-all = { module = "org.eclipse.edc:dsp", version.ref = "edc" }
edc-dsp-transform-catalog = { module = "org.eclipse.edc:dsp-catalog-transform", version.ref = "edc" }
edc-dsp-transform-catalog-lib = { module = "org.eclipse.edc:dsp-catalog-transform-lib", version.ref = "edc" }
edc-controlplane-transform = { module = "org.eclipse.edc:control-plane-transform", version.ref = "edc" }

# third-party desp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dependencies {
testImplementation(libs.awaitility)
testImplementation(libs.edc.api.management)
testImplementation(libs.edc.dsp.transform.catalog)
testImplementation(libs.edc.dsp.transform.catalog.lib)
testImplementation(libs.edc.junit)
testImplementation(libs.edc.json.ld.lib)
testImplementation(libs.jackson.jsr310)
Expand Down
Loading