# Dataset

## **EARLY RELEASE NOTICE**

This class represents a draft that is designed to inform the OpenActive specification work with implementation feedback. It is mostly stable, as it based almost entirely on schema.org. HOWEVER, IT IS STILL SUBJECT TO CHANGE, as the [Dataset API Discovery specification](https://openactive.io/dataset-api-discovery/EditorsDraft/) evolves.

This type is derived from <https://schema.org/Dataset>, which means that any of this type's properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.

## **Properties**

### **Required properties**

| Property      | Expected Type                                                                            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| @type         | [`Text`](https://schema.org/Text)                                                        | Must always be present and set to `"@type": "Dataset"`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| @id           | [`URL`](https://schema.org/URL)                                                          | <p>A unique URI-based identifier for the record.</p><p><code>@id</code> properties are used as identifiers for compatibility with JSON-LD. The value of such a property must always be an absolute URI that provides a stable globally unique identifier for the resource, as described in <a href="https://tools.ietf.org/html/rfc3986">RFC3986</a>.</p><p>The primary purpose of the URI format in this context is to provide natural namespacing for the identifier. Hence, the URI itself may not resolve to a valid endpoint, but must use a domain name controlled by the resource owner (the organisation responsible for the OpenActive open data feed).</p><p><br>Example</p><p><code>"@id": "<https://opendata.fusion-lifestyle.com/OpenActive/>"</code></p> |
| description   | [`Text`](https://schema.org/Text)                                                        | <p>A plain text description of the <code>Dataset</code>, which must not include HTML or other markup.</p><p><br>Example</p><p><code>"description": "Near real-time availability and rich descriptions relating to the sessions and facilities available from {OrganisationName}, published using the OpenActive Modelling Specification 2.0."</code></p>                                                                                                                                                                                                                                                                                                                                                                                                               |
| discussionUrl | [`URL`](https://schema.org/URL)                                                          | <p>A URL that can be used to raise issues related to the <code>Dataset</code> via a public forum.</p><p><br>Example</p><p><code>"discussionUrl": "<https://github.com/gladstonemrm/FusionLifestyle/issues>"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| distribution  | Array of [`DataDownload`](https://developer.openactive.io/data-model/types/datadownload) | <p>An array of feeds within the dataset</p><p><br>Example</p><p><code>"distribution": \[</code><br>  <code>{</code><br>    <code>"@type": "DataDownload",</code><br>    <code>"name": "FacilityUse",</code><br>    <code>"additionalType": "<https://openactive.io/FacilityUse>",</code><br>    <code>"encodingFormat": "application/vnd.openactive.rpde+json; version=1",</code><br>    <code>"contentUrl": "<https://opendata.leisurecloud.live/api/feeds/fusion-lifestyle-fl-live-facility-uses>"</code><br>  <code>}</code><br><code>]</code></p>                                                                                                                                                                                                                  |
| documentation | [`URL`](https://schema.org/URL)                                                          | <p>A link to documentation related to the <code>Dataset</code>, or a link to the OpenActive developer documentation using <code><https://permalink.openactive.io/dataset-site/open-data-documentation></code> if no Dataset-specific documentation is available.</p><p><br>Example</p><p><code>"documentation": "<https://permalink.openactive.io/dataset-site/open-data-documentation>"</code></p>                                                                                                                                                                                                                                                                                                                                                                    |
| inLanguage    | Array of [`Text`](https://schema.org/Text)                                               | <p>An array of languages included in the Dataset's content. Please use one of the language codes from the IETF BCP 47 standard.</p><p><br>Example</p><p><code>"inLanguage": \[</code><br>  <code>"en-GB"</code><br><code>]</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| keywords      | Array of [`Text`](https://schema.org/Text)                                               | <p>Keywords for search engine optimisation</p><p><br>Example</p><p><code>"keywords": \[</code><br>  <code>"Sessions",</code><br>  <code>"Facilities",</code><br>  <code>"Activities",</code><br>  <code>"Sports",</code><br>  <code>"Physical Activity",</code><br>  <code>"OpenActive"</code><br><code>]</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| license       | [`URL`](https://schema.org/URL)                                                          | Must always be present and set to `"license": "https://creativecommons.org/licenses/by/4.0/"`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| name          | [`Text`](https://schema.org/Text)                                                        | <p>The name of the <code>Dataset</code></p><p><br>Example</p><p><code>"name": "Acme Leisure Sessions and Facilities"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| publisher     | [`Organization`](https://developer.openactive.io/data-model/types/organization)          | <p>The organization ultimately responsible for this <code>Dataset</code>.</p><p><br>Example</p><p><code>"publisher": {</code><br>  <code>"@type": "Organization",</code><br>  <code>"name": "Central Speedball Association",</code><br>  <code>"url": "<http://www.speedball-world.com>"</code><br><code>}</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| schemaVersion | [`URL`](https://schema.org/URL)                                                          | <p>Indicates the version of OpenActive Modelling Opportunity Data Specification with which this <code>Dataset</code> conforms, by specifying its URL.</p><p><br>Example</p><p><code>"schemaVersion": "<https://openactive.io/modelling-opportunity-data/2.0/>"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| url           | [`URL`](https://schema.org/URL)                                                          | <p>The URL of the dataset site.</p><p><br>Example</p><p><code>"url": "<https://opendata.fusion-lifestyle.com/OpenActive/>"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

### **Recommended properties**

| Property        | Expected Type                                                                                                                               | Description                                                                                                                                                                                                                                                    |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| backgroundImage | [`ImageObject`](https://developer.openactive.io/data-model/types/imageobject)                                                               | <p>A background image for the <code>Dataset</code>.</p><p><br>Example</p><p><code>"backgroundImage": {</code><br>  <code>"@type": "ImageObject",</code><br>  <code>"url": "<http://example.com/static/image/speedball_large.jpg>"</code><br><code>}</code></p> |
| dateModified    | [`DateTime`](https://schema.org/DateTime)                                                                                                   | <p>The date this <code>Dataset</code> was last updated. For RPDE feeds this may simply be the date and time that the Dataset Site was rendered, which may be cached.</p><p><br>Example</p><p><code>"dateModified": "2018-01-27T12:00:00Z"</code></p>           |
| datePublished   | <p><a href="https://schema.org/DateTime"><code>DateTime</code></a><br>- or -<br><a href="https://schema.org/Date"><code>Date</code></a></p> | <p>The date this <code>Dataset</code> was first published. Can be specified as a schema:Date or schema:DateTime.</p><p><br>Example</p><p><code>"datePublished": "2018-01-27T12:00:00Z"</code></p>                                                              |

### **Optional properties**

| Property       | Expected Type                                                                       | Description                                                                                              |
| -------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| accessService  | [`WebAPI`](https://developer.openactive.io/data-model/types/webapi)                 | Information about the Open Booking API. Note this property is in EARLY RELEASE AND IS SUBJECT TO CHANGE. |
| bookingService | [`BookingService`](https://developer.openactive.io/data-model/types/bookingservice) | Information about the Booking System or publishing platform                                              |

Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution License (CC-BY V4.0)](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [MIT License](https://opensource.org/licenses/MIT), for anyone to access, use and share; using attribution "[OpenActive](https://www.openactive.io/)".
