RDF Serializations#

depositar uses RDF serializer provided by ckanext-dcat to expose RDF graph.

For the alignments of the metadata of depositar and RDF vocabularies, please refer to DCAT Profile.

Note

This feature is a work in process. If you have any comment or feedback, please contact us.

Note

The currently supported formats are:

Format

Extension

Media Type

RDF/XML

xml

application/rdf+xml

Turtle

ttl

text/turtle

Notation3

n3

text/n3

JSON-LD

jsonld

application/ld+json

Hint

About the {} in the following sections:

  • For the dataset-id, please fill in the dataset’s URL.

  • For the format, please fill in the Extension in the above table.

  • For the media_type, please fill in the Media Type in the above table.

Method 1: RDF Endpoints#

Catalog endpoint:

https://data.depositar.io/catalog.{format}

Dataset endpoints:

https://data.depositar.io/dataset/{dataset-id}.{format}

You can also access the serialization using the Other Access widget in the bottom left corner of the dataset page:

../_images/rdf_serializations.png

Method 2: Content Negotiation#

Please run the command below:

curl https://data.depositar.io/dataset/{dataset-id} -H Accept:{media_type}

Example#

To get the RDF/XML format of the Example dataset:

Method 1:

https://data.depositar.io/dataset/place-names-in-west-central-district-of-tainan.xml

Method 2:

Run the command below:

curl https://data.depositar.io/dataset/place-names-in-west-central-district-of-tainan -H Accept:application/rdf+xml