Skip to content

Commit

Permalink
Merge pull request #275 from opendata-swiss/add-access-service
Browse files Browse the repository at this point in the history
add new property access service to dcat page
  • Loading branch information
mispichtig authored Feb 2, 2024
2 parents bf1ab07 + 5ba61a2 commit 8514766
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
22 changes: 22 additions & 0 deletions source/content/glossar/bibliothek/dcat-ap-ch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ Translatable elements are marked as such under usage notes.
* - :fa:`exclamation` :ref:`temporal resolution <dcat-distribution-temporal-resolution>`
- dcat:temporalResolution
- optional, :fa:`exclamation` new property
* - :fa:`exclamation` :ref:`accessService <dcat-distribution-access-service>`
- dcat:accessService
- optional, :fa:`exclamation` new property, read usage notes

.. _dcat-ap-ch-catalog:

Expand Down Expand Up @@ -1167,3 +1170,22 @@ dcat:temporalResolution (DCAT)
:header: Property ``dcat:temporalResolution`` of ``dcat:Distribution`` in Rdf/xml

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

.. _dcat-distribution-access-service:

dcat:accessService (DCAT)
^^^^^^^^^^^^^^^^^^^^^^^^^^

.. container:: Mapping

.. include:: dcat-definitions/distribution-access-service.rst

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

.. include:: dcat-examples/distribution-access-service-ttl.rst

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

.. include:: dcat-examples/distribution-access-service-rdf.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:DCAT URI: `dcat:accessService <https://www.w3.org/TR/vocab-dcat/#Property:distribution_access_service>`__
:Domain: dcat:Distribution
:Value: `dcat:DataService <https://www.w3.org/TR/vocab-dcat/#Class:Data_Service>`__ (`Class: Data Service <https://dcat-ap.ch/releases/2.0/dcat-ap-ch.html#Class:Data_Service>`__)
:Requirement Level: Optional
:Cardinality: 0..n
:Description: This property refers to a data service that gives access to the distribution of the Dataset.
:Usage Notes: The class dcat:DataService is currently not implemented in opendata.swiss and will therefore not be imported.
However, if the property dcat:accessService exists in the catalogue, it will be imported and forwarded to data.europa.eu.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.. 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#">
<rdf:Description rdf:about="https://swisstopo/opendata/123">
<rdf:type rdf:resource="http://www.w3.org/ns/dcat#Distribution"/>
<dcat:accessService rdf:resource="https://swisstopo/data/123"/>
</rdf:Description>
<rdf:Description rdf:about="https://swisstopo/data/123">
<rdf:type rdf:resource="http://www.w3.org/ns/dcat#DataService"/>
</rdf:Description>
</rdf:RDF>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. code-block:: Turtle
:emphasize-lines: 3,4,5
@prefix dcat: <http://www.w3.org/ns/dcat#> .
<https://swisstopo/opendata/123>
a dcat:Distribution ;
dcat:accessService <https://swisstopo/data/123> .
<https://swisstopo/data/123>
a dcat:DataService .

0 comments on commit 8514766

Please sign in to comment.