-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust skosConcept schema to catch notation systems too and to enforc…
…e labels if ids are provided #1340
- Loading branch information
Showing
1 changed file
with
72 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,80 @@ | ||
{ | ||
"$id": "skosConcept.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "SKOS Concept", | ||
"description": "A SKOS concept a dedicated controlled vocabulary (e.g. for NWBib, RPB, DDC).", | ||
"type": "object", | ||
"properties": { | ||
"$id": "skosConcept.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "SKOS Concept", | ||
"description": "A SKOS concept a dedicated controlled vocabulary (e.g. for NWBib, RPB, DDC).", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"title": "Concept URI", | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"type": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"const": "Concept" | ||
} | ||
}, | ||
"source": { | ||
"title": "Source controlled vocabulary", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"title": "Concept URI", | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"type": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"const": "Concept" | ||
} | ||
}, | ||
"source": { | ||
"title": "Source controlled vocabulary", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"title": "URI of the controlled vocabulary/concept scheme", | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"label": { | ||
"title": "German name of the concept scheme", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"label" | ||
] | ||
"title": "URI of the controlled vocabulary/concept scheme", | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"label": { | ||
"title": "Preferred name of the concept", | ||
"type": "string" | ||
}, | ||
"notation": { | ||
"title": "Notation for the concept", | ||
"type": "string" | ||
"title": "German name of the concept scheme", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"label" | ||
] | ||
}, | ||
"required": [ | ||
"label": { | ||
"title": "Preferred name of the concept", | ||
"type": "string" | ||
}, | ||
"notation": { | ||
"title": "Notation for the concept", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"source" | ||
], | ||
"anyOf": [ | ||
{ | ||
"description": "For SKOS Vocabularies with concept ids.", | ||
"required": [ | ||
"label", | ||
"source" | ||
] | ||
"id" | ||
] | ||
}, | ||
{ | ||
"description": "For notation systems (notation no label)/uncontrolled keywords (label no notation) without concept ids.", | ||
"not": { | ||
"required": [ | ||
"id" | ||
] | ||
}, | ||
"anyOf": [ | ||
{ | ||
"required": [ | ||
"notation" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"label" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |