Skip to content

Commit

Permalink
Add distribution dates
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed May 7, 2024
1 parent 0e8c795 commit e58d39c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/dataset.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@
{
"@type": "DataDownload",
"encodingFormat": "application/sparql-query",
"contentUrl": "http://data.bibliotheken.nl/sparql"
"contentUrl": "http://data.bibliotheken.nl/sparql",
"dateCreated": "2023-06-01T08:00:00+01:00",
"dateModified": "2024-03-04T01:09:00+01:00"
},
{
"@type": "DataDownload",
"encodingFormat": "text/turtle",
"contentUrl": "http://data.bibliotheken.nl/files/alba_20201016.ttl.gz",
"name": "Datadump Alba Amicorum",
"datePublished": "2019-05-21",
"dateCreated": "2019-05-21",
"dateModified": "2019-08-15",
"contentSize": "614K"
}
Expand Down
20 changes: 20 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,26 @@ The distributions are then included under the `distribution` attribute with the

See [[#distribution-attributes]] for a full overview.

### Creation and modification dates ### {#distribution-date}

Publishers *SHOULD* make known when the [=distribution=] was originally created and when it was last updated.
Please note that this is different from [[#dataset-date|dataset description’s dates]].
Datetimes (‘2019-08-15T08:05:00Z’) are preferred because they offer greater precision,
but simple dates (‘2019-04-14’) are also allowed.

<div class="example">
Specify distribution dates:

<pre highlight=json-ld>
{
"@context": "https://schema.org/",
"@type": "Distribution",
"dateCreated": "2019-04-14",
"dateModified": "2019-08-15T08:05:00"
}
</pre>
</div>

### Developer documentation ### {#developer-docs}

Publishers *SHOULD* link to documentation URLs via the [schema:usageInfo](https://schema.org/usageInfo) attribute. For datadumps this should be documentation about the
Expand Down

0 comments on commit e58d39c

Please sign in to comment.