Skip to content

Commit

Permalink
Merge branch 'master' into feature/ogc-1873-translator-cli-command-cr…
Browse files Browse the repository at this point in the history
…eating-languages
  • Loading branch information
Tschuppi81 authored Oct 15, 2024
2 parents 56dcb99 + 0d5f068 commit aee2253
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions src/onegov/election_day/views/opendata_swiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,8 @@ def translate(text: 'TranslationString', locale: str) -> str:
sub(dist, 'dcat:downloadURL', {'rdf:resource': url})

# Legal
license = sub(
dist, 'dct:license',
{'rdf:about': 'http://dcat-ap.ch/vocabulary/licenses/terms_by'}
)
sub(license, 'rdf:type', {
'rdf:resource': 'http://purl.org/dc/terms/RightsStatement'
sub(dist, 'dct:license', {
'rdf:resource': 'http://dcat-ap.ch/vocabulary/licenses/terms_by'
})

# Media Type
Expand Down
8 changes: 2 additions & 6 deletions src/onegov/landsgemeinde/views/opendata_swiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,8 @@ def set_headers(response: 'Response') -> None:
url = request.link(item, 'json')
sub(dist, 'dcat:accessURL', {'rdf:resource': url})
sub(dist, 'dcat:downloadURL', {'rdf:resource': url})
license = sub(
dist, 'dct:license',
{'rdf:about': 'http://dcat-ap.ch/vocabulary/licenses/terms_by'}
)
sub(license, 'rdf:type', {
'rdf:resource': 'http://purl.org/dc/terms/RightsStatement'
sub( dist, 'dct:license', {
'rdf:resource': 'http://dcat-ap.ch/vocabulary/licenses/terms_by'
})
sub(dist, 'dcat:mediaType', {
'rdf:resource': 'https://www.iana.org/assignments/media-types/'
Expand Down

0 comments on commit aee2253

Please sign in to comment.