Skip to content

Commit

Permalink
fix: Remove language lable from the uri
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalch committed Aug 7, 2024
1 parent b0bf71b commit b495ca3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ckanext/geocat/tests/test_distribution_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def setUp(self):
def test_fields_that_come_from_the_dataset(self):
self.assertEquals(6, len(self.distributions))
for distribution in self.distributions:
self.assertEquals(distribution.get('rights'), "https://opendata.swiss/en/terms-of-use/#terms_by")
self.assertEquals(distribution.get('license'), "https://opendata.swiss/en/terms-of-use/#terms_by")
self.assertEquals(distribution.get('rights'), "https://opendata.swiss/terms-of-use/#terms_by")
self.assertEquals(distribution.get('license'), "https://opendata.swiss/terms-of-use/#terms_by")
self.assertEquals(distribution.get('issued'), self.dataset.get('issued'))
self.assertEquals(distribution.get('modified'), self.dataset.get('modified'))
self._is_multi_lang(distribution['title'])
Expand Down
16 changes: 8 additions & 8 deletions ckanext/geocat/utils/geocat-terms-of-use.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<rdfs:label xml:lang="en">NonCommercialAllowed-CommercialAllowed-ReferenceNotRequired</rdfs:label>
</skosxl:Label>
</skosxl:prefLabel>
<skos:mappingRelation>https://opendata.swiss/en/terms-of-use/#terms_open</skos:mappingRelation>
<foaf:homepage rdf:resource="https://opendata.swiss/en/terms-of-use/#terms_open"/>
<skos:mappingRelation>https://opendata.swiss/terms-of-use/#terms_open</skos:mappingRelation>
<foaf:homepage rdf:resource="https://opendata.swiss/terms-of-use/#terms_open"/>
</skos:Concept>

<skos:Concept rdf:about="http://dcat-ap.ch/vocabulary/licenses/terms_by">
Expand All @@ -50,8 +50,8 @@
<rdfs:label xml:lang="en">NonCommercialAllowed-CommercialAllowed-ReferenceRequired</rdfs:label>
</skosxl:Label>
</skosxl:prefLabel>
<skos:mappingRelation>https://opendata.swiss/en/terms-of-use/#terms_by</skos:mappingRelation>
<foaf:homepage rdf:resource="https://opendata.swiss/en/terms-of-use/#terms_by"/>
<skos:mappingRelation>https://opendata.swiss/terms-of-use/#terms_by</skos:mappingRelation>
<foaf:homepage rdf:resource="https://opendata.swiss/terms-of-use/#terms_by"/>
</skos:Concept>

<skos:Concept rdf:about="http://dcat-ap.ch/vocabulary/licenses/terms_ask">
Expand All @@ -67,8 +67,8 @@
<rdfs:label xml:lang="en">NonCommercialAllowed-CommercialWithPermission-ReferenceNotRequired</rdfs:label>
</skosxl:Label>
</skosxl:prefLabel>
<skos:mappingRelation>https://opendata.swiss/en/terms-of-use/#terms_ask</skos:mappingRelation>
<foaf:homepage rdf:resource="https://opendata.swiss/en/terms-of-use/#terms_ask"/>
<skos:mappingRelation>https://opendata.swiss/terms-of-use/#terms_ask</skos:mappingRelation>
<foaf:homepage rdf:resource="https://opendata.swiss/terms-of-use/#terms_ask"/>
</skos:Concept>

<skos:Concept rdf:about="http://dcat-ap.ch/vocabulary/licenses/terms_by_ask">
Expand All @@ -84,8 +84,8 @@
<rdfs:label xml:lang="en">NonCommercialAllowed-CommercialWithPermission-ReferenceRequired</rdfs:label>
</skosxl:Label>
</skosxl:prefLabel>
<skos:mappingRelation>https://opendata.swiss/en/terms-of-use/#terms_by_ask</skos:mappingRelation>
<foaf:homepage rdf:resource="https://opendata.swiss/en/terms-of-use/#terms_by_ask"/>
<skos:mappingRelation>https://opendata.swiss/terms-of-use/#terms_by_ask</skos:mappingRelation>
<foaf:homepage rdf:resource="https://opendata.swiss/terms-of-use/#terms_by_ask"/>
</skos:Concept>

</rdf:RDF>

0 comments on commit b495ca3

Please sign in to comment.