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

XSL utility / Add function to retrieve thesaurus URI #8456

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

fxprunayre
Copy link
Member

RDF based schema plugins may need the URI of vocabularies in a number of places. This utility is used in the DCAT-AP plugin when building concept elements in thesaurus-transformation.xsl:

eg.

  <dct:accessRights xmlns:dct="http://purl.org/dc/terms/">
    <skos:Concept xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:about="http://publications.europa.eu/resource/authority/access-right/PUBLIC">
      <skos:prefLabel xml:lang="en">public</skos:prefLabel>
      <skos:prefLabel xml:lang="es">public</skos:prefLabel>
      <skos:inScheme rdf:resource="http://publications.europa.eu/resource/authority/access-right" />
    </skos:Concept>
  </dct:accessRights>

Checklist

  • I have read the contribution guidelines
  • Pull request provided for main branch, backports managed with label
  • Good housekeeping of code, cleaning up comments, tests, and documentation
  • Clean commit history broken into understandable chucks, avoiding big commits with hundreds of files, cautious of reformatting and whitespace changes
  • Clean commit messages, longer verbose messages are encouraged
  • API Changes are identified in commit messages
  • Testing provided for features or enhancements using automatic tests
  • User documentation provided for new features or enhancements in manual
  • Build documentation provided for development instructions in README.md files
  • Library management using pom.xml dependency management. Update build documentation with intended library use and library tutorials or documentation

Funded by https://metadata.vlaanderen.be/

RDF based schema plugins may need the URI of vocabularies in a number of places. This utility is used in the DCAT-AP plugin when building concept elements in thesaurus-transformation.xsl:

eg.
```
  <dct:accessRights xmlns:dct="http://purl.org/dc/terms/">
    <skos:Concept xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:about="http://publications.europa.eu/resource/authority/access-right/PUBLIC">
      <skos:prefLabel xml:lang="en">public</skos:prefLabel>
      <skos:prefLabel xml:lang="es">public</skos:prefLabel>
      <skos:inScheme rdf:resource="http://publications.europa.eu/resource/authority/access-right" />
    </skos:Concept>
  </dct:accessRights>
```
@fxprunayre fxprunayre added this to the 4.4.6 milestone Oct 22, 2024
fxprunayre added a commit to metadata101/dcat-ap that referenced this pull request Oct 22, 2024
Copy link

sonarcloud bot commented Oct 22, 2024

Copy link
Collaborator

@joachimnielandt joachimnielandt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and works fine.

@fxprunayre fxprunayre modified the milestones: 4.4.6, 4.4.7 Oct 24, 2024
@fxprunayre fxprunayre merged commit 43a57af into main Oct 25, 2024
9 checks passed
@fxprunayre fxprunayre deleted the feature/xslutility-thesaurusuri branch October 25, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants