For: developer, steward
Digital Tools Hub integration guide
Status: draft for review. This guide is written for developers at LIST and for partner tools. It describes phase 1 of a proposed connection between this catalogue and the LIST Digital Tools Hub. D1.3 says SAU and LIST will assess the options, so nothing here is final. Open questions are at the end. Please answer them in your feedback.
The catalogue is a pilot. The registers workbook maintained by SAU remains the system of record. The catalogue helps the Hub discover resources. It does not grant permission to use any data, and the Hub never receives data URLs for non-public records (D1.3 §4.6).
At a glance
| What | Endpoint | Who can call it |
|---|---|---|
| Public catalogue, paged | GET /catalog.ttl, GET /catalog.jsonld with ?page= and ?modified_since= |
Anyone. Open, public records only. |
| One public record | GET /dataset/<name>.jsonld, .ttl |
Anyone, for public records |
| Consortium catalogue, paged | GET /hub/catalog.ttl, .jsonld, .rdf with ?page= and ?modified_since= |
Allow-listed service accounts only |
| ID and status list | GET /hub/ids.json |
Allow-listed service accounts only |
| Persistent URI | GET /id/dataset/<ID>, GET /id/record/<ID> |
Same visibility as the rest of the portal |
| Catalogue card | GET /hub-card.yaml |
Anyone |
| Record API | /api/3/action/package_search, package_show |
By the caller's permissions |
Base URL: https://catalog.data.nextlogic-project.eu.
Identifiers
URI scheme
Every record has a persistent URI built from its framework ID. The ID never changes.
https://catalog.data.nextlogic-project.eu/id/dataset/MH-WRO-OUT-001
A request for this URI answers with HTTP 303 and a redirect to the HTML page (/dataset/<name>), Turtle (.ttl), JSON-LD (.jsonld) or RDF/XML (.rdf) according to the Accept header. It follows the same visibility rules as the rest of the portal: a record you may not see answers 404. The catalogue record of a dataset has the URI /id/record/<ID> and resolves the same way. The ID formats are in Publishing:
- Source ID:
<Solution>-<City>-<number>-S<number> - Output ID:
<Solution>-<City>-OUT-<number>
Four things that are easy to confuse
| Term | What it is | Stable? | Where you see it |
|---|---|---|---|
| Record ID | The framework ID of one catalogue record (Source ID or Output ID). | Yes, for ever | URI path, adms:identifier |
| Resource ID | In D1.3, a stable identifier of the underlying dataset or service, for example one the provider assigned. Several Source IDs can point at the same one (D1.3 §5.2.7). Do not confuse it with the CKAN resource UUID below. | Yes, where it exists | An alternate identifier on the record (draft) |
| Version | The version of the data described by the record. It can change while the Record ID stays. | No | dcat:version |
| Access endpoint | The place where the data are actually obtained: a file, an API, or an MDS offer. | No | dcat:accessURL or dcat:downloadURL on a distribution |
Inside CKAN, each file or link on a record is also called a "resource" and has a UUID. In DCAT it becomes a dcat:Distribution. That UUID is not the D1.3 Resource ID.
Authentication
- Preferred: a CKAN API token in the
Authorizationheader. Send the raw token, with noBearerprefix.
curl -s -H "Authorization: $HUB_TOKEN" "$BASE/hub/ids.json"
- Optional: HTTP Basic with user
list-huband the same token as the password, accepted only on/hub/*. The user name must belong to the token and be on the allow-list.
curl -s -u "list-hub:$HUB_TOKEN" "$BASE/hub/ids.json"
Use one method only. Never put the token in a URL. SAU gives the token to LIST through a secure channel. It expires after 365 days and can be rotated on request. Whether the front proxy forwards the Authorization header is verified at deployment.
Calling a /hub/* URL with no valid token returns 401 (with WWW-Authenticate: Basic). A valid token of an account that is not allow-listed returns 403. The allow-list is the setting ckanext.nextlogic.hub_users (default list-hub); catalogue administrators are also admitted.
What the Hub can see
| Record | Public /catalog |
/hub/catalog |
|---|---|---|
| Open and public | Full description, with data links | Description only. Data links removed; a published MDS offer keeps its details |
| Controlled, metadata visibility consortium | Not shown | Description only |
| Controlled or Sensitive, visibility organisation | Not shown | Not shown |
| To Be Determined | Not shown | Not shown |
| Withdrawn | Still listed, with adms:status WITHDRAWN, if it is public |
Still listed, with adms:status WITHDRAWN, if it is visible |
On /hub/catalog every distribution has no data URL and no dcat:downloadURL. Its dcat:accessURL is the record page in the catalogue (/dataset/<name>), which is also the dataset's dcat:landingPage. Ask for access through the dataset's dcat:contactPoint, which falls back to the Data Steward mailbox. Only an allow-listed set of metadata fields is exported. There is no DataStore access and no proxy. Calling package_show or datastore_search on a consortium record as list-hub returns 403.
MDS offer URLs, asset IDs, connector endpoints and the derived access services are removed from /hub/catalog unless the record is public and its sensitivity class is allow-listed in ckanext.nextlogic.hub_mds_details. The default is open only, because those offers are public in /catalog.* anyway. A private record never exposes connector details. The offer link is always the MDS Portal page built from participant ID, asset ID and environment, never the resource URL. For Controlled data only the request-access link remains.
Detect changes
Use three mechanisms together.
- Snapshot. Page through the whole catalogue from time to time, for example weekly. Compare by URI and by
dct:modified. - Increment. In between, call
?modified_since=<UTC timestamp>to fetch only changed records. - Reconcile. Call
/hub/ids.jsonoften. It lists every record visible to the Hub in one unpaged response, with its URI,modifiedtime, status and visibility. A URI you hold that is missing from the list has lost visibility. Mark it so. A URI with statuswithdrawnis a tombstone.
Timestamps. Write modified_since in UTC with a trailing Z: 2026-11-24T00:00:00Z. An offset works only when URL-encoded (%2B01:00); an unencoded + arrives as a space and the public /catalog.* answers with an error. The filter compares with the record's metadata_modified, which is also its dct:modified. Store the start time of each run and use it next time, minus a few minutes of overlap.
Withdrawn. Withdrawing an output sets its Release Status to Withdrawn and records the date and reason. The record stays active, so the URI keeps resolving. In DCAT it carries adms:status <http://publications.europa.eu/resource/authority/dataset-status/WITHDRAWN>, plus the provisional nlx:withdrawnDate and nlx:withdrawnReason. Deleting a record is limited to catalogue administrators, so withdrawal is the normal event you will see.
Webhooks are planned for phase 2 (see below). In phase 1, poll.
/hub/ids.json is a JSON array, newest first:
[
{"uri": "https://catalog.data.nextlogic-project.eu/id/dataset/MH-WRO-OUT-002",
"framework_id": "MH-WRO-OUT-002",
"modified": "2026-11-20T10:15:00.123456Z",
"status": "available",
"visibility": "consortium"}
]
uri: the persistent URI, the same as thedcat:Datasetsubject.framework_id: the Source or Output ID.modified:metadata_modifiedin UTC.status: the Release Status (in-preparation,ready-for-release,available,withdrawn), oractivefor records without one (sources).visibility:publicorconsortium.
Metadata profile
The export is DCAT-AP 3 plus extensions. ckanext-dcat 2.4.5 has no GeoDCAT-AP or mobilityDCAT-AP profile, so the catalogue adds these terms itself:
- the CRS as
dct:conformsTo <http://www.opengis.net/def/crs/EPSG/0/NNNN>(dataset and distribution), and the resource type asdct:type <http://inspire.ec.europa.eu/metadata-codelist/ResourceType/dataset>; dcat:recordwith adcat:CatalogRecord(/id/record/<ID>,foaf:primaryTopic,dct:issued,dct:modified);mobilitydcatap:mobilityTheme(namespacehttps://w3id.org/mobilitydcat-ap#) with conceptshttps://w3id.org/mobilitydcat-ap/mobility-theme/<slug>, for example.../freight-and-logistics;dct:accessRightsfrom the EU access-right table:PUBLIC(Open and open access),RESTRICTED(Controlled or any other access model) orNON_PUBLIC(Sensitive, To Be Determined, project internal);dct:accrualPeriodicityfrom the EU frequency table: real-time and near-real-timeUPDATE_CONT, hourlyHOURLY, dailyDAILY, periodicOTHER, historical/staticNEVER;adms:statusfrom the EU dataset-status table:DEVELOP(in preparation, ready for release),WITHDRAWN;- the sensitivity class as the provisional
nlx:sensitivityClass(namespacehttps://catalog.data.nextlogic-project.eu/ns#); adms:identifier(framework ID,skos:notation) anddcat:version;- access services on distributions.
MDS offers
A distribution that points to a Mobility Data Space offer looks like this:
dcat:accessURLis the offer in the MDS Portal. There is nodcat:downloadURL.dct:identifieris the MDS asset ID.- A
dcat:accessService(only for offers with MDS status published) has the connector asdcat:endpointURL,dct:conformsTo <https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/>(Dataspace Protocol 2025-1, provisional), the participant ID asdct:identifier, anddcat:servesDatasetset to the record's persistent URI.
Contracts, approvals and the data path stay in MDS. The catalogue adds no contract logic.
The catalogue card
GET /hub-card.yaml returns a short YAML description of the catalogue: what it is, its endpoints, its profile and how to authenticate. It is a static draft. The fields will be adjusted to LIST's card schema.
# excerpt; fields not final
card_version: 0.1-draft
name: NEXTLOGIC Data Catalogue
base_url: https://catalog.data.nextlogic-project.eu
metadata:
profile: DCAT-AP 3.0
persistent_uri_pattern: https://catalog.data.nextlogic-project.eu/id/dataset/{framework_id}
endpoints:
public_catalog: {url: .../catalog.{ttl,jsonld,rdf}, access: public}
consortium_catalog: {url: .../hub/catalog.{ttl,jsonld,rdf}, access: allow-listed service accounts}
ids: {url: .../hub/ids.json, access: allow-listed service accounts}
authentication:
primary: CKAN API token in the Authorization header (raw token, no "Bearer")
alternative: HTTP Basic <service-user>:<api-token>, only on /hub/*
Copy-paste examples
export BASE=https://catalog.data.nextlogic-project.eu
# Public catalogue, first page, Turtle
curl -s "$BASE/catalog.ttl?page=1" -H "User-Agent: HubHarvester/0.1 (+https://example.org/about)"
# Changes since a time
curl -s "$BASE/catalog.jsonld?modified_since=2026-11-24T00:00:00Z"
# Consortium catalogue
curl -s -H "Authorization: $HUB_TOKEN" "$BASE/hub/catalog.jsonld"
# Resolve a persistent URI
curl -sI -H "Accept: text/turtle" "$BASE/id/dataset/MH-WRO-OUT-001"
import os, time, requests
from rdflib import Graph
from rdflib.namespace import DCAT, RDF
BASE = "https://catalog.data.nextlogic-project.eu"
s = requests.Session()
s.headers.update({
"User-Agent": "HubHarvester/0.1 (+https://example.org/about)",
"Authorization": os.environ["HUB_TOKEN"],
})
def harvest(path="/hub/catalog.ttl", modified_since=None):
page = 1
while True:
params = {"page": page}
if modified_since:
params["modified_since"] = modified_since # UTC, ends with Z
r = s.get(BASE + path, params=params, timeout=60)
if r.status_code == 404:
break
r.raise_for_status()
g = Graph().parse(data=r.text, format="turtle")
datasets = set(g.subjects(RDF.type, DCAT.Dataset))
if not datasets:
break
for d in datasets:
yield d, g
page += 1
time.sleep(1)
seen = {str(d) for d, _ in harvest()}
ids = s.get(BASE + "/hub/ids.json", timeout=30).json()
visible = {i["uri"] for i in ids}
gone = seen - visible # records that lost visibility
Acceptance tests
These checks run against the demo records. ckanext-nextlogic/tests_smoke/hub_smoke.py automates them (BASE_URL, HUB_TOKEN, ORG_ADMIN_TOKEN from the environment).
| # | Check | Expected |
|---|---|---|
| 1 | Fetch /catalog.ttl with no token |
Contains only Open records. MH-WRO-OUT-002 is absent. |
| 2 | Fetch /hub/catalog.jsonld with the list-hub token |
Contains MH-WRO-OUT-002 and no data URLs |
| 3 | package_show and datastore_search for MH-WRO-OUT-002 as list-hub |
HTTP 403 (datastore_search answers 404 for a resource without a DataStore table) |
| 4 | GET /id/dataset/MH-WRO-OUT-001 |
HTTP 303 to the HTML page, or Turtle/JSON-LD by Accept |
| 5 | Look up the withdrawn demo output (IR-DUB-OUT-001) |
Present, with adms:status WITHDRAWN |
| 6 | package_delete as an organisation administrator |
Refused. Only catalogue administrators may delete. |
| 7 | GET /hub/ids.json without a token |
401 |
Known limitations
- Phase 1 offers DCAT over HTTP. The expected OGC API Records interface in D1.3 §5.2.7 is not native yet.
- There is no GeoDCAT-AP or mobilityDCAT-AP profile in the base library. The extensions above are the catalogue's own and are not yet validated with SHACL.
- Change detection is by polling. There are no webhooks.
- Some namespaces and concept IRIs are provisional: the
nlx:terms and the DSPdct:conformsTovalue. Status, access-right and frequency concepts come from the EU authority tables. - The consortium export carries no data links. Access is decided by the provider, not by the Hub or the catalogue.
- Visibility of a record is controlled by its owning organisation. A record can lose visibility at any time.
- There is no fixed rate limit in the pilot, but please keep to about one request per second.
- The catalogue's coverage is a subset of the workbook's.
Phase 2
- Webhooks through a transactional outbox, with a stable event ID, an HMAC signature and retries.
- Native OGC API Records.
- mobilityDCAT-AP vocabularies and SHACL validation.
- MDS and EDC integration of the DSP endpoint.
- OIDC sign-in.
- Periodic checks that MDS offers still exist, and pre-filling of the MDS form from the connector.
Open questions for LIST
Please answer these in your feedback.
- Which schema should the catalogue card use, and which serialisation of the records do you prefer?
- Do you prefer the token header or HTTP Basic? We can drop the one you do not need.
- Which URI namespace should be used: this portal's domain, or a persistent one such as
w3id.org? - Which mobilityDCAT-AP and GeoDCAT-AP versions do you expect?
- What does the Hub need for an access request: a landing page, a contact point, or both?
- Are webhooks of interest, and for which events?
- Who corrects differences between the CKAN record and the MDS offer description? The catalogue is the source of truth for metadata.
- May the consortium see MDS details of Controlled datasets, or only the request link?
- Which
dct:conformsTovalue and Dataspace Protocol version does the Hub expect for MDS offers?
SAU has supplied the participant ID, connector endpoint and portal link for its own MDS offers, so the earlier question about them is closed.
Give feedback
Send comments, answers to the questions above, or bug reports by email. The subject line is filled in for you.
Version 0.1 · 2026-11-24