diff --git a/.github/workflows/deploy_production.yml b/.github/workflows/deploy_production.yml index f5eee3f3..8b903e1d 100644 --- a/.github/workflows/deploy_production.yml +++ b/.github/workflows/deploy_production.yml @@ -17,4 +17,6 @@ jobs: known_hosts: ${{ secrets.SSH_KNOWN_HOSTS_PRODUCTION }} - name: Deploy with rsync - run: rsync -avz -e 'ssh -p ${{ secrets.SSH_PORT_PRODUCTION }}' docs/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST_PRODUCTION }}:/var/www/dcat-ap.ch + run: | + rsync -avz -e 'ssh -p ${{ secrets.SSH_PORT_PRODUCTION }}' docs/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST_PRODUCTION }}:/var/www/dcat-ap.ch + rsync -avz -e 'ssh -p ${{ secrets.SSH_PORT_PRODUCTION }}' apache/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST_PRODUCTION }}:/var/www/dcat-ap.ch diff --git a/apache/.htaccess b/apache/.htaccess new file mode 100644 index 00000000..fc436da3 --- /dev/null +++ b/apache/.htaccess @@ -0,0 +1,37 @@ +Options +FollowSymlinks +RewriteEngine On + +# If the request contains .rdf, .ttl or .html, pass it through +RewriteCond %{REQUEST_URI} .*\.(html|ttl|rdf).* +RewriteRule ^.* - [L] + +# Redirect vocabulary urls to most recent version of vocabulary in requested format +RewriteCond %{HTTP:Accept} application/rdf\+xml +RewriteRule ^vocabulary/themes/.*$ /vocabulary/themes/20231122.rdf [L,R=303] +RewriteCond %{HTTP:Accept} text/turtle +RewriteRule ^vocabulary/themes/.*$ /vocabulary/themes/20231122.ttl [L,R=303] +RewriteCond %{HTTP:Accept} text/html +RewriteRule ^vocabulary/themes/$ /vocabulary/themes/20231122.html [L,R=303] + +RewriteCond %{HTTP:Accept} application/rdf\+xml +RewriteRule ^vocabulary/licenses/.*$ /vocabulary/licenses/20210623.rdf [L,R=303] +RewriteCond %{HTTP:Accept} text/turtle +RewriteRule ^vocabulary/licenses/.*$ /vocabulary/licenses/20210623.ttl [L,R=303] +RewriteCond %{HTTP:Accept} text/html +RewriteRule ^vocabulary/licenses/$ /vocabulary/licenses/20210623.html [L,R=303] + +RewriteCond %{HTTP:Accept} application/rdf\+xml +RewriteRule ^vocabulary/publishers/.*$ /vocabulary/publishers/20210623.rdf [L,R=303] +RewriteCond %{HTTP:Accept} text/turtle +RewriteRule ^vocabulary/publishers/.*$ /vocabulary/publishers/20210623.ttl [L,R=303] +RewriteCond %{HTTP:Accept} text/html +RewriteRule ^vocabulary/publishers/$ /vocabulary/publishers/20210623.html [L,R=303] + +# Redirect urls for vocabulary terms to anchors in most recent version +# This is only relevant for HTML requests +RewriteCond %{HTTP:Accept} text/html +RewriteRule ^vocabulary/themes/(.*) /vocabulary/themes/20231122.html#$1 [L,NE,R=303] +RewriteCond %{HTTP:Accept} text/html +RewriteRule ^vocabulary/licenses/(.*) /vocabulary/licenses/20210623.html#$1 [L,NE,R=303] +RewriteCond %{HTTP:Accept} text/html +RewriteRule ^vocabulary/publishers/(.*) /vocabulary/publishers/20210623.html#$1 [L,NE,R=303] diff --git a/docs/index.html b/docs/index.html index 84114686..63e0e84f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -19,7 +19,7 @@ rel="stylesheet" /> @@ -78,7 +78,7 @@

Standard Definition

DCAT-AP CH V2 + > Version 2.0.0 html @@ -130,7 +130,7 @@

Vocabularies

- Dataset Theme Vocabulary @@ -138,11 +138,11 @@

Vocabularies

Version 1.0 Draft html | - turtle | - rdf diff --git a/docs/vocabulary/licenses/20210623.html b/docs/vocabulary/licenses/20210623.html index 41a67858..c4969a0b 100644 --- a/docs/vocabulary/licenses/20210623.html +++ b/docs/vocabulary/licenses/20210623.html @@ -23,7 +23,7 @@ rel="stylesheet" /> diff --git a/docs/vocabulary/publishers/20210623.html b/docs/vocabulary/publishers/20210623.html index e3cefd8c..49acc6f0 100644 --- a/docs/vocabulary/publishers/20210623.html +++ b/docs/vocabulary/publishers/20210623.html @@ -23,7 +23,7 @@ rel="stylesheet" /> diff --git a/docs/vocabulary/themes/20210623.html b/docs/vocabulary/themes/20210623.html index e5fb1108..e773812d 100644 --- a/docs/vocabulary/themes/20210623.html +++ b/docs/vocabulary/themes/20210623.html @@ -23,7 +23,7 @@ rel="stylesheet" /> diff --git a/docs/vocabulary/themes/20231122.html b/docs/vocabulary/themes/20231122.html new file mode 100644 index 00000000..4a831331 --- /dev/null +++ b/docs/vocabulary/themes/20231122.html @@ -0,0 +1,478 @@ + + + + + + DCAT-AP CH + + + + + + + + + + +
+
+
+
+ + DCAT-AP CH +
+
+
+
+
+
+
+
+ +
+
+
+
+ + +
+
+
+

Theme vocabulary

+
+
+
+
+

+ List of Categories for Swiss opendata to enter in dcat:theme and + dcat:themeTaxonomy +

+

This includes mapping from geocategories and to EU data-theme

+

+ Other Formats: + RDF/XML | + Turtle +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
URINameMapping to EU data-theme
+ http://dcat-ap.ch/vocabulary/themes/work + Work and income + + http://publications.europa.eu/resource/authority/data-theme/ECON +
+ + http://dcat-ap.ch/vocabulary/themes/construction + Construction and housing + http://publications.europa.eu/resource/authority/data-theme/SOCI
+ + http://dcat-ap.ch/vocabulary/themes/population + Population + + http://publications.europa.eu/resource/authority/data-theme/SOCI +
+ + http://dcat-ap.ch/vocabulary/themes/education + Education and science + + http://publications.europa.eu/resource/authority/data-theme/EDUC +
+ + http://dcat-ap.ch/vocabulary/themes/energy + Energy + + http://publications.europa.eu/resource/authority/data-theme/ENER +
+ + http://dcat-ap.ch/vocabulary/themes/finances + Finances + + http://publications.europa.eu/resource/authority/data-theme/ECON +
+ + http://dcat-ap.ch/vocabulary/themes/geography + Geography + + http://publications.europa.eu/resource/authority/data-theme/REGI +
+ + http://dcat-ap.ch/vocabulary/themes/legislation + Legislation + + http://publications.europa.eu/resource/authority/data-theme/JUST +
+ + http://dcat-ap.ch/vocabulary/themes/health + Health + + http://publications.europa.eu/resource/authority/data-theme/HEAL +
+ http://dcat-ap.ch/vocabulary/themes/trade + Trade + + http://publications.europa.eu/resource/authority/data-theme/ECON +
+ + http://dcat-ap.ch/vocabulary/themes/industry + Industry and services + + http://publications.europa.eu/resource/authority/data-theme/ECON +
+ http://dcat-ap.ch/vocabulary/themes/crime + Crime, criminal justice + + http://publications.europa.eu/resource/authority/data-theme/JUST +
+ + http://dcat-ap.ch/vocabulary/themes/culture + Culture, media, information society, sport + + http://publications.europa.eu/resource/authority/data-theme/EDUC +
+ + http://dcat-ap.ch/vocabulary/themes/agriculture + Agriculture, forestry + + http://publications.europa.eu/resource/authority/data-theme/AGRI +
+ + http://dcat-ap.ch/vocabulary/themes/mobility + Mobility and Transport + + http://publications.europa.eu/resource/authority/data-theme/TRAN +
+ + http://dcat-ap.ch/vocabulary/themes/public-order + Public order and security + + http://publications.europa.eu/resource/authority/data-theme/GOVE +
+ + http://dcat-ap.ch/vocabulary/themes/politics + Politics + + http://publications.europa.eu/resource/authority/data-theme/GOVE +
+ + http://dcat-ap.ch/vocabulary/themes/prices + Prices + + http://publications.europa.eu/resource/authority/data-theme/ECON +
+ + http://dcat-ap.ch/vocabulary/themes/territory + Territory and environment + + http://publications.europa.eu/resource/authority/data-theme/ENVI +
+ + http://dcat-ap.ch/vocabulary/themes/social-security + Social security + + http://publications.europa.eu/resource/authority/data-theme/SOCI +
+ + http://dcat-ap.ch/vocabulary/themes/statistical-basis + Statistical basis + http://publications.europa.eu/resource/authority/data-theme/GOVE
+ + http://dcat-ap.ch/vocabulary/themes/tourism + Tourism + http://publications.europa.eu/resource/authority/data-theme/ECON
+ + http://dcat-ap.ch/vocabulary/themes/administration + Administration + + http://publications.europa.eu/resource/authority/data-theme/GOVE +
+ + http://dcat-ap.ch/vocabulary/themes/national-economy + National economy + + http://publications.europa.eu/resource/authority/data-theme/ECON +
+
+
+
+ + + + + + + diff --git a/docs/vocabulary/themes/20231122.rdf b/docs/vocabulary/themes/20231122.rdf new file mode 100644 index 00000000..c0d5b16b --- /dev/null +++ b/docs/vocabulary/themes/20231122.rdf @@ -0,0 +1,315 @@ + + + + + Categories for Swiss Open Government Data + Custom vocabulary for OGD dataset categories in Switzerland + + + bfs.admin.ch + + + + Kategorien + Categories + Catégories + Categorie + 2016-06-23 + 2023-11-22 + 20231122 + + + + + + Arbeit, Erwerb + Travail, rémunération + Lavoro e reddito + Work and income + + + + + + + Bau- und Wohnungswesen + Construction, logement + Costruzione e abitazione + Construction and housing + + + + + + + Bevölkerung + Population + Popolazione + Population + + + + + + + Bildung, Wissenschaft + Education, science + Formazione e scienza + Education and science + + + + + + Energie + Energie + Energia + Energy + + + + + + + + Finanzen + Finances + Finanze + Finances + + + + + + Geographie + Géographie + Geografia + Geography + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gesetzgebung + Législation + Legislazione + Legislation + + + + + + Gesundheit + Santé + Sanità + Health + + + + + + + Handel + Commerce + Commercio + Trade + + + + + + Industrie, Dienstleistungen + Industrie, services + Industria, servizi + Industry and services + + + + + + Kriminalität, Strafrecht + Criminalité, droit pénal + Criminalità, diritto penale + Crime, criminal justice + + + + + + Kultur, Medien, Informationsgesellschaft, Sport + Culture, médias, société de l'information, sport + Cultura, media, società dell'informazione, sport + Culture, media, information society, sport + + + + + + + + + Land- und Forstwirtschaft + Agriculture, sylviculture + Agricoltura, selvicoltura + Agriculture, forestry + + + + + + + + Mobilität und Verkehr + Mobilité et transports + Mobilità e trasporti + Mobility and Transport + + + + + + + Öffentliche Ordnung und Sicherheit + Ordre et sécurité publics + Ordine pubblico e sicurezza pubblica + Public order and security + + + + + + + Politik + Politique + Politica + Politics + + + + + + Preise + Prix + Prezzi + Prices + + + + + + Raum und Umwelt + Territoire et environnement + Territorio e ambiente + Territory and environment + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Soziale Sicherheit + Protection sociale + Sicurezza sociale + Social security + + + + + + Statistische Grundlagen + Bases statistiques + Basi statistiche + Statistical basis + + + + + + Tourismus + Tourisme + Turismo + Tourism + + + + + + Verwaltung + Administration + Amministrazione + Administration + + + + + + Volkswirtschaft + Economie nationale + Economia + National economy + + + + + diff --git a/docs/vocabulary/themes/20231122.ttl b/docs/vocabulary/themes/20231122.ttl new file mode 100644 index 00000000..26686be8 --- /dev/null +++ b/docs/vocabulary/themes/20231122.ttl @@ -0,0 +1,288 @@ +@prefix skos: . +@prefix rdfs: . +@prefix euthemes: . +@prefix geothemes: . +@prefix foaf: . +@prefix dct: . +@prefix dc11: . +@prefix owl: . +@prefix dc: . + + + a skos:ConceptScheme ; + dc11:title "Categories for Swiss Open Government Data"@en ; + dc11:description "Custom vocabulary for OGD dataset categories in Switzerland"@en ; + dc11:creator [ + a foaf:Organization ; + foaf:name "bfs.admin.ch" + ] ; + rdfs:label "Kategorien"@de,"Categories"@en,"Catégories"@fr,"Categorie"@it; + dc:issued "2016-06-23" ; + dc:modified "2023-11-22" ; + owl:versionInfo "20231122" ; + owl:versionIRI . + + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Arbeit, Erwerb"@de, + "Travail, rémunération"@fr, + "Lavoro e reddito"@it, + "Work and income"@en ; + skos:mappingRelation euthemes:ECON , + geothemes:economy . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Bau- und Wohnungswesen"@de, + "Construction, logement"@fr, + "Costruzione e abitazione"@it, + "Construction and housing"@en ; + skos:mappingRelation euthemes:SOCI , + geothemes:structure . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Bevölkerung"@de, + "Population"@fr, + "Popolazione"@it, + "Population"@en ; + skos:mappingRelation euthemes:SOCI , + geothemes:geothemes:society . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Bildung, Wissenschaft"@de, + "Education, science"@fr, + "Formazione e scienza"@it, + "Education and science"@en ; + skos:mappingRelation euthemes:EDUC. + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Energie"@de, + "Energie"@fr, + "Energia"@it, + "Energy"@en ; + skos:mappingRelation euthemes:ENER , + geothemes:utilitiesCommunication_Energy , + geothemes:utilitiesCommunication . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Finanzen"@de, + "Finances"@fr, + "Finanze"@it, + "Finances"@en ; + skos:mappingRelation euthemes:ECON . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Geographie"@de, + "Géographie"@fr, + "Geografia"@it, + "Geography"@en ; + skos:mappingRelation euthemes:REGI , + geothemes:imageryBaseMapsEarthCover , + geothemes:imageryBaseMapsEarthCover_BaseMaps , + geothemes:imageryBaseMapsEarthCover_Imagery , + geothemes:imageryBaseMapsEarthCover_EarthCover , + geothemes:location , + geothemes:elevation , + geothemes:boundaries , + geothemes:planningCadastre , + geothemes:planningCadastre_Planning , + geothemes:planningCadastre_Cadastre , + geothemes:geoscientificInformation , + geothemes:geoscientificInformation_Geology , + geothemes:geoscientificInformation_Soils , + geothemes:geoscientificInformation_NaturalHazards , + geothemes:biota , + geothemes:oceans , + geothemes:inlandWaters , + geothemes:climatologyMeteorologyAtmosphere , + geothemes:environment , + geothemes:environment_EnvironmentalProtection , + geothemes:environment_NatureProtection , + geothemes:society , + geothemes:health , + geothemes:structure , + geothemes:transportation , + geothemes:utilitiesCommunication , + geothemes:utilitiesCommunication_Energy , + geothemes:utilitiesCommunication_Utilities , + geothemes:utilitiesCommunication_Communication , + geothemes:intelligenceMilitary , + geothemes:farming , + geothemes:economy . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Gesetzgebung"@de, + "Législation"@fr, + "Legislazione"@it, + "Legislation"@en ; + skos:mappingRelation euthemes:JUST . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Gesundheit"@de, + "Santé"@fr, + "Sanità"@it, + "Health"@en ; + skos:mappingRelation euthemes:HEAL , + geothemes:health . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Handel"@de, + "Commerce"@fr, + "Commercio"@it, + "Trade"@en ; + skos:mappingRelation euthemes:ECON . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Industrie, Dienstleistungen"@de, + "Industrie, services"@fr, + "Industria, servizi"@it, + "Industry and services"@en ; + skos:mappingRelation euthemes:ECON . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Kriminalität, Strafrecht"@de, + "Criminalité, droit pénal"@fr, + "Criminalità, diritto penale"@it, + "Crime, criminal justice"@en ; + skos:mappingRelation euthemes:JUST . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Kultur, Medien, Informationsgesellschaft, Sport"@de, + "Culture, médias, société de l'information, sport"@fr, + "Cultura, media, società dell'informazione, sport"@it, + "Culture, media, information society, sport"@en ; + skos:mappingRelation euthemes:EDUC , + geothemes:geothemes:society , + geothemes:utilitiesCommunication_Communication , + geothemes:utilitiesCommunication . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Land- und Forstwirtschaft"@de, + "Agriculture, sylviculture"@fr, + "Agricoltura, selvicoltura"@it, + "Agriculture, forestry"@en ; + skos:mappingRelation euthemes:AGRI , + geothemes:geothemes:biota , + geothemes:farming . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Mobilität und Verkehr"@de, + "Mobilité et transports"@fr, + "Mobilità e trasporti"@it, + "Mobility and Transport"@en ; + skos:mappingRelation euthemes:TRAN , + geothemes:transportation . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Öffentliche Ordnung und Sicherheit"@de, + "Ordre et sécurité publics"@fr, + "Ordine pubblico e sicurezza pubblica"@it, + "Public order and security"@en ; + skos:mappingRelation euthemes:GOVE , + geothemes:intelligenceMilitary . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Politik"@de, + "Politique"@fr, + "Politica"@it, + "Politics"@en ; + skos:mappingRelation euthemes:GOVE . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Preise"@de, + "Prix"@fr, + "Prezzi"@it, + "Prices"@en ; + skos:mappingRelation euthemes:ECON . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Raum und Umwelt"@de, + "Territoire et environnement"@fr, + "Territorio e ambiente"@it, + "Territory and environment"@en ; + skos:mappingRelation euthemes:ENVI , + geothemes:imageryBaseMapsEarthCover , + geothemes:imageryBaseMapsEarthCover_BaseMaps , + geothemes:imageryBaseMapsEarthCover_Imagery , + geothemes:imageryBaseMapsEarthCover_EarthCover , + geothemes:location , + geothemes:elevation , + geothemes:boundaries , + geothemes:planningCadastre , + geothemes:planningCadastre_Planning , + geothemes:planningCadastre_Cadastre , + geothemes:geoscientificInformation , + geothemes:geoscientificInformation_Geology , + geothemes:geoscientificInformation_Soils , + geothemes:geoscientificInformation_NaturalHazards , + geothemes:biota , + geothemes:oceans , + geothemes:inlandWaters , + geothemes:climatologyMeteorologyAtmosphere , + geothemes:environment , + geothemes:environment_EnvironmentalProtection , + geothemes:environment_NatureProtection , + geothemes:utilitiesCommunication , + geothemes:utilitiesCommunication_Energy , + geothemes:utilitiesCommunication_Utilities , + geothemes:utilitiesCommunication_Energy , + geothemes:utilitiesCommunication . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Soziale Sicherheit"@de, + "Protection sociale"@fr, + "Sicurezza sociale"@it, + "Social security"@en ; + skos:mappingRelation euthemes:SOCI . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Statistische Grundlagen"@de, + "Bases statistiques"@fr, + "Basi statistiche"@it, + "Statistical basis"@en ; + skos:mappingRelation euthemes:GOVE . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Tourismus"@de, + "Tourisme"@fr, + "Turismo"@it, + "Tourism"@en ; + skos:mappingRelation euthemes:ECON . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Verwaltung"@de, + "Administration"@fr, + "Amministrazione"@it, + "Administration"@en ; + skos:mappingRelation euthemes:GOVE . + + a skos:Concept ; + skos:inScheme ; + skos:prefLabel "Volkswirtschaft"@de, + "Economie nationale"@fr, + "Economia"@it, + "National economy"@en ; + skos:mappingRelation euthemes:ECON , + geothemes:economy .