Closed hcvdwerf closed 1 week ago
This PR updates the data model and mapping logic to accommodate new fields introduced in CKAN DCAT Extension 2.1.0. The changes primarily focus on adding URI fields to Agent entities (publisher/creator) and identifier fields to contact points, ensuring better compliance with DCAT AP 3.
erDiagram
CkanContactPoint {
string name
string email
string uri
string identifier
}
CkanAgent {
string name
string email
string url
string type
string uri
}
ContactPoint {
string name
string email
string uri
string identifier
}
Agent {
string name
string email
string url
string type
string uri
string identifier
}
classDiagram
class CkanContactPoint {
+String name
+String email
+String uri
+String identifier
}
class CkanAgent {
+String name
+String email
+String url
+String type
+String uri
}
class ContactPoint {
+String name
+String email
+String uri
+String identifier
}
class Agent {
+String name
+String email
+String url
+String type
+String uri
+String identifier
}
CkanContactPoint --> ContactPoint
CkanAgent --> Agent
Change | Details | Files |
---|---|---|
Added new fields to OpenAPI specifications for ContactPoint and Agent entities |
|
src/main/openapi/ckan.yaml src/main/openapi/discovery.yaml |
Updated mapping implementations to handle new fields |
|
src/main/java/io/github/genomicdatainfrastructure/discovery/datasets/infrastructure/ckan/utils/CkanAgentParser.java src/main/java/io/github/genomicdatainfrastructure/discovery/datasets/infrastructure/ckan/utils/PackageShowMapper.java |
Updated unit tests to verify new field mappings |
|
src/test/java/io/github/genomicdatainfrastructure/discovery/services/PackageShowMapperTest.java |
…KAN DCAT EXTENSION 2.1.0
🚀 Pull Request Checklist
Title:
[ ]
Add missing field after upgrade to DCAT extension 2.1.0Description:
[ ]
After upgrading to DCAT CKAN extension 2.1.0 some fields within contact point and publisher/creator where missing. After this merge this fields will be availableContext:
[ ]
To be much as possible compliant with DCAT AP 3Changes:
[ ]
Add URI mapping to Agent(publisher/creator) Add identifier to contactpointTesting:
[ ]
Modified some UTChecklist:
[ x]
I have checked that my code adheres to the project's style guidelines and that my code is well-commented.[ x]
I have performed self-review of my own code and corrected any misspellings.[ x]
I have made corresponding changes to the documentation (if applicable).[ x]
My changes generate no new warnings or errors.[x ]
I have added tests that prove my fix is effective or that my feature works.[ x]
New and existing unit tests pass locally with my changes.Summary by Sourcery
Enhance the mapping by adding missing fields 'uri' and 'identifier' to contact points and agents after upgrading to DCAT CKAN extension 2.1.0. Update YAML configurations and modify unit tests to ensure compliance with DCAT AP 3.
New Features:
Enhancements:
Tests: