diff --git a/dcat/examples/compress-and-package.ttl b/dcat/examples/compress-and-package.ttl new file mode 100644 index 000000000..2d0a7225b --- /dev/null +++ b/dcat/examples/compress-and-package.ttl @@ -0,0 +1,42 @@ +# compression + +@prefix dcat: . +@prefix dct: . + + a dcat:Distribution ; + dcat:accessURL ; + dcat:downloadURL ; + dct:license ; + dct:conformsTo ; + dct:format ; + dcat:mediaType ; + dcat:compressFormat . + +# packaging + +@prefix dcat: . +@prefix dct: . + + a dcat:Distribution ; + dcat:accessURL ; + dcat:downloadURL ; + dct:license ; + dct:conformsTo ; + dct:format ; + dcat:mediaType ; + dcat:packageFormat . + +# packaging and compression + +@prefix dcat: . +@prefix dct: . + + a dcat:Distribution ; + dcat:accessURL ; + dcat:downloadURL ; + dct:conformsTo ; + dct:license ; + dct:format ; + dcat:mediaType ; + dcat:packageFormat ; + dcat:compressFormat . diff --git a/dcat/index.html b/dcat/index.html index 35be817d9..f45398370 100644 --- a/dcat/index.html +++ b/dcat/index.html @@ -1963,7 +1963,7 @@

Property: packaging format

Definition:The format of the file in which one or more data files are grouped together, e.g. to enable a set of related files to be downloaded together. Range:dct:MediaType - Usage note:This property to be used when the files in the distribution are packaged, e.g. in a RAR file. The format SHOULD be expressed using a media type as defined by IANA [[!IANA-MEDIA-TYPES]], if available. + Usage note:This property to be used when the files in the distribution are packaged, e.g. in a TAR file. The format SHOULD be expressed using a media type as defined by IANA [[!IANA-MEDIA-TYPES]], if available. See also:compression format. @@ -3957,6 +3957,72 @@

Data services

+
+

Compressed and packaged distributions

+ +

The first example is for a distribution with a downloadable file that is compressed into a GZIP file. +

+ +
+
+        @prefix dcat: <http://www.w3.org/ns/dcat#> .
+        @prefix dct: <http://purl.org/dc/terms/> .
+
+        <https://data.gov.cz/zdroj/datová-sada/247025684/22> a dcat:Distribution ;
+          dcat:accessURL <https://mvcr1.opendata.cz/czechpoint/2007.csv.gz> ;
+          dcat:downloadURL <https://mvcr1.opendata.cz/czechpoint/2007.csv.gz> ;
+          dct:license <https://data.gov.cz/podmínky-užití/volný-přístup/> ;
+          dct:conformsTo <https://mvcr1.opendata.cz/czechpoint/2007.json> ;
+          dct:format <http://publications.europa.eu/resource/authority/file-type/CSV> ;
+          dcat:mediaType <http://www.iana.org/assignments/media-types/text/csv> ;
+          dcat:compressFormat <http://www.iana.org/assignments/media-types/application/gzip> .
+
+        
+ +

The second example is for a distribution with several files packed into a TAR file. +

+ +
+
+          @prefix dcat: <http://www.w3.org/ns/dcat#> .
+          @prefix dct: <http://purl.org/dc/terms/> .
+
+          <https://data.gov.cz/zdroj/datová-sada/247025684/22> a dcat:Distribution ;
+            dcat:accessURL <https://mvcr1.opendata.cz/czechpoint/data.tar> ;
+            dcat:downloadURL <https://mvcr1.opendata.cz/czechpoint/data.tar> ;
+            dct:license <https://data.gov.cz/podmínky-užití/volný-přístup/> ;
+            dct:conformsTo <https://mvcr1.opendata.cz/czechpoint/2007.json> ;
+            dct:format <http://publications.europa.eu/resource/authority/file-type/CSV> ;
+            dcat:mediaType <http://www.iana.org/assignments/media-types/text/csv> ;
+            dcat:packageFormat <http://publications.europa.eu/resource/authority/file-type/TAR> .
+
+        
+ +

The third example is for a distribution with several files packed into a TAR file which has been compressed into a GZIP file. +

+ +
+
+          @prefix dcat: <http://www.w3.org/ns/dcat#> .
+          @prefix dct: <http://purl.org/dc/terms/> .
+
+          <https://data.gov.cz/zdroj/datová-sada/247025684/22> a dcat:Distribution ;
+            dcat:accessURL <https://mvcr1.opendata.cz/czechpoint/data.tar.gz> ;
+            dcat:downloadURL <https://mvcr1.opendata.cz/czechpoint/data.tar.gz> ;
+            dct:conformsTo <https://mvcr1.opendata.cz/czechpoint/2007.json> ;
+            dct:license <https://data.gov.cz/podmínky-užití/volný-přístup/> ;
+            dct:format <http://publications.europa.eu/resource/authority/file-type/CSV> ;
+            dcat:mediaType <http://www.iana.org/assignments/media-types/text/csv> ;
+            dcat:packageFormat <http://publications.europa.eu/resource/authority/file-type/TAR> ;
+            dcat:compressFormat <http://www.iana.org/assignments/media-types/application/gzip> .
+
+        
+

+ These examples are available from the DXWG code repository at compress-and-package.ttl +

+ +
+

More examples needed