This document describes the current VocabularyHub APIs exposed by the data_processing microservice and its integration with the other platform microservices:
Validationfile_manager
VocabularyHub in this service includes:
- resource ingestion and integration flows
- metadata update and versioned metadata edit
- resource retrieval and deletion
- controlled vocabularies import, listing, retrieval, deletion, and auto-import
Base URL (default local):
http://127.0.0.1:5000/data-processing/v1
Prefix:
/data-processing/v1/VocabularyHub
| Method | Path | Purpose |
|---|---|---|
| POST | /VocabularyHub/create_resource |
Ingest and integrate a semantic resource |
| PUT | /VocabularyHub/update_resource |
Update metadata of an existing resource |
| POST | /VocabularyHub/edit_metadata |
Create a new version by applying a metadata patch |
| GET | /VocabularyHub |
List resources (paginated, with optional filters) |
| GET | /VocabularyHub/{resource_id} |
Get one resource by UUID |
| GET | /VocabularyHub/versions/by-name?resource_name=... |
List all versions for a resource name |
| DELETE | /VocabularyHub/{resource_id} |
Delete resource metadata by id |
Notes:
POST /edit_metadatais copy-on-write versioning: the original resource is preserved and a new version is created.DELETE /{resource_id}can return conflict when referential integrity rules are violated.
Primary prefix:
/data-processing/v1/ControlledVocabularies
Compatibility prefix:
/data-processing/v1/VocabularyHub/ControlledVocabularies
| Method | Path | Purpose |
|---|---|---|
| POST | /ControlledVocabularies/import |
Import a vocabulary from download_url or uploaded file |
| POST | /ControlledVocabularies/auto-import |
Run on-demand auto-import from configured resources |
| GET | /ControlledVocabularies |
List vocabularies (paginated) |
| GET | /ControlledVocabularies/{vocab_name} |
List vocabulary entries (paginated, localized with lang) |
| DELETE | /ControlledVocabularies/{vocab_name} |
Delete a vocabulary graph |
| Method | Path | Purpose |
|---|---|---|
| GET | /health-check |
Service health endpoint |
VocabularyHub orchestration in data_processing relies on the two related microservices below.
Default host:
http://127.0.0.1:5200/validator/v1
Used endpoints:
/FileValidation/file_validation/CodeValidation/code_validation/SHACLValidation/SHACL_validation/DataIngestionValidation/data_ingestion_validation/DataIntegrationValidation/data_integration_validation
Usage highlights:
- validates files and metadata before integration
- validates controlled vocabulary codes and SHACL constraints
- checks duplicate/existing resources before persistence
Default host:
http://127.0.0.1:5100/file-manager/v1
Used endpoints:
/Downloader/download/Uploader/upload
Usage highlights:
- uploads resource files used by ingestion flows
- downloads remote files required for processing
You can run the full VocabularyHub stack locally with Docker Compose using docker-compose.ghcr.yml.
Included services:
micro-data_processingmicro-file_managermicro-validationopensearchopensearch-dashboardgraphdb
docker compose -f docker-compose.ghcr.yml up -ddocker compose -f docker-compose.ghcr.yml ps- Data Processing API:
http://localhost:5000 - File Manager API:
http://localhost:5100 - Validation API:
http://localhost:5200 - OpenSearch API:
http://localhost:9200 - OpenSearch Dashboards:
http://localhost:5601 - GraphDB Workbench:
http://localhost:7200
micro-data_processing stores data in a GraphDB repository named catalog.
If it does not exist, requests that persist data will fail.
In GraphDB Workbench (http://localhost:7200):
- Open Setup -> Repositories.
- Click Create new repository.
- Set repository ID to
catalog(label can also becatalog). - Save the repository.
By default, the compose file now uses local container hostnames:
- OpenSearch default:
http://opensearch:9200 - GraphDB repositories default:
http://graphdb:7200/repositories/
If you use an external GraphDB instance, make sure the catalog repository exists there as well.
If you want to use external instances (for example IONOS), set these variables before starting:
$env:DEMO_OPENSEARCH_URL = "http://<your-opensearch-host>:9200"
$env:DEMO_GRAPHDB_REPOSITORIES_URL = "http://<your-graphdb-host>:7200/repositories/"
docker compose -f docker-compose.ghcr.yml up -ddocker compose -f docker-compose.ghcr.yml downdocker compose -f docker-compose.ghcr.yml down -vWhen running data_processing, API docs are available at:
/docs/redoc
README.mddocs/README.mddocs/architecture.mddocs/data_processing_swagger.md