First implementation (#1)
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
1 parent
34c0abb26a
commit
4fa326dc76
534 files changed
+28280
-37
No files matched your search
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://paperspec.scient.ing/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": "^tag:scient\\.ing,2026: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
|
||||
}
|
||||
Reference in new issue
Block a user