Skip to content
Open
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
86 changes: 40 additions & 46 deletions jsonschema/definitions/Activity.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,45 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://resources.data.gov/dcat-us/3.0.0/definitions/activity",
"title": "Activity",
"description": "An activity which a resource could be related to",
"type": "object",
"properties": {
"@id": {
"type": "string",
"format": "iri"
},
"@type": {
"type": "string",
"default": "Activity"
},
"category": {
"title": "category",
"description": "The category of the Activity",
"anyOf": [
{
"type": "null"
},
{
"$ref": "/dcat-us/3.0.0/definitions/concept",
"description": "inline description of the category"
},
{
"type": "string",
"description": "reference iri of the category",
"format": "iri"
}
]
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://resources.data.gov/dcat-us/3.0.0/definitions/activity",
"title": "Activity",
"description": "An activity which a resource could be related to",
"type": "object",
"properties": {
"@id": {
"type": "string",
"format": "iri"
},
"@type": {
"type": "string",
"default": "Activity"
},
"category": {
"title": "category",
"description": "The category of the Activity",
"anyOf": [
{
"type": "null"
},
"label": {
"title": "label",
"description": "A human-readable label for the activity",
"type": [
"null",
"string"
]
{
"$ref": "/dcat-us/3.0.0/definitions/concept",
"description": "inline description of the category"
},
"labelMap": {
"description": "Language map for the label. E.g. {'es': 'spanish words', 'fr': 'french words'}",
"type": [
"null",
"object"
]
{
"type": "string",
"description": "reference iri of the category",
"format": "iri"
}
]
},
"label": {
"title": "label",
"description": "A human-readable label for the activity",
"type": "string"
},
"required": []
}
"labelMap": {
"description": "Language map for the label. E.g. {'es': 'spanish words', 'fr': 'french words'}",
"type": ["null", "object"]
}
},
"required": ["label"]
}