@twin.org/standards-foaf 0.0.3-next.9 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/dist/es/dataTypes/foafDataTypes.js +35 -38
  3. package/dist/es/dataTypes/foafDataTypes.js.map +1 -1
  4. package/dist/es/models/IFoafBaseObject.js.map +1 -1
  5. package/dist/es/models/IFoafImage.js.map +1 -1
  6. package/dist/es/models/foafContextType.js.map +1 -1
  7. package/dist/es/models/foafContexts.js +12 -6
  8. package/dist/es/models/foafContexts.js.map +1 -1
  9. package/dist/es/schemas/FoafAgent.json +18 -119
  10. package/dist/es/schemas/FoafContextType.json +30 -0
  11. package/dist/es/schemas/FoafDocument.json +13 -127
  12. package/dist/es/schemas/FoafGroup.json +10 -162
  13. package/dist/es/schemas/FoafImage.json +8 -148
  14. package/dist/es/schemas/FoafOrganization.json +8 -160
  15. package/dist/es/schemas/FoafPerson.json +10 -162
  16. package/dist/types/models/IFoafBaseObject.d.ts +5 -2
  17. package/dist/types/models/IFoafImage.d.ts +0 -1
  18. package/dist/types/models/foafContextType.d.ts +2 -1
  19. package/dist/types/models/foafContexts.d.ts +12 -6
  20. package/docs/changelog.md +466 -9
  21. package/docs/examples.md +21 -1
  22. package/docs/reference/classes/FoafDataTypes.md +2 -2
  23. package/docs/reference/interfaces/IFoafAgent.md +37 -33
  24. package/docs/reference/interfaces/IFoafBaseObject.md +18 -22
  25. package/docs/reference/interfaces/IFoafDocument.md +30 -26
  26. package/docs/reference/interfaces/IFoafGroup.md +39 -31
  27. package/docs/reference/interfaces/IFoafImage.md +34 -26
  28. package/docs/reference/interfaces/IFoafOrganization.md +37 -29
  29. package/docs/reference/interfaces/IFoafPerson.md +47 -39
  30. package/docs/reference/type-aliases/FoafContextType.md +1 -1
  31. package/docs/reference/variables/FoafContexts.md +17 -9
  32. package/docs/reference/variables/FoafTypes.md +6 -6
  33. package/package.json +7 -7
@@ -1,152 +1,19 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/foaf/FoafGroup",
4
+ "title": "FoafGroup",
4
5
  "description": "A FOAF Group.",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@context": {
8
- "description": "The FOAF JSON-LD context type.",
9
- "anyOf": [
10
- {
11
- "type": "string",
12
- "const": "https://xmlns.com/foaf/0.1/"
13
- },
14
- {
15
- "type": "array",
16
- "items": {
17
- "type": "string",
18
- "const": "https://xmlns.com/foaf/0.1/"
19
- },
20
- "minItems": 1,
21
- "maxItems": 1
22
- },
23
- {
24
- "type": "array",
25
- "minItems": 1,
26
- "prefixItems": [
27
- {
28
- "type": "string",
29
- "const": "https://xmlns.com/foaf/0.1/"
30
- }
31
- ],
32
- "items": {
33
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
34
- }
35
- }
36
- ]
37
- },
38
- "@id": {
39
- "anyOf": [
40
- {
41
- "type": "string"
42
- },
43
- {
44
- "type": "array",
45
- "items": {
46
- "type": "string"
47
- }
48
- }
49
- ]
50
- },
51
- "@included": {
52
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
53
- },
54
- "@graph": {
55
- "anyOf": [
56
- {
57
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
58
- },
59
- {
60
- "type": "array",
61
- "items": {
62
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
63
- }
64
- }
65
- ]
66
- },
67
- "@nest": {
68
- "anyOf": [
69
- {
70
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
71
- },
72
- {
73
- "type": "array",
74
- "items": {
75
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
76
- }
77
- }
78
- ]
9
+ "$ref": "https://schema.twindev.org/foaf/FoafContextType",
10
+ "description": "The LD Context."
79
11
  },
80
12
  "@type": {
81
- "type": "string",
82
13
  "const": "Group",
83
14
  "description": "Type."
84
15
  },
85
- "@reverse": {
86
- "type": "object",
87
- "additionalProperties": {
88
- "type": "string"
89
- }
90
- },
91
- "@index": {
92
- "type": "string"
93
- },
94
- "name": {
95
- "type": "string",
96
- "description": "A name for some thing."
97
- },
98
- "title": {
99
- "type": "string",
100
- "description": "Title (Mr, Mrs, Ms, Dr. etc)"
101
- },
102
- "mbox": {
103
- "type": "string",
104
- "description": "A personal mailbox, ie. an Internet mailbox associated with exactly one owner, the first owner of this mailbox"
105
- },
106
- "homepage": {
107
- "type": "string",
108
- "description": "A homepage for some thing."
109
- },
110
- "depiction": {
111
- "$ref": "https://schema.twindev.org/foaf/FoafImage",
112
- "description": "A depiction of some thing."
113
- },
114
- "age": {
115
- "type": "number",
116
- "description": "The age in years of some agent."
117
- },
118
- "made": {
119
- "description": "Object or array data type",
120
- "anyOf": [
121
- {
122
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
123
- },
124
- {
125
- "type": "array",
126
- "items": {
127
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
128
- }
129
- }
130
- ]
131
- },
132
- "weblog": {
133
- "$ref": "https://schema.twindev.org/foaf/FoafDocument",
134
- "description": "A weblog of some thing (whether person, group, company etc.)."
135
- },
136
- "openid": {
137
- "$ref": "https://schema.twindev.org/foaf/FoafDocument",
138
- "description": "An OpenID for an agent."
139
- },
140
- "interest": {
141
- "$ref": "https://schema.twindev.org/foaf/FoafDocument",
142
- "description": "A page about a topic of interest to this person."
143
- },
144
- "topic_interest": {
145
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
146
- "description": "A thing of interest to this person."
147
- },
148
16
  "member": {
149
- "description": "Object or array data type",
150
17
  "anyOf": [
151
18
  {
152
19
  "$ref": "https://schema.twindev.org/foaf/FoafAgent"
@@ -157,35 +24,16 @@
157
24
  "$ref": "https://schema.twindev.org/foaf/FoafAgent"
158
25
  }
159
26
  }
160
- ]
27
+ ],
28
+ "description": "Indicates a member of a Group"
161
29
  }
162
30
  },
163
31
  "required": [
164
32
  "@type"
165
33
  ],
166
- "additionalProperties": {
167
- "anyOf": [
168
- {
169
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
170
- },
171
- {
172
- "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
173
- },
174
- {
175
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
176
- },
177
- {
178
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
179
- },
180
- {
181
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
182
- },
183
- {
184
- "$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
185
- },
186
- {
187
- "type": "array"
188
- }
189
- ]
190
- }
34
+ "allOf": [
35
+ {
36
+ "$ref": "https://schema.twindev.org/foaf/FoafAgent"
37
+ }
38
+ ]
191
39
  }
@@ -1,138 +1,18 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/foaf/FoafImage",
4
+ "title": "FoafImage",
4
5
  "description": "A FOAF image.",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@context": {
8
- "description": "The FOAF JSON-LD context type.",
9
- "anyOf": [
10
- {
11
- "type": "string",
12
- "const": "https://xmlns.com/foaf/0.1/"
13
- },
14
- {
15
- "type": "array",
16
- "items": {
17
- "type": "string",
18
- "const": "https://xmlns.com/foaf/0.1/"
19
- },
20
- "minItems": 1,
21
- "maxItems": 1
22
- },
23
- {
24
- "type": "array",
25
- "minItems": 1,
26
- "prefixItems": [
27
- {
28
- "type": "string",
29
- "const": "https://xmlns.com/foaf/0.1/"
30
- }
31
- ],
32
- "items": {
33
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
34
- }
35
- }
36
- ]
37
- },
38
- "@id": {
39
- "anyOf": [
40
- {
41
- "type": "string"
42
- },
43
- {
44
- "type": "array",
45
- "items": {
46
- "type": "string"
47
- }
48
- }
49
- ]
50
- },
51
- "@included": {
52
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
53
- },
54
- "@graph": {
55
- "anyOf": [
56
- {
57
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
58
- },
59
- {
60
- "type": "array",
61
- "items": {
62
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
63
- }
64
- }
65
- ]
66
- },
67
- "@nest": {
68
- "anyOf": [
69
- {
70
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
71
- },
72
- {
73
- "type": "array",
74
- "items": {
75
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
76
- }
77
- }
78
- ]
9
+ "$ref": "https://schema.twindev.org/foaf/FoafContextType",
10
+ "description": "The LD Context."
79
11
  },
80
12
  "@type": {
81
- "type": "string",
82
13
  "const": "Image",
83
14
  "description": "Type."
84
15
  },
85
- "@reverse": {
86
- "type": "object",
87
- "additionalProperties": {
88
- "type": "string"
89
- }
90
- },
91
- "@index": {
92
- "type": "string"
93
- },
94
- "name": {
95
- "type": "string",
96
- "description": "A name for some thing."
97
- },
98
- "title": {
99
- "type": "string",
100
- "description": "Title (Mr, Mrs, Ms, Dr. etc)"
101
- },
102
- "mbox": {
103
- "type": "string",
104
- "description": "A personal mailbox, ie. an Internet mailbox associated with exactly one owner, the first owner of this mailbox"
105
- },
106
- "homepage": {
107
- "type": "string",
108
- "description": "A homepage for some thing."
109
- },
110
- "depiction": {
111
- "$ref": "https://schema.twindev.org/foaf/FoafImage",
112
- "description": "A depiction of some thing."
113
- },
114
- "topic": {
115
- "type": "string",
116
- "description": "A topic of some page or document."
117
- },
118
- "primaryTopic": {
119
- "description": "Object or array data type",
120
- "anyOf": [
121
- {
122
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
123
- },
124
- {
125
- "type": "array",
126
- "items": {
127
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
128
- }
129
- }
130
- ]
131
- },
132
- "sha1": {
133
- "type": "string",
134
- "description": "A sha1sum hash, in hex."
135
- },
136
16
  "depicts": {
137
17
  "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
138
18
  "description": "A thing depicted in this representation."
@@ -145,29 +25,9 @@
145
25
  "required": [
146
26
  "@type"
147
27
  ],
148
- "additionalProperties": {
149
- "anyOf": [
150
- {
151
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
152
- },
153
- {
154
- "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
155
- },
156
- {
157
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
158
- },
159
- {
160
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
161
- },
162
- {
163
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
164
- },
165
- {
166
- "$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
167
- },
168
- {
169
- "type": "array"
170
- }
171
- ]
172
- }
28
+ "allOf": [
29
+ {
30
+ "$ref": "https://schema.twindev.org/foaf/FoafDocument"
31
+ }
32
+ ]
173
33
  }
@@ -1,177 +1,25 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/foaf/FoafOrganization",
4
+ "title": "FoafOrganization",
4
5
  "description": "A FOAF Organization.",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@context": {
8
- "description": "The FOAF JSON-LD context type.",
9
- "anyOf": [
10
- {
11
- "type": "string",
12
- "const": "https://xmlns.com/foaf/0.1/"
13
- },
14
- {
15
- "type": "array",
16
- "items": {
17
- "type": "string",
18
- "const": "https://xmlns.com/foaf/0.1/"
19
- },
20
- "minItems": 1,
21
- "maxItems": 1
22
- },
23
- {
24
- "type": "array",
25
- "minItems": 1,
26
- "prefixItems": [
27
- {
28
- "type": "string",
29
- "const": "https://xmlns.com/foaf/0.1/"
30
- }
31
- ],
32
- "items": {
33
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
34
- }
35
- }
36
- ]
37
- },
38
- "@id": {
39
- "anyOf": [
40
- {
41
- "type": "string"
42
- },
43
- {
44
- "type": "array",
45
- "items": {
46
- "type": "string"
47
- }
48
- }
49
- ]
50
- },
51
- "@included": {
52
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
53
- },
54
- "@graph": {
55
- "anyOf": [
56
- {
57
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
58
- },
59
- {
60
- "type": "array",
61
- "items": {
62
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
63
- }
64
- }
65
- ]
66
- },
67
- "@nest": {
68
- "anyOf": [
69
- {
70
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
71
- },
72
- {
73
- "type": "array",
74
- "items": {
75
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
76
- }
77
- }
78
- ]
9
+ "$ref": "https://schema.twindev.org/foaf/FoafContextType",
10
+ "description": "The LD Context."
79
11
  },
80
12
  "@type": {
81
- "type": "string",
82
13
  "const": "Organization",
83
14
  "description": "Type."
84
- },
85
- "@reverse": {
86
- "type": "object",
87
- "additionalProperties": {
88
- "type": "string"
89
- }
90
- },
91
- "@index": {
92
- "type": "string"
93
- },
94
- "name": {
95
- "type": "string",
96
- "description": "A name for some thing."
97
- },
98
- "title": {
99
- "type": "string",
100
- "description": "Title (Mr, Mrs, Ms, Dr. etc)"
101
- },
102
- "mbox": {
103
- "type": "string",
104
- "description": "A personal mailbox, ie. an Internet mailbox associated with exactly one owner, the first owner of this mailbox"
105
- },
106
- "homepage": {
107
- "type": "string",
108
- "description": "A homepage for some thing."
109
- },
110
- "depiction": {
111
- "$ref": "https://schema.twindev.org/foaf/FoafImage",
112
- "description": "A depiction of some thing."
113
- },
114
- "age": {
115
- "type": "number",
116
- "description": "The age in years of some agent."
117
- },
118
- "made": {
119
- "description": "Object or array data type",
120
- "anyOf": [
121
- {
122
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
123
- },
124
- {
125
- "type": "array",
126
- "items": {
127
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
128
- }
129
- }
130
- ]
131
- },
132
- "weblog": {
133
- "$ref": "https://schema.twindev.org/foaf/FoafDocument",
134
- "description": "A weblog of some thing (whether person, group, company etc.)."
135
- },
136
- "openid": {
137
- "$ref": "https://schema.twindev.org/foaf/FoafDocument",
138
- "description": "An OpenID for an agent."
139
- },
140
- "interest": {
141
- "$ref": "https://schema.twindev.org/foaf/FoafDocument",
142
- "description": "A page about a topic of interest to this person."
143
- },
144
- "topic_interest": {
145
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
146
- "description": "A thing of interest to this person."
147
15
  }
148
16
  },
149
17
  "required": [
150
18
  "@type"
151
19
  ],
152
- "additionalProperties": {
153
- "anyOf": [
154
- {
155
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
156
- },
157
- {
158
- "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
159
- },
160
- {
161
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
162
- },
163
- {
164
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
165
- },
166
- {
167
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
168
- },
169
- {
170
- "$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
171
- },
172
- {
173
- "type": "array"
174
- }
175
- ]
176
- }
20
+ "allOf": [
21
+ {
22
+ "$ref": "https://schema.twindev.org/foaf/FoafAgent"
23
+ }
24
+ ]
177
25
  }