Skip to content
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
21 changes: 12 additions & 9 deletions jsonschema/definitions/Dataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -718,12 +718,21 @@
"publisher": {
"title": "publisher",
"description": "Organization responsible for publishing and making the dataset available",
"$ref": "/dcat-us/3.0.0/definitions/organization",
"anyOf": [
{
"type": "null",
"title": "Null allowed when not required"
},
{
"$ref": "/dcat-us/3.0.0/definitions/organization",
"description": "inline description of Organization"
}
],
"_oldDocs": {
"uri": "dcterms:publisher",
"range": "foaf:Agent"
},
"requirementLevel": "Mandatory"
"requirementLevel": "Recommended"
},
"relation": {
"title": "related resource",
Expand Down Expand Up @@ -980,13 +989,7 @@
"requirementLevel": "Optional"
}
},
"required": [
"description",
"publisher",
"title",
"contactPoint",
"identifier"
],
"required": ["description", "title", "contactPoint", "identifier"],
"_oldDocs": {
"rdfClass": "dcat:Dataset",
"rationale": "The update of dcat:Dataset is crucial as it aligns the DCAT profile with international standards, offering a standardized and widely recognized way to describe datasets. This alignment enhances data interoperability and discoverability, enabling data publishers to provide structured metadata, improving data sharing, and facilitating seamless integration for users and applications.",
Expand Down
25 changes: 21 additions & 4 deletions jsonschema/docs/dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ A collection of data published or curated by one provider
| [language](#language) | More than one type | Optional | ISO 639-1 language code values used in the dataset text or metadata, such as en or es, full list can be seen at https://id.loc.gov/vocabulary/iso639-1.html |
| [modified](#modified) | More than one type | Recommended | Most recent date when the dataset's actual data changed, not just metadata |
| [provenance](#provenance) | null or array of string | Optional | List of statements about the lineage of a Dataset, including any changes in its ownership or custody since its creation that may be significant for its authenticity, integrity, or interpretation |
| [publisher](#publisher) | object | Mandatory | Organization responsible for publishing and making the dataset available |
| [publisher](#publisher) | More than one type | Recommended | Organization responsible for publishing and making the dataset available |
| [relation](#relation) | null or array of string | Optional | List of links to related resources when the relationship is not otherwise specified |
| [replaces](#replaces) | null or array of [Dataset](./dataset.md#root) classes | Optional | List of Datasets replaced by this Dataset |
| [rights](#rights) | null or array of string | Recommended | Rights statements not already covered by license or accessRights, such as copyright or policy restrictions |
Expand Down Expand Up @@ -1323,15 +1323,32 @@ Full text of the provenance statement

## <a name="publisher"></a>`Dataset > publisher` [#](#publisher)

**Requirement:** Mandatory
**Requirement:** Recommended

Organization responsible for publishing and making the dataset available

| **Type** | `combining` |
| ------------------------- | ---------------- |
| **Additional properties** | Any type allowed |

| Any of |
| ----------------------------------------------------- |
| [Null allowed when not required](#publisher_anyOf_i0) |
| [Organization](#publisher_anyOf_i1) |

### <a name="publisher_anyOf_i0"></a>`Dataset > publisher > anyOf > Null allowed when not required` [#](#publisher_anyOf_i0)

| **Type** | `null` |
| -------- | ------ |

### <a name="publisher_anyOf_i1"></a>`Dataset > publisher > anyOf > Organization` [#](#publisher_anyOf_i1)

inline description of Organization

| **Type** | `object` |
| ------------------------- | ---------------------------------------- |
| **Required** | Yes |
| **Additional properties** | Any type allowed |
| **Defined in** | [Organization](./agents.md#organization) |
| **Same definition as** | [Organization](./agents.md#organization) |

## <a name="relation"></a>`Dataset > relation` [#](#relation)

Expand Down
4 changes: 1 addition & 3 deletions jsonschema/examples/Catalog/bad/invalid_homepage_type.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"fn": "Support",
"hasEmail": "mailto:support@example.gov"
},
"publisher": {
"name": "Example Org"
}
"identifier": "https://example.gov/datasets/catalog-example-001"
}
],
"homepage": "https://example.gov/invalid-homepage-format"
Expand Down
4 changes: 1 addition & 3 deletions jsonschema/examples/Catalog/bad/invalid_issued_format.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"fn": "Support",
"hasEmail": "mailto:support@example.gov"
},
"publisher": {
"name": "Example Org"
}
"identifier": "https://example.gov/datasets/catalog-example-001"
}
],
"issued": "January 15, 2020"
Expand Down
4 changes: 1 addition & 3 deletions jsonschema/examples/Catalog/bad/invalid_language_format.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"fn": "Support",
"hasEmail": "mailto:support@example.gov"
},
"publisher": {
"name": "Example Org"
}
"identifier": "https://example.gov/datasets/catalog-example-001"
}
],
"language": ["english", "spanish"]
Expand Down
3 changes: 0 additions & 3 deletions jsonschema/examples/Catalog/good/minimal_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"fn": "Data Support",
"hasEmail": "mailto:support@example.gov"
},
"publisher": {
"name": "Example Organization"
},
"identifier": "https://example.gov/datasets/catalog-example-001"
}
]
Expand Down
6 changes: 5 additions & 1 deletion jsonschema/examples/Dataset/bad/bad-accrual-periodicity.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"@type": "Dataset",
"title": "Example Dataset",
"description": "A minimal dataset example with invalid periodicity",
"publisher": "https://example.gov/org/sample-agency",
"contactPoint": {
"fn": "Data Support",
"hasEmail": "mailto:support@example.gov"
},
"identifier": "https://example.gov/datasets/catalog-example-001",
"accrualPeriodicity": "every-other-tuesday"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"@type": "Dataset",
"title": "Example Dataset",
"description": "A minimal dataset example with a valid periodicity",
"publisher": {
"name": "The Minimal Organization"
},
"accrualPeriodicity": "quarterly",
"contactPoint": [
{
Expand Down
3 changes: 0 additions & 3 deletions jsonschema/examples/Dataset/good/minimal_example.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"title": "Example Dataset",
"description": "A dataset for testing purposes.",
"publisher": {
"name": "Example Agency"
},
"contactPoint": {
"fn": "Data Support",
"hasEmail": "mailto:data@example.gov"
Expand Down
6 changes: 2 additions & 4 deletions jsonschema/examples/Dataset/good/null_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"hasPart": null,
"hasQualityMeasurement": null,
"hasVersion": null,
"identifier": null,
"identifier": "",
"image": null,
"inSeries": null,
"isReferencedBy": null,
Expand All @@ -33,9 +33,7 @@
"page": null,
"previousVersion": null,
"provenance": null,
"publisher": {
"name": ""
},
"publisher": null,
"purpose": null,
"qualifiedAttribution": null,
"qualifiedRelation": null,
Expand Down
3 changes: 0 additions & 3 deletions jsonschema/examples/Dataset/good/theme_full_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"fn": "Water Resources Support",
"hasEmail": "mailto:water@example.gov"
},
"publisher": {
"name": "U.S. Environmental Protection Agency"
},
"theme": [
{
"@type": "Concept",
Expand Down
3 changes: 0 additions & 3 deletions jsonschema/examples/Dataset/good/theme_simple_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"fn": "Water Resources Support",
"hasEmail": "mailto:water@example.gov"
},
"publisher": {
"name": "U.S. Environmental Protection Agency"
},
"theme": [
"https://example.gov/themes/water",
"https://example.gov/themes/environment"
Expand Down
Loading