Skip to content

thomasrutger/FederatedCatalog

 
 

Repository files navigation

EDC Federated Catalog

documentation discord latest version license
build snapshot build nightly build


The Federated Catalog (FC) represents the aggregated catalogs of multiple participants in a dataspace. To achieve that, the FC employs a set of crawlers, that periodically scrape the dataspace requesting the catalog from each participant in a list of participants and consolidates them in a local cache.

Keeping a locally cached version of every participant's catalog makes catalog queries more responsive and robust, and it can cause a reduction in network load.

The Federated Catalog is based on EDC components for core functionality, specifically those of the connector for extension loading, runtime bootstrap, configuration, API handling etc., while adding specific functionality using the EDC extensibility mechanism.

This repository contains all components needed to build and run a standalone version of the Federated Catalog.

Documentation

Base documentation can be found on the documentation website.
Developer documentation can be found under docs/developer.

Quick start

A basic launcher configured with in-memory stores (i.e. no persistent storage) can be found here. Note that this runtime also contains a mocked identity service, for demo purposes. There is another variant called catalog-dcp which uses DCP as identity system and thus requires a properly configured DCP infrastructure to be set up. There are two ways of running Federated Catalog:

  1. As native Java process
  2. Inside a Docker image

Build the *.jar files

./gradlew shadowJar
# or
./gradlew -p launchers shadowJar

Start Federated Catalog as Java process

Once the jar files are built, Federated Catalog can be launched using this shell command:

java -Dweb.http.catalog.path="/api/catalog" \
     -Dweb.http.catalog.port=8181 \
     -Dweb.http.path="/api" \
     -Dweb.http.port=8080 \
     -jar launchers/catalog-mocked/build/libs/fc-mocked.jar

this will expose the Catalog API at http://localhost:8181/api/catalog. More information about Federated Catalog's APIs can be found here.

Create the Docker image

docker build -t fc ./launchers/catalog-mocked

Start the Federated Catalog

docker run  --rm --name fc \
    -e "WEB_HTTP_PATH=/api" \
    -e "WEB_HTTP_PORT=8080" \
    -e "WEB_HTTP_CATALOG_PORT=8181" \
    -e "WEB_HTTP_CATALOG_PATH=/api/catalog" \
    fc:latest

Architectural concepts of the Federated Catalog

Key architectural concepts are outlined here.

API overview of Federated Catalog

Federated Catalog exposes several APIs that are described in more detail here.

Future work

  • Generalization of the Crawler class
  • Additional informational endpoints to the Catalog API

References

Contributing

See how to contribute.

About

FederatedCatalog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.3%
  • Dockerfile 0.7%