Skip to content
16 changes: 15 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
{
"todo-tree.tree.scanMode": "current file",
"liveServer.settings.port": 5501
"liveServer.settings.port": 5501,
"json.format.keepLines": true,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"editor.indentSize": "tabSize",
"editor.insertSpaces": false,
"editor.useTabStops": false,
"[json]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.formatOnSave": true
},
"js/ts.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"js/ts.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"js/ts.format.insertSpaceBeforeAndAfterBinaryOperators": true,
}
47 changes: 42 additions & 5 deletions jsonschema/definitions/Dataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -477,18 +477,55 @@
"accrualPeriodicity": {
"title": "frequency",
"description": "The frequency at which the Dataset is updated",
"oneOf": [
"anyOf": [
{
"type": "null"
},
{
"$ref": "/dcat-us/3.0.0/definitions/frequency",
"description": "inline description of Frequency"
"type": "string",
"description": "ISO 19115 Maintenance Frequency code, see https://infopolicy.github.io/dcat-us/#frequency-coding",
"enum": [
"continual",
"daily",
"weekly",
"fortnightly",
"monthly",
"quarterly",
"biannually",
"annually",
"asNeeded",
"irregular",
"notPlanned",
"unknown"
]
},
{
"type": "string",
"description": "reference iri of Frequency",
"format": "iri"
"description": "ISO-8601 Maintenance Frequency code for recurring values, see https://infopolicy.github.io/dcat-us/#frequency-coding",
"pattern": "^R\/P.+$"
},
{
"type": "string",
"description": "Dublin Core Collection Frequency Vocabulary, see https://infopolicy.github.io/dcat-us/#frequency-coding",
"enum": [
"continuous",
"daily",
"weekly",
"biweekly",
"monthly",
"quarterly",
"semiannual",
"annual",
"irregular",
"triennial",
"biennial",
"threeTimesAYear",
"bimonthly",
"semimonthly",
"threeTimesAMonth",
"semiweekly",
"threeTimesAWeek"
]
}
]
},
Expand Down
47 changes: 42 additions & 5 deletions jsonschema/definitions/DatasetSeries.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,55 @@
"accrualPeriodicity": {
"title": "frequency",
"description": "The frequency at which the Dataset Series is updated",
"oneOf": [
"anyOf": [
{
"type": "null"
},
{
"$ref": "/dcat-us/3.0.0/definitions/frequency",
"description": "inline description of Frequency"
"type": "string",
"description": "ISO 19115 Maintenance Frequency code, see https://infopolicy.github.io/dcat-us/#frequency-coding",
"enum": [
"continual",
"daily",
"weekly",
"fortnightly",
"monthly",
"quarterly",
"biannually",
"annually",
"asNeeded",
"irregular",
"notPlanned",
"unknown"
]
},
{
"type": "string",
"description": "reference iri of Frequency",
"format": "iri"
"description": "ISO-8601 Maintenance Frequency code for recurring values, see https://infopolicy.github.io/dcat-us/#frequency-coding",
"pattern": "^R\/P.+$"
},
{
"type": "string",
"description": "Dublin Core Collection Frequency Vocabulary, see https://infopolicy.github.io/dcat-us/#frequency-coding",
"enum": [
"continuous",
"daily",
"weekly",
"biweekly",
"monthly",
"quarterly",
"semiannual",
"annual",
"irregular",
"triennial",
"biennial",
"threeTimesAYear",
"bimonthly",
"semimonthly",
"threeTimesAMonth",
"semiweekly",
"threeTimesAWeek"
]
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions jsonschema/definitions/PeriodOfTime.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"type": "string",
"oneOf": [
"anyOf": [
{
"format": "date-time"
},
Expand Down Expand Up @@ -50,7 +50,7 @@
},
{
"type": "string",
"oneOf": [
"anyOf": [
{
"format": "date-time"
},
Expand Down
7 changes: 7 additions & 0 deletions jsonschema/examples/Dataset/bad/bad-accrual-periodicity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"@type": "Dataset",
"title": "Example Dataset",
"description": "A minimal dataset example with invalid periodicity",
"publisher": "https://example.gov/org/sample-agency",
"accrualPeriodicity": "every-other-tuesday"
}
Loading
Loading