Skip to content

Commit

Permalink
add temporal coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
calmacx committed Oct 25, 2023
1 parent ef65e8f commit ad6c022
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 38 deletions.
13 changes: 13 additions & 0 deletions hdr_schemata/models/SchemaOrg/BioSchema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,19 @@
"default": null,
"description": "Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.",
"title": "Jurisdiction"
},
"temporalCoverage": {
"anyOf": [
{
"$ref": "#/$defs/Text"
},
{
"type": "null"
}
],
"default": null,
"description": "The typical expected age range, e.g. '7-9', '11-'.",
"title": "temporalCoverage"
}
},
"required": [
Expand Down
51 changes: 32 additions & 19 deletions hdr_schemata/models/SchemaOrg/GoogleRecommended/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,19 @@
"default": null,
"description": "Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.",
"title": "Jurisdiction"
},
"temporalCoverage": {
"anyOf": [
{
"$ref": "#/$defs/Text"
},
{
"type": "null"
}
],
"default": null,
"description": "The typical expected age range, e.g. '7-9', '11-'.",
"title": "temporalCoverage"
}
},
"required": [
Expand Down Expand Up @@ -682,6 +695,25 @@
],
"title": "Dataset Creator"
},
"temporalCoverage": {
"anyOf": [
{
"$ref": "#/$defs/SingleDate"
},
{
"$ref": "#/$defs/TimePeriod"
},
{
"$ref": "#/$defs/OpenEndedTimePeriod"
},
{
"type": "null"
}
],
"default": null,
"description": "The data in the dataset covers a specific time interval. Only include this property if the dataset has a temporal dimension. Schema.org uses the ISO 8601 standard to describe time intervals and time points. You can describe dates differently depending upon the dataset interval. Indicate open-ended intervals with two decimal points (..).",
"title": "Temporal Coverage"
},
"@id": {
"allOf": [
{
Expand Down Expand Up @@ -955,25 +987,6 @@
],
"title": "Spatial Coverage"
},
"temporalCoverage": {
"anyOf": [
{
"$ref": "#/$defs/SingleDate"
},
{
"$ref": "#/$defs/TimePeriod"
},
{
"$ref": "#/$defs/OpenEndedTimePeriod"
},
{
"type": "null"
}
],
"default": null,
"description": "The data in the dataset covers a specific time interval. Only include this property if the dataset has a temporal dimension. Schema.org uses the ISO 8601 standard to describe time intervals and time points. You can describe dates differently depending upon the dataset interval. Indicate open-ended intervals with two decimal points (..).",
"title": "Temporal Coverage"
},
"variableMeasured": {
"anyOf": [
{
Expand Down
6 changes: 6 additions & 0 deletions hdr_schemata/models/SchemaOrg/base/CreativeWork.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,10 @@ class CreativeWork(BaseModel):
title='Jurisdiction',
description="Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based."
)

temporalCoverage: Optional[Text] = Field(
None,
title='temporalCoverage',
description="The typical expected age range, e.g. '7-9', '11-'."
)

51 changes: 32 additions & 19 deletions hdr_schemata/models/SchemaOrg/default/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,19 @@
"default": null,
"description": "Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.",
"title": "Jurisdiction"
},
"temporalCoverage": {
"anyOf": [
{
"$ref": "#/$defs/Text"
},
{
"type": "null"
}
],
"default": null,
"description": "The typical expected age range, e.g. '7-9', '11-'.",
"title": "temporalCoverage"
}
},
"required": [
Expand Down Expand Up @@ -677,6 +690,25 @@
"description": "Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.",
"title": "Jurisdiction"
},
"temporalCoverage": {
"anyOf": [
{
"$ref": "#/$defs/SingleDate"
},
{
"$ref": "#/$defs/TimePeriod"
},
{
"$ref": "#/$defs/OpenEndedTimePeriod"
},
{
"type": "null"
}
],
"default": null,
"description": "The data in the dataset covers a specific time interval. Only include this property if the dataset has a temporal dimension. Schema.org uses the ISO 8601 standard to describe time intervals and time points. You can describe dates differently depending upon the dataset interval. Indicate open-ended intervals with two decimal points (..).",
"title": "Temporal Coverage"
},
"@id": {
"allOf": [
{
Expand Down Expand Up @@ -964,25 +996,6 @@
],
"title": "Spatial Coverage"
},
"temporalCoverage": {
"anyOf": [
{
"$ref": "#/$defs/SingleDate"
},
{
"$ref": "#/$defs/TimePeriod"
},
{
"$ref": "#/$defs/OpenEndedTimePeriod"
},
{
"type": "null"
}
],
"default": null,
"description": "The data in the dataset covers a specific time interval. Only include this property if the dataset has a temporal dimension. Schema.org uses the ISO 8601 standard to describe time intervals and time points. You can describe dates differently depending upon the dataset interval. Indicate open-ended intervals with two decimal points (..).",
"title": "Temporal Coverage"
},
"variableMeasured": {
"anyOf": [
{
Expand Down

0 comments on commit ad6c022

Please sign in to comment.