DCAT examples formatted and corrected
authorfmaali
Sat, 09 Mar 2013 13:01:34 +0000
changeset 386 37741a001e5e
parent 385 f5d9a531f828
child 387 901a10d6b01a
DCAT examples formatted and corrected
dcat/index.html
--- a/dcat/index.html	Sat Mar 09 11:54:39 2013 +0000
+++ b/dcat/index.html	Sat Mar 09 13:01:34 2013 +0000
@@ -85,7 +85,7 @@
   <thead><tr><th>Prefix</th><th>Namespace</th></tr></thead>
   <tbody>
     <tr><td>dcat</td><td>http://www.w3.org/ns/dcat#</td></tr>
-    <tr><td>dcterms</td><td>http://purl.org/dc/terms/</td></tr>
+    <tr><td>dct</td><td>http://purl.org/dc/terms/</td></tr>
     <tr><td>dctype</td><td>http://purl.org/dc/dcmitype/</td></tr>
     <tr><td>foaf</td><td>http://xmlns.com/foaf/0.1/</td></tr>
     <tr><td>rdf</td><td>http://www.w3.org/1999/02/22-rdf-syntax-ns#</td></tr>
@@ -99,9 +99,9 @@
 <section class="informative">
 <h2 id="overview">Vocabulary Overview</h2>
 <p>DCAT is an RDF vocabulary well-suited to representing government data catalogs such as <a href="http://Data.gov">Data.gov</a> and <a href="http://data.gov.uk">data.gov.uk</a>. DCAT defines three main classes:</p>
-<ul><li> dcat:Catalog represents the catalog
-</li><li> dcat:Dataset represents a dataset in a catalog
-</li><li> dcat:Distribution represents an accessible form of a dataset as for example a downloadable file, an RSS feed or a web service that provides the data.
+<ul><li> <code><a>dcat:Catalog</a></code> represents the catalog
+</li><li> <code><a>dcat:Dataset</a></code> represents a dataset in a catalog
+</li><li> <code><a>dcat:Distribution</a></code> represents an accessible form of a dataset as for example a downloadable file, an RSS feed or a web service that provides the data.
 </li></ul>
 <p>Another important class in DCAT is dcat:CatalogRecord which describes a dataset entry in the catalog. Notice that while dcat:Dataset represents the dataset itself, dcat:CatalogRecord represents the record that describes a dataset in the catalog. The use of the CatalogRecord is considered optional. It is used to capture provenance information about dataset entries in a catalog. If this distinction is not necessary then CatalogRecord can be safely ignored.</p>
 
@@ -109,50 +109,48 @@
 
 <section>
 <h2 id="example">Basic Example</h2>
-<p>This example provides a quick overview of how dcat might be used to represent a government catalog and its datasets. </p>
+<p>This example provides a quick overview of how DCAT might be used to represent a government catalog and its datasets. </p>
 
 <p>First, the catalog description:
 </p>
 <pre>  &nbsp;:catalog
        a dcat:Catalog&nbsp;;
-       dcterms:title "Imaginary catalog"&nbsp;;
-       rdfs:label "Imaginary catalog"&nbsp;;
+       dct:title "Imaginary Catalog"&nbsp;;
+       rdfs:label "Imaginary Catalog"&nbsp;;
        foaf:homepage &lt;http://example.org/catalog&gt;&nbsp;;
-       dcterms:publisher&nbsp;:transparency-office&nbsp;;
-       dcterms:language &lt;http://id.loc.gov/vocabulary/iso639-1/en&gt; &nbsp;;
-       dcat:dataset&nbsp;:dataset-001&nbsp; , :dataset-002 , dataset-003 ; 
+       dct:publisher&nbsp;:transparency-office&nbsp;;
+       dct:language &lt;http://id.loc.gov/vocabulary/iso639-1/en&gt; &nbsp;;
+       dcat:dataset&nbsp;:dataset-001&nbsp; , :dataset-002 , :dataset-003 ; 
        .
 </pre>
 <p>The publisher of the catalog has the relative URI&nbsp;:transparency-office. Further description of the publisher can be provided as in the following example:
 </p>
 <pre>  &nbsp;:transparency-office
-       a foaf:Agent&nbsp;;
+       a foaf:Organization&nbsp;;
        rdfs:label "Transparency Office"&nbsp;;
        .
 </pre>
 <p>The catalog lists each of its datasets via dcat:dataset property. In the example above, an example dataset was mentioned with the relative URI&nbsp;:dataset-001. A possible description of it using dcat is shown below:
 </p>
 <pre>  &nbsp;:dataset-001
-       a       dcat:Dataset&nbsp;;
-       dcterms:title "Imaginary dataset"&nbsp;;
+       a dcat:Dataset&nbsp;;
+       dct:title "Imaginary dataset"&nbsp;;
        dcat:keyword "accountability","transparency" ,"payments"&nbsp;;
-       dcat:theme&nbsp;:accountability&nbsp;;
-       dcterms:issued "2011-12-05"^^xsd:date&nbsp;;
-       dcterms:modified "2011-12-05"^^xsd:date&nbsp;;
-       dcterms:publisher&nbsp;:finance-ministry&nbsp;;
-       dcterms:accrualPeriodicity "every six months"&nbsp;;
-       dcterms:language "en"^^xsd:language&nbsp;;
-       dcat:Distribution&nbsp;:dataset-001-csv&nbsp;;
+       dct:issued "2011-12-05"^^xsd:date&nbsp;;
+       dct:modified "2011-12-05"^^xsd:date&nbsp;;
+       dct:publisher&nbsp;:finance-ministry&nbsp;;
+       dct:language &lt;http://id.loc.gov/vocabulary/iso639-1/en&gt; &nbsp;;
+       dcat:distribution&nbsp;:dataset-001-csv&nbsp;;
        .
 </pre>
 
 
-<p>The dataset can be downloaded as a 5Kb CSV file. This is
-represented via the RDF resource of type dcat:Distribution&nbsp;:dataset-001-csv.
+<p>The dataset distribution :dataset-001-csv can be downloaded as a 5Kb CSV file. This information is 
+represented via an RDF resource of type dcat:Distribution.
 </p>
 <pre>  &nbsp;:dataset-001-csv
        a dcat:Distribution&nbsp;;
-       dcat:accessURL &lt;http://www.example.org/files/001.csv&gt;&nbsp;;
+       dcat:downloadURL &lt;http://www.example.org/files/001.csv&gt;&nbsp;;
        dcterms:title "CSV distribution of imaginary dataset 001"&nbsp;;
        dcat:mediaType "text/csv" ;
        dcat:byteSize "5120"^^xsd:decimal ;
@@ -173,40 +171,75 @@
        .
 </pre>
 
-<p>Notice that this dataset is classified under the domain represented by the relative URI&nbsp;:accountability. This should be part of the domains set identified by the URI&nbsp;:themes that was used to describe the catalog domains. An example SKOS description
+<pre>  &nbsp;:dataset-001 dcat:theme&nbsp;:accountability&nbsp; .
+</pre>
+<p>Notice that this dataset is classified under the domain represented by the relative URI&nbsp;:accountability. This should be part of the concepts scheme identified by the URI&nbsp;:themes that was used to describe the catalog domains. An example SKOS description
 </p>
-<pre>   &nbsp;:accountability 
-        a skos:Concept&nbsp;;
-        skos:inScheme&nbsp;:themes&nbsp;;
-        skos:prefLabel "Accountability"&nbsp;;
-        .
+<pre>  &nbsp;:accountability 
+       a skos:Concept&nbsp;;
+       skos:inScheme&nbsp;:themes&nbsp;;
+       skos:prefLabel "Accountability"&nbsp;;
+       .
 </pre>
 </section>
 
 <section>
 <h2 id="example-catalog-record">Describing catalog records metadata</h2>
-<p>Finally, if the catalog publisher decides to keep metadata
+<p>If the catalog publisher decides to keep metadata
 describing its records (i.e. the records containing metadata
-describing the datasets) dcat:CatalogRecord can be used. For example,
-while &nbsp;:dataset-001 was issued on 2011-12-05, its description on Imaginary Catalog was added on 2011-12-11. This can be represented by dcat:
+describing the datasets), dcat:CatalogRecord can be used. For example,
+while &nbsp;:dataset-001 was issued on 2011-12-05, its description on Imaginary Catalog was added on 2011-12-11. This can be represented by DCAT as in the following:
 </p>
+<pre>  &nbsp;:catalog  dcat:record&nbsp;:record-001&nbsp; .
+</pre>
+
 <pre>  &nbsp;:record-001
        a dcat:CatalogRecord&nbsp;;
        foaf:primaryTopic&nbsp;:dataset-001&nbsp;;
        dct:issued "2011-12-11"^^xsd:date&nbsp;;
-   .
-  &nbsp;:catalog
-       dcat:record&nbsp;:record-001&nbsp;;
-   .
+       .
+  
 </pre>
 </section>
 
 <section>
 <h2 id="">A dataset available only behind some Web page</h2>
+<p>:dataset-002 is available as a CSV file. However :dataset-002 can only be obtained through some Web page 
+where the user needs to click some links, provide some information and check some boxes 
+before accessing the data</p>
+
+<pre>  &nbsp;:dataset-002 
+       a dcat:Dataset ;
+       dcat:landingPage &lt;http://example.org/dataset-002.html&gt; ;
+       dcat:distribution :dataset-002-csv
+       .
+  &nbsp;:dataset-002-csv 
+       a dcat:Distribution ;
+       dcat:accessURL &lt;http://example.org/dataset-002.html&gt; ;
+       dcat:mediaType "text/csv" ;
+       .
+</pre>
+
+Notice the use of dcat:landingPage and the definition of the dcat:Distribution instance.
 </section>
 
 <section>
 <h2 id="">A dataset available as download and behind some Web page</h2>
+<p>On the other hand, :dataset-003 can be obtained through some landing page but also can be downloaded from a known URL.
+</p>
+<pre>  &nbsp;:dataset-003 
+       a dcat:Dataset ;
+       dcat:landingPage &lt;http://example.org/dataset-003.html&gt; ;
+       dcat:distribution :dataset-003-csv
+       .
+  &nbsp;:dataset-003-csv 
+       a dcat:Distribution ;
+       dcat:downloadURL &lt;http://example.org/dataset-003.csv&gt; .
+       dcat:mediaType "text/csv" ;
+       .
+</pre>
+Notice that we used dcat:downloadURL with the downloadable distribution and that the other distribution through the landing page
+does not have to be defined as a spearate dcat:Distribution instance.
 </section>
 
 </section>