Add Civora/Piveau integration: DCAT-AP.de compliance#9
Merged
Conversation
Implements all changes required for harvesting by Civora (powered by Piveau) via the existing /catalog REST endpoint. Critical fixes: - dcat:theme: Now stores/outputs EU data-theme vocabulary URIs (e.g. ENVI, EDUC) instead of plain-text labels; legacy labels auto-migrated in JSON-LD builder for backward compatibility - dct:format in distributions: Now outputs EU file-type URIs via new get_format_eu_uri() method instead of MIME types - dct:language: Now outputs EU language URIs (DEU, ENG) as @id references; legacy 'de'/'en' codes auto-migrated - dct:license: Now rendered as @id reference at both dataset and distribution level (previously only dataset-level, plain string) New recommended fields (DCAT-AP.de): - dcatde:politicalGeocodingLevelURI: New select field in Tab 4 with dcatde geocoding level URIs (Bund/Land/Landkreis/Gemeinde) - dcatde:licenseAttributionByText: New text field in distribution for naming attribution (CC BY / CC BY-SA use cases) - dct:description at catalog level: New settings field, exposed via odw_catalog_description filter in /catalog endpoint Technical: - dcatde namespace added to JSON-LD @context - New methods: get_format_eu_uri(), get_language_options(), get_political_geocoding_level_options() - Settings: catalog_description, language options use EU URIs, legacy 'de'/'en' defaults auto-migrated on save - 19 new PHPUnit tests covering all new behaviors - 0 PHPCS violations; all 88 tests pass https://claude.ai/code/session_019GKkt3ATWaQtsSCCTExXsD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
$(cat <<'EOF'
Summary
Implements all changes required for automated harvesting by Civora (Piveau-based) via the existing
/wp-json/datenatlas/v1/catalogendpoint.Critical fixes (blocked correct ingestion)
dcat:theme: Values now stored/output as EU data-theme vocabulary URIs (e.g.ENVI,EDUC,HEAL) instead of plain German text labels. Dropdown expanded from 8 to 14 EU-standard categories. Legacy text values auto-migrated in JSON-LD builder.dct:format(distributions): Now outputs EU file-type URIs (http://publications.europa.eu/resource/authority/file-type/CSV) instead of MIME types. Newget_format_eu_uri()method;get_format_mime()preserved for backward compat.dct:language: Now outputs EU language URIs (DEU,ENG) as@idreferences. Legacyde/encodes auto-migrated both in JSON-LD builder and Settings sanitize.dct:license: Now rendered as{"@id": "..."}reference at both dataset and distribution level (previously only dataset-level plain string).New recommended fields (DCAT-AP.de)
dcatde:politicalGeocodingLevelURI: New select field in Tab 4 with dcatde vocabulary URIs (Bund / Land / Landkreis / Gemeinde).dcatde:licenseAttributionByText: New text field per distribution for naming attribution required by CC BY / CC BY-SA licenses.dct:description(catalog level): New textarea in Settings → Katalog, exposed viaodw_catalog_descriptionfilter in/catalogendpoint.Technical
dcatdenamespace added to JSON-LD@contextget_format_eu_uri(),get_language_options(),get_political_geocoding_level_options()Test plan
./vendor/bin/phpcs --standard=./config/phpcs.xml includes/→ 0 violations./vendor/bin/phpunit --configuration config/phpunit.xml→ 88 tests passdcat:theme,dct:language,dct:formatshow URIs not plain strings/wp-json/datenatlas/v1/catalogresponse:@contextcontainsdcatde, distributions carrydct:licensedct:descriptionin/cataloghttps://claude.ai/code/session_019GKkt3ATWaQtsSCCTExXsD
EOF
)
Generated by Claude Code