Building a national DCAT-AP profile in ckanext-dcat for your country's metadata rules
A national DCAT-AP profile is a named set of rules, built as an extension on top of an existing ckanext-dcat profile, that adds the properties, vocabularies and checks your country requires when CKAN publishes or harvests DCAT metadata. Teams need one when the default euro_dcat_ap_3 profile does not carry a property that a national body mandates, when a national code list replaces a European one, or when national catalogs use fields that must map cleanly to RDF. The ckanext-dcat repository provides DCAT-AP v1, v2 and v3 schemas, DCAT RDF endpoints and an RDF harvester, and it is supported on CKAN 2.10 and 2.11. Start by confirming which DCAT-AP version your national rules cite and which CKAN minor version your portal runs, because those two facts decide the base profile you extend.
The build follows a short sequence of decisions. First, subclass the chosen base profile in your own extension so the standard mappings stay in place and only national changes live in your code. Second, add each country-specific property and map it to a DCAT term, recording the mapping in a table your national body can review. Third, add any national vocabularies and decide which values are required. Fourth, register the profile class through the ckanext.dcat.rdf.profiles setting so the RDF endpoints and harvesters use it, and confirm the exact key and class interface in the release you install. Finally, decide whether a harvested record from another catalog should be rejected or accepted with a warning when a national property is missing, because that choice determines what your portal publishes.
Testing is the step teams most often underestimate. Build a round trip: export sample datasets from your portal to RDF, validate the output against the schema and your national rules, harvest the same file into a second CKAN instance, and compare the values that come back. Keep the fixtures in version control so every CKAN or ckanext-dcat upgrade reruns them. DeployOpen builds and tests these profiles inside your infrastructure and documents the mapping, but it does not issue conformance results or certification. Those decisions belong to your national DCAT-AP authority, and any formal assessment belongs to an independent assessor. Ask the authority which DCAT-AP version and validator it expects before the build starts.
Which profile approach fits your country's metadata rules
This table compares four ways to shape a national profile in ckanext-dcat, from keeping euro_dcat_ap_3 as is to writing a standalone profile. Read each row for when the approach fits, what it changes in RDF output and harvesting, and what drives the effort. The main takeaway is to extend the least that meets your rules, because each step further from DCAT-AP adds testing and maintenance for your team.
| Approach | When it fits | RDF output and harvesting | What drives effort |
|---|---|---|---|
| Use euro_dcat_ap_3 unchanged | Your rules map onto DCAT-AP 3 and need no extra fields | Standard DCAT-AP 3 RDF output with no custom mapping to maintain | Low: confirm field mapping and validate output against your rules |
| Subclass euro_dcat_ap_3 with extra properties | National rules add required properties on top of DCAT-AP 3 | Extra country properties appear in RDF output; receiving catalogs must read or ignore them | Medium: write and test the profile class and map each new field |
| Add country vocabularies only | Rules need national code lists or pick-list values but no new properties | Same RDF structure, but controlled fields carry national codes that other catalogs may not recognize | Low to medium: sourcing, versioning and updating the code lists |
| Write a standalone profile | The national model departs far enough from DCAT-AP that extending it becomes awkward | Your own RDF serialization and parsing; harvesters need matching support on both ends | High: profile design, serializer and parser tests, and tracking DCAT-AP releases |
How the profile class, configuration and RDF endpoints connect
The diagram starts at the CKAN configuration, which names the profile that ckanext-dcat should load. The loader then instantiates the national profile class, which inherits the euro_dcat_ap_3 mappings and adds country-specific properties. That same class drives both the RDF endpoints that publish catalog metadata and the RDF harvester that imports from other catalogs. The outer boundary marks where inbound RDF from other catalogs enters the portal, so treat that input as untrusted. Check that the endpoints and the harvester load the same profile class.
Configuration selects the profile, which drives both RDF endpoints and the harvester.
How a national DCAT-AP profile class stacks on euro_dcat_ap_3
The national class should inherit the EU mappings from euro_dcat_ap_3 and change only what your national standard changes. A subclass keeps the DCAT-AP 3 mappings in one place, so a fix or new field that arrives upstream reaches your portal without copying code into your extension. Your class does three jobs: it adds mappings for national properties, overrides the few EU mappings your standard changes, and registers under a name that ckanext-dcat can select in configuration. Keep the override list short and document each entry with the national clause it implements. Every override is a point where upstream changes stop flowing to you, so treat each one as code your team owns and reviews at every upgrade.
Registration is where many first builds go wrong, so confirm the mechanism in the ckanext-dcat source for the version you run before writing code against it. This section does not name classes, methods or configuration keys, because they have not been verified against a specific release. Once the class is registered, test selection directly: set the national profile in a non-production CKAN, export a dataset to RDF, and check that the national properties appear and that the EU properties you did not override are still present. Then pass the same output through the validator your compliance team uses and record the result. A profile that loads without errors can still produce output that misses national fields, so the export check matters more than the startup check.
Inherited behavior moves whenever ckanext-dcat or CKAN changes, and the extension's repository lists support for CKAN 2.10 and 2.11. CKAN 2.12.0 was released on August 26, 2026, so confirm ckanext-dcat support for 2.12 before planning that move. CKAN patch releases do not break backwards compatibility, but minor releases may, so a minor upgrade needs a full retest of your profile. Keep a fixed set of sample datasets covering each dataset type, export them before and after the upgrade, and diff the RDF. Re-run the harvest round trip if you import from other catalogs. Record each difference as either an intended change or a regression before the new version reaches production. Check the ckanext-dcat repository for release notes and compatibility statements.
Setup sequence for a national profile in ckanext-dcat
This sequence takes a CKAN portal from a stock DCAT-AP setup to a national profile that is packaged, registered, configured and tested. Each step ends with a check you can rerun, so a mapping change shows up as a diff in RDF output before it reaches a partner's catalog. The result is an extension your team can version, review and reinstall.
Pin CKAN and ckanext-dcat versions
Your team chooses a CKAN minor version and a ckanext-dcat release that declares support for it. The ckanext-dcat repository lists support for CKAN 2.10 and 2.11, so confirm that list before you pin anything to CKAN 2.12, which was released on August 26, 2026. Record the exact CKAN patch release, the ckanext-dcat version and the Python version in version control. CKAN source installs require Python 3.10 or newer. Done when a clean virtual environment installs both pinned versions and CKAN starts with ckanext-dcat enabled.
Create the national extension package
A developer creates a separate Python package in its own repository, so the national profile can be reviewed and released apart from the portal's theme and scheming code. The package declares ckanext-dcat as a dependency at the pinned version and includes a CKAN plugin class. Keep packaging metadata minimal until the profile class exists. Done when an editable install of the package succeeds in the pinned environment and CKAN lists the plugin without import errors.
Write the profile class and mappings
The developer subclasses the euro_dcat_ap_3 profile from ckanext-dcat and adds one mapping for each national property. A mapping table should list the CKAN field, the DCAT-AP term it maps to, the national term, and any controlled vocabulary the value must come from. Write a unit test that asserts each custom field produces its expected RDF property. Done when the class imports cleanly and every custom field has exactly one documented mapping that the test covers.
Register the profile with the plugin
The developer exposes the profile class through the entry point group that ckanext-dcat reads for RDF profiles. The group name and the registration format depend on the version you pinned, so confirm both in the ckanext-dcat README and its profile documentation before editing packaging metadata. Reinstall the package, then list the registered profile names from the installed environment. Done when the national profile name appears alongside the built-in profiles.
Select the profile in configuration
The operator adds the national profile to the ckanext-dcat setting in ckan.ini that lists active RDF profiles. Confirm the exact configuration key in the ckanext-dcat README for your pinned version before writing it, and confirm whether the base euro_dcat_ap_3 profile must also be listed and in what order. Restart CKAN with the same ini file and check the startup log for profile loading errors. Done when the RDF endpoint for a test dataset is produced by the national profile and the log shows no errors.
Verify RDF output against a baseline
Before selecting the national profile, the team serializes RDF for a fixed set of test datasets using the stock profile and stores the output in version control as a baseline. After selection and after each mapping change, the same datasets are serialized again and compared with the baseline. Each difference should match an intended mapping change, and anything else is a regression to fix. Include at least one test dataset with every custom field populated. Done when every difference is explained and the RDF passes the validation your publishing rules require.
Test a harvest round trip
The team exports a test dataset as RDF using the national profile, then imports it into a second CKAN instance that runs the same pinned versions and uses the RDF harvester configured for the same profile. Compare titles, identifiers, publishers, dates and custom fields between the original and the imported record. Each field that is lost or changed becomes a mapping fix, followed by a repeat of the baseline check. Done when every mapped field survives the round trip and the test can be rerun from a script.
Who owns the profile after go-live
In this model, a national body publishes the profile specification, its vocabularies and change notices, and the portal team implements that specification in its ckanext-dcat configuration and custom profile class. Ownership is split by document: the national body decides what each term means, and the portal team decides how the code meets that meaning. The handover is a two-way arrangement, because the portal team will find gaps the specification did not anticipate and must have a route to report them.
- Change approval: The national body approves changes to terms, vocabularies and cardinality. The portal team approves code changes to the profile class, and each code change should reference the specification clause it implements.
- Upgrade tests: The portal team runs upgrade tests against a copy of production metadata for each CKAN patch or minor release and each ckanext-dcat release.
- Handover documentation: The national body supplies the specification version, the vocabulary sources and a mapping from each portal field to its profile term. The portal team supplies the configuration keys in use and the test fixtures.
- Feedback path: A named channel and a change log record gaps found by the portal team and the decisions the national body makes in response.
Confirm in writing who has final say when the specification and the portal's existing data disagree.
Here one team holds its own copy of the specification, the profile class and the release decisions. Changes move quickly because the people who read the standard also write the code, but the main risk is drift: the team may stop tracking the source specification closely enough to notice when it changes. This team also carries the audit trail for every place where the portal departs from the published profile, so those deviations need to be explicit.
- Change approval: A named data steward signs off each change, and the reason for the change is recorded in version control alongside the code.
- Upgrade tests: The same team runs the CKAN upgrade and ckanext-dcat tests, including RDF output checks against the validator used for the profile.
- Handover documentation: Even without a handover to another party, keep a profile register that lists the specification version, every deviation, the configuration file and a runbook for the next maintainer.
- Duty separation: Where the team is large enough, the person who approves a change should not be the only person who tests it.
Check that the team's responsibilities for publication, sign-off and cover during absences are written down, so the profile does not depend on one person's memory.
In this model, an implementation partner builds the profile during the project and transfers it to the client's team at an agreed point. After transfer, the client maintains the profile class, the configuration and the test suite without the partner in the loop, so the quality of the handover package determines how well the profile survives its first upgrade. Agree the handover acceptance criteria in the written scope before work starts.
- Change approval: Before handover, the partner's changes go through the client's agreed approval route. After handover, a named client owner approves every change, and any further partner support is a separate written engagement.
- Upgrade tests: The partner delivers the test suite and a first run against the target CKAN version, and the client's team runs the suite for later upgrades.
- Handover documentation: The source repository, profile class, pinned extension versions, configuration keys, RDF validation results, test fixtures, a deviation list and a runbook. Each item should appear on a signed checklist.
- Knowledge transfer: Walkthroughs with the staff who will operate the portal, with attendance recorded and the materials kept in the client's repository.
Confirm the acceptance criteria and the person who signs them off before the first build task begins.
Security and operational risks of a custom DCAT-AP profile
Each card names one control that keeps a national profile safe to run, and who should check it. The risks sit in three places: RDF that comes in through harvesting, RDF that goes out through endpoints, and the code and configuration that produce both. Use the cards as a review list before the profile goes into production.
Harvesting untrusted RDF
The RDF harvester in ckanext-dcat imports datasets from other catalogs, so every remote graph is untrusted input that you do not control. Validate harvested records against the properties your profile requires, and limit which fields a source may overwrite in your portal. Ask the team that owns the national catalog to approve each new source before it can write into your portal, and to review the source list on a fixed schedule.
ckanext-dcat repositoryProfile changes that break harvesters
Renaming or removing a property changes the RDF that other catalogs read from your endpoints, and their harvests can fail or drop data without warning. Before a profile change ships, compare serialized output for a fixed sample of datasets against the previous release. List every downstream consumer that harvests your catalog, and get the owner of each one to sign off on breaking changes before the release date is set.
Configuration drift across environments
Selected profiles, vocabularies and mapping settings live in CKAN configuration files, so development, test and production can quietly diverge. A profile that validates in test can serve different RDF in production. Keep the ckan.ini settings and profile code under version control, deploy both from the same commit to each environment, and have the platform team compare the effective configuration of every environment at each release.
Unpublished fields in RDF endpoints
A custom field hidden from the web form can still reach the RDF graph if the profile maps it. Internal notes, draft fields and anything tied to private datasets need explicit output rules, so the endpoint publishes only what the publisher intends. Ask the data owner to list fields that must stay internal, then have the security reviewer request the endpoints anonymously and as a sysadmin to confirm what each returns.
Who can change the profile
The profile is Python code and schema configuration, so anyone who can merge to those repositories can change what every harvester receives. Limit write access to a named group, require a second reviewer for changes to mappings and validators, and keep the sysadmin account list short. Ask the security team to confirm who holds production deploy rights and that sysadmin grants are logged.
Dependency pinning during upgrades
CKAN minor releases may include backwards-incompatible changes, and the ckanext-dcat version you run must support your CKAN version. Pin CKAN, ckanext-dcat and the profile package together in your requirements, and test full RDF output before any minor upgrade. Patch releases do not break backwards compatibility, but the upgrade owner should still confirm that the pinned versions match a supported CKAN line.
CKAN release policyCountry vocabularies and EU interoperability obligations
Country code lists and controlled vocabularies enter the profile in two places: the RDF output, where the profile class maps CKAN values to DCAT-AP identifiers, and the dataset schema, where the pick lists in ckanext-scheming store the values editors choose. Start by inventorying every coded field your national profile adds, such as publisher country, spatial coverage and licence, and record which authority table supplies the codes for each one, whether that is an EU table or your national statistics institute's list. Then fix one canonical form per field. The codes stored in the scheming choices must be the same identifiers the profile emits, so a value like FR or a local label never reaches the RDF without a matching URI. Keep this mapping in one file under version control, and add a test that passes each pick-list value through the RDF serializer and confirms the output matches a term in the authority table you chose.
EU-level rules may decide which profile you must follow before you choose any vocabulary. Regulation (EU) 2024/903, the Interoperable Europe Act, sets interoperability obligations that can apply to public bodies, and its effect on your organization depends on your role, your national transposition and any sector rules that apply to you. Whether it binds your body, which DCAT-AP version it expects and whether a national authority table overrides the EU table are questions for your legal or standards team to answer. Ask them to confirm three things in writing: the profile version they require, the controlled vocabularies they name, and the date from which those choices apply. Record the answers in the profile's documentation so auditors and procurement can trace each vocabulary choice back to its source.
Limits to confirm before you commit to a national profile
A national profile is only as stable as the assumptions beneath it. Each card names one assumption about CKAN, the national standard, the harvesters, the validator, the schema or the hosting environment, and says what to request in writing before you commit.
Compatibility with CKAN 2.12
The ckanext-dcat extension's stated support covers CKAN 2.10 and 2.11. CKAN 2.12.0 was released on August 26, 2026, so confirm compatibility before you upgrade. Test your custom profile class on 2.12.0 in staging, and ask the extension maintainers or your own team for the results. The release policy notes that minor releases may include backwards-incompatible changes, so the upgrade needs its own test cycle separate from the profile work.
Release policyNational standard version and status
Your profile inherits its meaning from the national standard it implements, so you need to know which version is current and whether it is final, draft or under consultation. Ask the national body for the published version identifier, its change log, and a dated plan for the next revision. A profile built on a draft can require renamed or remapped fields once the standard is published, so record the targeted version in your schema documentation and release notes.
DCAT-AP version harvesters expect
ckanext-dcat ships DCAT-AP v1, v2 and v3 schemas, and the profile class you stack on top must name the base it extends. Ask each harvester partner which DCAT-AP version their parser consumes and whether it accepts the national extension terms you add. Request a sample RDF file from their side and compare it with your portal's output before go-live, so the mapping is checked against a real consumer.
ckanext-dcat repositoryRDF validator the body accepts
A profile can produce RDF that parses correctly and still fails the checks a national body runs on submitted catalogs. Ask which validator, which version of it, and which rule set or shapes the body applies, and whether it publishes test files or a test endpoint. Run your DCAT output through that same validator before you publish, and record the validator version in your test notes so results can be repeated after each change.
Required fields in the schema
Each mandatory national property should map to a dataset field marked as required in your schema, and to an RDF property in the output. Ask the body for its list of mandatory properties, with cardinality and allowed values, then compare that list with your schema field by field. Check both directions: standard properties with no home in your schema, and schema fields with no mapping in the profile. Gaps of either kind are easier to fix before the first harvest than after.
Hosting and data location constraints
Hosting location, operators and network controls may be set by national law or by the body that owns the catalog. Those rules can limit which regions, subprocessors or backup locations you may use. Ask for the written hosting requirements, who may administer the portal, and where harvested and cached metadata may be stored. Confirm these before you choose an environment, because moving a live catalog to another hosting setup is a separate project with its own testing.
What a national DCAT-AP profile costs and what it needs from your team
What drives the cost of a national DCAT-AP profile in ckanext-dcat?
The main cost drivers are how many country-specific properties and vocabularies the profile adds, how many dataset types and harvest sources it must cover, and how complete the national specification is when the work starts. Costs have several parts: analysis of the specification, design of the profile class, mapping each custom field to RDF terms, sample-based test fixtures, validation runs, and review rounds with the standard owner. Most of this work is one-time. Recurring costs come from keeping the profile aligned with new CKAN and ckanext-dcat releases and with changes to the national standard. No price was supplied for this work, so ask each provider for a quote built from the same written scope and ask them to price these parts separately.
How long does it take to build a national DCAT-AP profile?
No duration was supplied for this work, so treat any timeline as something to confirm in the written scope. The length depends on how finished the national specification is, how many custom properties and vocabularies need mapping, how many RDF outputs and harvest paths must validate, and how quickly decision makers answer open questions. A profile built on a settled specification with a small set of additions moves faster than one where the standard is still being drafted. Ask the provider to split the timeline into analysis, build, testing on sample data, and handover, with a checkpoint at the end of each phase. Also confirm the CKAN version you run, because a version change can add a phase.
What does the client team need to provide for a DCAT-AP profile project?
The work depends on five inputs from your side: a named owner for the national standard, sample datasets, decision makers, a test environment, and access to the national validation rules. The standard owner answers questions about property meaning, cardinality and vocabulary choices, which prevents rework later. Sample datasets should cover every dataset type the portal publishes, including multilingual fields, missing values and resources without distribution URLs. Decision makers need to approve open mapping points in writing before the build starts. The test environment should run the CKAN version you use in production, with ckanext-dcat installed and an RDF endpoint that your validators can reach. Confirm each input in the written scope so nothing is assumed.
Can an internal team build a national DCAT-AP profile without a partner?
Yes, an internal team with Python and CKAN extension experience can build the profile, but it needs the same skills for analysis, testing and ongoing upkeep. The build itself is a Python class stacked on the euro_dcat_ap_3 profile in ckanext-dcat, plus configuration that selects it. The harder work is mapping national rules to RDF terms and showing through validation runs that the output meets them. Before deciding, check whether you have someone who understands RDF and DCAT-AP, can own the profile after handover, and can review changes during each CKAN and ckanext-dcat upgrade. Teams without that role often use a partner for the build and keep operations in house.
Does a DCAT-AP profile make my data portal compliant?
No. A DCAT-AP profile makes the portal's metadata output follow a defined set of rules, but the national body that owns the standard decides whether the portal conforms, and independent auditors or certification bodies decide any formal assessment. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Ask the national body which version of the specification it accepts, which validator it uses, and what evidence it expects from a portal. Keep validation output, the profile version and the configuration history, since these records support any later assessment. Confirm whether your national rules also require regular validation reports.
What changes in a DCAT-AP profile after a CKAN upgrade?
Each CKAN minor release can change behavior that your profile depends on, so every upgrade needs a regression check of the profile output. CKAN patch releases do not break backwards compatibility, but minor releases may include incompatible changes, according to the CKAN release policy. ckanext-dcat is listed as supported on CKAN 2.10 and 2.11, so confirm that it supports your target version before you move, including CKAN 2.12, which was released on August 26, 2026. After each change, retest the RDF output, the validation runs, the harvest and endpoint behavior, and the custom validators and schema fields. Ask whether upgrades sit in the fixed scope or under an ongoing support retainer.
How does a quote for a national DCAT-AP profile get calculated?
A quote follows from a written scope, which is agreed with the client before work starts. Most DeployOpen engagements are fixed-scope, so the scope, deliverables and timeline are written down first, and DeployOpen does not publish a price list. To compare quotes, give each provider the same scope listing the standard and version the profile targets, the custom properties and vocabularies, the CKAN and ckanext-dcat versions, the test environment, the sample dataset types, the validation and review rounds, and the handover documents. Ask which items are one-time and which recur under a retainer, and who owns the code repository at the end of the engagement.
What risks should I check before scoping a DCAT-AP profile?
The most common risks are an unfinished national specification, unclear decision makers, and sample data that does not match what the portal publishes. Each one causes rework that adds cost and delay. Check whether the standard has a published version the profile can target, and whether the national body expects changes during the project. Confirm who can approve mapping decisions and how quickly. Compare the sample datasets with production records, especially multilingual titles, missing fields and resources without distribution URLs. Finally, record which CKAN and ckanext-dcat versions the profile was tested on, because a later upgrade can change the output.
How DeployOpen scopes and delivers a national DCAT-AP profile
DeployOpen plans, builds and documents a national DCAT-AP profile on ckanext-dcat inside your own infrastructure, so the profile is reviewed in the environment where it runs. The work starts with the metadata your portal must publish and the profile your national rules require, then extends the euro_dcat_ap_3 profile with country-specific properties and vocabularies. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- The written scope names the DCAT-AP base profile, the national extension rules and the portal versions in use.
- We list each country-specific property and controlled vocabulary the profile adds, with its source and owner.
- Fixed-scope engagements agree deliverables and timelines in writing before build starts; ongoing support is a retainer.
How we build
- Stack a custom profile class on euro_dcat_ap_3 in an extension, so upstream mappings stay separate from national changes.
- Map each custom field to its DCAT-AP property and vocabulary, then select the profile through ckanext-dcat configuration.
- Test RDF output and harvesting against sample datasets from your own portal before anything reaches production.
How we hand over
- Handover covers the extension code, the schema and vocabulary files, and configuration kept in version control.
- Documentation records each added property, its vocabulary, the mapping rules and the configuration keys used to enable the profile.
- Your team owns the repository and can extend the profile when national rules change.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, covering changes after handover.
- Confirm ckanext-dcat supports your target CKAN version before upgrading, since its listed support covers 2.10 and 2.11.
- Profile changes are regression tested against your sample datasets and harvest sources before each release goes live.

