Skip to content

Commit 2e2ed15

Browse files
committed
fix: Remove language lable from the uri
1 parent 3aa4ddf commit 2e2ed15

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ckanext/dcatapchharvest/license.ttl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
skosxl:literalForm "NonCommercialAllowed-CommercialAllowed-ReferenceRequired"@en ;
4747
rdfs:label "NonCommercialAllowed-CommercialAllowed-ReferenceRequired"@de
4848
] ;
49-
foaf:homepage <https://opendata.swiss/en/terms-of-use/#terms_by> .
49+
foaf:homepage <https://opendata.swiss/terms-of-use/#terms_by> .
5050

5151
<http://dcat-ap.ch/vocabulary/licenses/terms_ask>
5252
a skos:Concept ;
@@ -61,7 +61,7 @@
6161
skosxl:literalForm "NonCommercialAllowed-CommercialWithPermission-ReferenceNotRequired"@en ;
6262
rdfs:label "NonCommercialAllowed-CommercialWithPermission-ReferenceNotRequired"@de
6363
] ;
64-
foaf:homepage <https://opendata.swiss/en/terms-of-use/#terms_ask> .
64+
foaf:homepage <https://opendata.swiss/terms-of-use/#terms_ask> .
6565

6666
<http://dcat-ap.ch/vocabulary/licenses/terms_by_ask>
6767
a skos:Concept ;
@@ -76,7 +76,7 @@
7676
skosxl:literalForm "NonCommercialAllowed-CommercialWithPermission-ReferenceRequired"@en ;
7777
rdfs:label "NonCommercialAllowed-CommercialWithPermission-ReferenceRequired"@de
7878
] ;
79-
foaf:homepage <https://opendata.swiss/en/terms-of-use/#terms_by_ask> .
79+
foaf:homepage <https://opendata.swiss/terms-of-use/#terms_by_ask> .
8080

8181
<https://creativecommons.org/publicdomain/zero/1.0/>
8282
a skos:Concept, cc:License ;

ckanext/dcatapchharvest/tests/fixtures/dataset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"https://example.com/documentation-resource-2"
136136
],
137137
"rights": "http://dcat-ap.ch/vocabulary/licenses/terms_by",
138-
"license": "https://opendata.swiss/en/terms-of-use/#terms_by",
138+
"license": "https://opendata.swiss/terms-of-use/#terms_by",
139139
"format": "HTML"
140140
},
141141
{

ckanext/dcatapchharvest/tests/test_dcatap_ch_parse.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def test_rights_license(self):
3232
# Resources
3333
eq_(len(dataset['resources']), 1)
3434
resource = dataset['resources'][0]
35-
eq_(unicode(resource['rights']), u'https://opendata.swiss/en/terms-of-use/#terms_by')
36-
eq_(unicode(resource['license']), u'https://opendata.swiss/en/terms-of-use/#terms_by_ask')
35+
eq_(unicode(resource['rights']), u'https://opendata.swiss/terms-of-use/#terms_by')
36+
eq_(unicode(resource['license']), u'https://opendata.swiss/terms-of-use/#terms_by_ask')
3737

3838
def test_dataset_all_fields(self):
3939

@@ -146,7 +146,7 @@ def test_dataset_all_fields(self):
146146
eq_(resource['format'], u'html')
147147
eq_(resource['media_type'], u'text/html')
148148
eq_(resource['identifier'], u'346265-fr@bundesamt-fur-statistik-bfs')
149-
eq_(resource['license'], u'https://opendata.swiss/en/terms-of-use/#terms_by')
149+
eq_(resource['license'], u'https://opendata.swiss/terms-of-use/#terms_by')
150150
eq_(resource['rights'], u'http://www.opendefinition.org/licenses/cc-zero')
151151
eq_(resource['language'], [u'fr'])
152152
eq_(resource['issued'], u'1900-12-31T00:00:00')
@@ -402,7 +402,7 @@ def test_multiple_rights_statements(self):
402402
dataset = [d for d in p.datasets()][0]
403403
resource = dataset["resources"][0]
404404

405-
eq_(unicode(resource['rights']), u"https://opendata.swiss/en/terms-of-use/#terms_by_ask")
405+
eq_(unicode(resource['rights']), u"https://opendata.swiss/terms-of-use/#terms_by_ask")
406406

407407
def test_eu_themes_mapping(self):
408408
contents = self._get_file_contents('catalog-themes.xml')

0 commit comments

Comments
 (0)