From 8c7bb08d17eb1a4fc93ef9e1d35d3c5c1c4817f5 Mon Sep 17 00:00:00 2001 From: makxdekkers Date: Thu, 21 Feb 2019 14:13:38 +0100 Subject: [PATCH 1/4] Create compress&package --- dcat/examples/compress&package | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dcat/examples/compress&package diff --git a/dcat/examples/compress&package b/dcat/examples/compress&package new file mode 100644 index 000000000..c63b9aa67 --- /dev/null +++ b/dcat/examples/compress&package @@ -0,0 +1,42 @@ +@prefix dcat: . +@prefix dct: . + +# compression + + 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 . From ded07f5213888bde333b3dc1df8f2274d8837bfd Mon Sep 17 00:00:00 2001 From: makxdekkers Date: Fri, 22 Feb 2019 14:27:26 +0100 Subject: [PATCH 2/4] Included examples in main document --- dcat/examples/compress&package | 4 +-- dcat/index.html | 65 +++++++++++++++++++++++++++++++++- 2 files changed, 66 insertions(+), 3 deletions(-) diff --git a/dcat/examples/compress&package b/dcat/examples/compress&package index c63b9aa67..2d0a7225b 100644 --- a/dcat/examples/compress&package +++ b/dcat/examples/compress&package @@ -1,8 +1,8 @@ +# compression + @prefix dcat: . @prefix dct: . -# compression - a dcat:Distribution ; dcat:accessURL ; dcat:downloadURL ; diff --git a/dcat/index.html b/dcat/index.html index 35be817d9..c29e8a64c 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,69 @@

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:  .
+        @prefix dct:  .
+
+         a dcat:Distribution ;
+          dcat:accessURL  ;
+          dcat:downloadURL  ;
+          dct:license  ;
+          dct:conformsTo  ;
+          dct:format  ;
+          dcat:mediaType  ;
+          dcat:compressFormat  .
+
+        
+ +

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

+ +
+
+          @prefix dcat:  .
+          @prefix dct:  .
+
+           a dcat:Distribution ;
+            dcat:accessURL  ;
+            dcat:downloadURL  ;
+            dct:license  ;
+            dct:conformsTo  ;
+            dct:format  ;
+            dcat:mediaType  ;
+            dcat:packageFormat  .
+
+        
+ +

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:  .
+          @prefix dct:  .
+
+           a dcat:Distribution ;
+            dcat:accessURL  ;
+            dcat:downloadURL  ;
+            dct:conformsTo  ;
+            dct:license  ;
+            dct:format  ;
+            dcat:mediaType  ;
+            dcat:packageFormat  ;
+            dcat:compressFormat  .
+
+        
+ +
+

More examples needed

From 458e2d2541c0c5a53b75996a88d2780e8059564d Mon Sep 17 00:00:00 2001 From: Alejandra Gonzalez-Beltran Date: Fri, 22 Feb 2019 22:23:56 +0000 Subject: [PATCH 3/4] Changed html characters --- dcat/index.html | 66 ++++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/dcat/index.html b/dcat/index.html index c29e8a64c..b5c419baa 100644 --- a/dcat/index.html +++ b/dcat/index.html @@ -3965,17 +3965,17 @@

Compressed and packaged distributions

 
-        @prefix dcat:  .
-        @prefix dct:  .
-
-         a dcat:Distribution ;
-          dcat:accessURL  ;
-          dcat:downloadURL  ;
-          dct:license  ;
-          dct:conformsTo  ;
-          dct:format  ;
-          dcat:mediaType  ;
-          dcat:compressFormat  .
+        @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> .
 
         
@@ -3984,17 +3984,17 @@

Compressed and packaged distributions

 
-          @prefix dcat:  .
-          @prefix dct:  .
+          @prefix dcat: <http://www.w3.org/ns/dcat#> .
+          @prefix dct: <http://purl.org/dc/terms/> .
 
-           a dcat:Distribution ;
-            dcat:accessURL  ;
-            dcat:downloadURL  ;
-            dct:license  ;
-            dct:conformsTo  ;
-            dct:format  ;
-            dcat:mediaType  ;
-            dcat:packageFormat  .
+          <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> .
 
         
@@ -4003,18 +4003,18 @@

Compressed and packaged distributions

 
-          @prefix dcat:  .
-          @prefix dct:  .
-
-           a dcat:Distribution ;
-            dcat:accessURL  ;
-            dcat:downloadURL  ;
-            dct:conformsTo  ;
-            dct:license  ;
-            dct:format  ;
-            dcat:mediaType  ;
-            dcat:packageFormat  ;
-            dcat:compressFormat  .
+          @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> .
 
         
From b33b07cff23498588ece5a2ce95fa375bf118aa9 Mon Sep 17 00:00:00 2001 From: Simon Cox Date: Sun, 24 Feb 2019 16:19:02 +1100 Subject: [PATCH 4/4] 1. rename ttl file and give it a suffix 2. add a reference in the document to the TTL file --- dcat/examples/{compress&package => compress-and-package.ttl} | 0 dcat/index.html | 3 +++ 2 files changed, 3 insertions(+) rename dcat/examples/{compress&package => compress-and-package.ttl} (100%) diff --git a/dcat/examples/compress&package b/dcat/examples/compress-and-package.ttl similarity index 100% rename from dcat/examples/compress&package rename to dcat/examples/compress-and-package.ttl diff --git a/dcat/index.html b/dcat/index.html index b5c419baa..f45398370 100644 --- a/dcat/index.html +++ b/dcat/index.html @@ -4017,6 +4017,9 @@

Compressed and packaged distributions

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 +