90 lines
1.8 KiB
JSON
90 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://scient.ing/ns/schemas/layer.schema.json",
|
|
"title": "Layer",
|
|
"description": "layer.json of scienting-layer/1: a W3C AnnotationCollection; spec/18-layers.md.",
|
|
"type": "object",
|
|
"properties": {
|
|
"@context": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"minItems": 2
|
|
},
|
|
"format": {
|
|
"const": "scienting-layer/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^urn:scienting:layer:[a-z0-9][a-z0-9._-]*/[a-hjkmnp-tv-z][0-9a-hjkmnp-tv-z]{6,25}$"
|
|
},
|
|
"type": {
|
|
"const": "AnnotationCollection"
|
|
},
|
|
"label": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"purpose": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"audience": {
|
|
"enum": [
|
|
"novice",
|
|
"student",
|
|
"expert",
|
|
"mixed"
|
|
]
|
|
},
|
|
"visibility": {
|
|
"enum": [
|
|
"private",
|
|
"team",
|
|
"public"
|
|
]
|
|
},
|
|
"license": {
|
|
"$ref": "common.schema.json#/$defs/license"
|
|
},
|
|
"creator": {
|
|
"$ref": "common.schema.json#/$defs/agent"
|
|
},
|
|
"created": {
|
|
"$ref": "common.schema.json#/$defs/time"
|
|
},
|
|
"project": {
|
|
"$ref": "common.schema.json#/$defs/key"
|
|
},
|
|
"docs": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "common.schema.json#/$defs/qualifiedKey"
|
|
},
|
|
"minItems": 1,
|
|
"uniqueItems": true
|
|
},
|
|
"total": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"@context",
|
|
"format",
|
|
"id",
|
|
"type",
|
|
"label",
|
|
"purpose",
|
|
"visibility",
|
|
"license",
|
|
"creator",
|
|
"created",
|
|
"docs",
|
|
"total"
|
|
],
|
|
"additionalProperties": false
|
|
}
|