Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add temporal resolution and fix minor errors #273

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions source/content/glossar/bibliothek/dcat-ap-ch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ Translatable elements are marked as such under usage notes.
* - :ref:`related resource <dcat-dataset-relation>`
- dct:relation
- :fa:`exclamation` optional, **mandatory** for federal level, the legal basis must be indicated here
* - :fa:`exclamation` :ref:`qualifiedRelation <dcat-dataset-qualified-relation>`
* - :fa:`exclamation` :ref:`qualified relation <dcat-dataset-qualified-relation>`
- dcat:qualifiedRelation
- optional :fa:`exclamation` replaces the property rdfs:seeAlso
- optional, :fa:`exclamation` replaces the property rdfs:seeAlso
* - :fa:`exclamation` :ref:`documentation <dcat-dataset-documentation>`
- foaf:page
- optional, :fa:`exclamation` new property
Expand Down Expand Up @@ -337,6 +337,9 @@ Translatable elements are marked as such under usage notes.
* - :fa:`exclamation` :ref:`documentation <dcat-distribution-documentation>`
- foaf:page
- optional, :fa:`exclamation` new property
* - :fa:`exclamation` :ref:`temporal resolution <dcat-distribution-temporal-resolution>`
- dcat:temporalResolution
- optional, :fa:`exclamation` new property

.. _dcat-ap-ch-catalog:

Expand Down Expand Up @@ -570,7 +573,7 @@ dct-modified (DCAT)
.. _dcat-dataset-theme:

dcat:theme (DCAT)
^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^

.. container:: Mapping

Expand Down Expand Up @@ -810,7 +813,7 @@ dct:accrual-periodicity (DCAT)
.. _dcat-dataset-qualified-relation:

dcat:qualifiedRelation (DCAT)
^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. container:: Mapping

Expand Down Expand Up @@ -1145,3 +1148,22 @@ foaf:page (DCAT)
:header: Property ``foaf:page`` of ``dcat:Distribution`` in Rdf/xml

.. include:: dcat-examples/distribution-documentation-rdf.rst

.. _dcat-distribution-temporal-resolution:

dcat:temporalResolution (DCAT)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. container:: Mapping

.. include:: dcat-definitions/distribution-temporal-resolution.rst

.. toggle-header::
:header: Property ``dcat:temporalResolution`` of ``dcat:Distribution`` in Turtle

.. include:: dcat-examples/distribution-temporal-resolution-ttl.rst

.. toggle-header::
:header: Property ``dcat:temporalResolution`` of ``dcat:Distribution`` in Rdf/xml

.. include:: dcat-examples/distribution-temporal-resolution-rdf.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
:DCAT URI: dcat:temporalResolution
:Domain: dcat:Distribution
:Value: ``xsd:duration`` https://www.w3.org/TR/xmlschema11-2/#duration
:Requirement Level: Optional
:Cardinality: 0..1
:Description: Minimum time period resolvable in the dataset distribution.
:Usage Notes: If the dataset is a time-series this should correspond to the spacing
of the items in the series. For other kinds of dataset, this property will
usually indicate the smallest time difference between items in the dataset.

:Usage Notes: Alternative temporal resolutions might be provided in different dataset distributions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. code-block:: Turtle
:emphasize-lines: 6,7,8,9,10
:emphasize-lines: 7

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
.. code-block:: Turtle
:emphasize-lines: 6,7,8,9,10
:emphasize-lines: 5,6

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<https://bag/covid-19> a dcat:Dataset ;
foaf:Document [
rdf:about "https://www.covid19.admin.ch/api/data/documentation" ;
], [
rdf:about "https://de.wikipedia.org/wiki/Datenmanagement" ;
] .
foaf:Document <https://www.covid19.admin.ch/api/data/documentation> ,
<https://de.wikipedia.org/wiki/Datenmanagement> .


Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. code-block:: Turtle
:caption: A ``dcat:Dataset`` with a ``rdfs:seeAlso`` in Turtle
:caption: A ``dcat:Dataset`` with a ``dcat:qualifiedRelation`` in Turtle
:emphasize-lines: 6,7,8

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

<https://swisstopo/123>
a dcat:Dataset ;
dcat:theme <http://opendata.swiss/themes/population>,
<http://opendata.swiss/themes/territory> ;
dcat:theme <http://publications.europa.eu/resource/authority/data-theme/REGI>,
<http://publications.europa.eu/resource/authority/data-theme/ENVI> ;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. code-block:: Turtle
:caption: The access url is mandatory
:emphasize-lines: 7
:emphasize-lines: 6

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dct: <http://purl.org/dc/terms/> .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
.. code-block:: Turtle
:emphasize-lines: 6,7,8,9,10
:emphasize-lines: 4

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<https://bag/covid-19> a dcat:Distribution ;
foaf:Document [
rdf:about "https://www.covid19.admin.ch/api/data/documentation#data-context-api"
] .
foaf:Document <https://www.covid19.admin.ch/api/data/documentation#data-context-api> .


Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
.. code-block:: xml
:caption: The format is used for distributions that have no download url
:emphasize-lines: 8
:emphasize-lines: 7

<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcat="http://www.w3.org/ns/dcat#"
xmlns:dc="http://purl.org/dc/terms/">
xmlns:dct="http://purl.org/dc/terms/">

<dcat:Distribution rdf:about=""https://data.tg.ch/api/v2/catalog/datasets/sk-stat-47/exports/csv"">
<dcat:accessURL rdf:resource=""https://data.tg.ch/api/v2/catalog/datasets/sk-stat-47/exports/csv""/>
<dcat:Distribution rdf:about="https://data.tg.ch/api/v2/catalog/datasets/sk-stat-47/exports/csv">
<dct:format rdf:resource="http://publications.europa.eu/resource/authority/file-type/CSV"/>
</dcat:Distribution>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
.. code-block:: Turtle
:caption: The format is used for distributions that have no download url
:emphasize-lines: 8
:emphasize-lines: 6

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://data.tg.ch/api/v2/catalog/datasets/sk-stat-47/exports/csv>
a dcat:Distribution ;
dcat:accessURL <https://data.tg.ch/api/v2/catalog/datasets/sk-stat-47/exports/csv> ;
dct:format <http://publications.europa.eu/resource/authority/file-type/CSV> .
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
.. code-block:: xml
:caption: the license statement comes from a controlled vocabulary
:emphasize-lines: 8,9,10
:emphasize-lines: 7,8,9

<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcat="http://www.w3.org/ns/dcat#"
xmlns:dct="http://purl.org/dc/terms/">

<dcat:Distribution rdf:about="http://stratigraphy.org/ICSchart/ChronostratChart2017-02.jpg">
<dcat:accessURL rdf:resource="http://stratigraphy.org/ICSchart/ChronostratChart2017-02.jpg"/>
<dct:license rdf:about="http://dcat-ap.ch/vocabulary/licenses/terms_by">
<rdf:type rdf:resource="http://purl.org/dc/terms/RightsStatement"/>
</dct:license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
:caption: the license statement comes from a controlled vocabulary
:emphasize-lines: 7,8,9,10

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dct: <http://purl.org/dc/terms/> .

<http://stratigraphy.org/ICSchart/ChronostratChart2017-02.jpg>
a dcat:Distribution ;
dcat:accessURL <http://stratigraphy.org/ICSchart/ChronostratChart2017-02.jpg> ;
dct:license [
rdf:type dct:LicenseDocument ;
rdf:about <http://dcat-ap.ch/vocabulary/licenses/terms_by> ;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. code-block:: xml
:emphasize-lines: 8

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcat="http://www.w3.org/ns/dcat#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">

<dcat:Distribution rdf:about="https://swisstopo/opendata/123">
<dcat:temporalResolution rdf:datatype="http://www.w3.org/2001/XMLSchema#duration">P1D</dcat:temporalResolution>
</dcat:Distribution>
</rdf:RDF>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. code-block:: Turtle
:emphasize-lines: 6

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://swisstopo/opendata/123>
a dcat:Distribution ;
dcat:temporalResolution "P1D"^^xsd:duration .
Loading