Skip to content

Commit

Permalink
fix: change transform context from dsp-api to dsp-api:v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Oct 2, 2024
1 parent f2cf1cb commit 7db5e2e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import static org.eclipse.edc.catalog.cache.FederatedCatalogDefaultServicesExtension.NUM_CRAWLER_SETTING;
import static org.eclipse.edc.catalog.spi.CacheSettings.DEFAULT_NUMBER_OF_CRAWLERS;
import static org.eclipse.edc.catalog.spi.CatalogConstants.DATASPACE_PROTOCOL;
import static org.eclipse.edc.protocol.dsp.spi.type.DspConstants.DSP_TRANSFORMER_CONTEXT_V_08;
import static org.eclipse.edc.spi.constants.CoreConstants.JSON_LD;

@Extension(value = FederatedCatalogCacheExtension.NAME)
Expand Down Expand Up @@ -146,7 +147,7 @@ public CrawlerActionRegistry createNodeQueryAdapterRegistry(ServiceExtensionCont
nodeQueryAdapterRegistry = new CrawlerActionRegistryImpl();
// catalog queries via IDS multipart and DSP are supported by default
var mapper = typeManager.getMapper(JSON_LD);
nodeQueryAdapterRegistry.register(DATASPACE_PROTOCOL, new DspCatalogRequestAction(dispatcherRegistry, context.getMonitor(), mapper, registry.forContext("dsp-api"), jsonLdService));
nodeQueryAdapterRegistry.register(DATASPACE_PROTOCOL, new DspCatalogRequestAction(dispatcherRegistry, context.getMonitor(), mapper, registry.forContext(DSP_TRANSFORMER_CONTEXT_V_08), jsonLdService));
}
return nodeQueryAdapterRegistry;
}
Expand Down

0 comments on commit 7db5e2e

Please sign in to comment.