Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ckan-dcat update 11/2024 #32

Merged
merged 87 commits into from
Dec 4, 2024
Merged

ckan-dcat update 11/2024 #32

merged 87 commits into from
Dec 4, 2024

Conversation

mjanez
Copy link
Owner

@mjanez mjanez commented Oct 9, 2024

Hans-Chrstian and others added 28 commits September 9, 2024 15:38
- Introduced creator fields (URI, name, email, URL, type, identifier) alongside publisher fields.
- Updated the RDF graph serialization to include creator details.
- Extended existing tests to validate the creator functionality.
- Applied similar fallback logic for creator as used for publisher.
- Ensure proper validation for access_rights as a normal text field
- Close issue #308 by addressing form behavior inconsistencies
fix(form): resolve input issues for access_rights field
- Added fields to store creator details (name, email, URL, and identifier) in the DCAT profile.
- Implemented functionality to serialize and deserialize creator information similar to the publisher.
- Updated RDF generation logic to include creator fields in the output graph.
- Enhanced unit tests to verify proper handling and serialization of creator metadata.
Use the same files in examples used in the shacl tests, don't use
separate dataset dicts on each test.
Use the same files in examples used in the shacl tests, don't use
separate dataset dicts on each test.
For the parsing ones we are using the existing dataset.rdf file which
has a DCAT AP flavour. We can replace it with a US centric if we can
come up with a good existing example.
Use org:Organization and add a skos:prefLabel property
From landing page and documentation if there is no title defined
for them. See Usage note in
https://doi-do.github.io/dcat-us/#properties-for-document
As they are modeled as Data Services, the outputs fails validation
because they don't contain publisher and contact point. We can revisit
this if we implement first class support for Data Services
@mjanez mjanez added bug Something isn't working documentation Improvements or additions to documentation labels Oct 9, 2024
amercader and others added 26 commits October 23, 2024 12:25
Consolidate all setuptools config in setup.cfg as per
discussion in ckan/ckan#8456
`_add_triple_from_dict()` will check if the value is a dict and assume
it's a fluent field (i.e `{"lang1": "value_lang1", "lang2":
`value_lang2"}. `URIRefOrLiteral` also supports a lang parameter
Created multilingual versions of _object_value() and
_object_value_list() that store the different translations in the format
expected by the fluent fields, e.g.:

{
    "en": "Dataset title",
    "es": "Título del conjunto de datos"
}

and for tags:

{
    "en": ["Oaks", "Pines"],
    "es": ["Robles", "Pinos"],
}

Core fields (those ending in `_translated` are handled separately)
First iteration of pyproject.toml
Support for multiple agents when parsing
Multilingual support in DCAT profiles
New profile for DCAT US v3
…tion_to_dataset

fix: Move has version from distribution to dataset
Rdflib 7.1 introduced changes in [date parsing][1] that made some base
profile tests fail. Basically the previous rdflib versions incomplete
dates like

    <time:inXSDDateTimeStamp
         rdf:datatype="http://www.w3.org/2001/XMLSchema#date">
            1904
    </time:inXSDDateTimeStamp>

were expanded to `1904-01-01`. Of course this is not a valid date and
should be expressed using `gYear`:

    <time:inXSDDateTimeStamp
         rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">
            1904
    </time:inXSDDateTimeStamp>

and we should be expecting `1904`.
This should play nice with the time properties we are generating in CKAN as
they already handle automatically `gYear`, `gYearMonth`, `date` and
`dateTime`.
Sites importing external DCAT representations that use the wrong
encoding might need to check their parsers.

[1] RDFLib/rdflib#2929
@mjanez mjanez changed the title Update ckanext-dcat ckan-dcat update 11/2024 Nov 22, 2024
@mjanez mjanez merged commit 36c0553 into mjanez:master Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants