-
Notifications
You must be signed in to change notification settings - Fork 3
/
JSONLD.json
87 lines (85 loc) · 2.89 KB
/
JSONLD.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"$id": "http://www.w3.org/ns/activitystreams/JSONLD.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Schema for JSON-LD",
"description": "https://json-ld.org/spec/latest/json-ld/",
"type": ["object", "array"],
"allOf": [
{ "$ref": "#/definitions/context" },
{ "$ref": "#/definitions/graph" },
{ "$ref": "#/definitions/common" }
],
"definitions":{
"context": {
"properties": {
"@context": {
"description": "Used to define the short-hand names that are used throughout a JSON-LD document.",
"type": ["object", "string", "array", "null"]
}
}
},
"graph": {
"properties": {
"@graph": {
"description": "Used to express a graph.",
"type": ["array", "object"],
"additionalItems": {
"anyOf": [{ "$ref": "#/definitions/common" }]
}
}
}
},
"common":{
"additionalProperties": {
"anyOf": [{ "$ref": "#/definitions/common" }]
},
"properties": {
"@id": {
"description": "Used to uniquely identify things that are being described in the document with IRIs or blank node identifiers.",
"type": "string",
"format": "uri"
},
"@value": {
"description": "Used to specify the data that is associated with a particular property in the graph.",
"type": ["string", "boolean", "number", "null"]
},
"@language": {
"description": "Used to specify the language for a particular string value or the default language of a JSON-LD document.",
"type": ["string", "null"]
},
"@type": {
"description": "Used to set the data type of a node or typed value.",
"type": ["string", "null", "array"]
},
"@container": {
"description": "Used to set the default container type for a term.",
"type": ["string", "null"],
"enum": ["@language", "@list", "@index", "@set"]
},
"@list": {
"description": "Used to express an ordered set of data."
},
"@set": {
"description": "Used to express an unordered set of data and to ensure that values are always represented as arrays."
},
"@reverse": {
"description": "Used to express reverse properties.",
"type": ["string", "object", "null"],
"additionalProperties": {
"anyOf": [{ "$ref": "#/definitions/common" }]
}
},
"@base": {
"description": "Used to set the base IRI against which relative IRIs are resolved",
"type": ["string", "null"],
"format": "uri"
},
"@vocab": {
"description": "Used to expand properties and values in @type with a common prefix IRI",
"type": ["string", "null"],
"format": "uri"
}
}
}
}
}