@twin.org/standards-foaf 0.0.3-next.53 → 0.0.3-next.55

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.
@@ -1,103 +1,18 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/foaf/FoafPerson",
4
+ "title": "FoafPerson",
4
5
  "description": "A FOAF Person.",
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
- "type": "string",
40
- "description": "The unique identifier for the FOAF object."
41
- },
42
- "name": {
43
- "type": "string",
44
- "description": "A name for some thing."
45
- },
46
- "title": {
47
- "type": "string",
48
- "description": "Title (Mr, Mrs, Ms, Dr. etc)"
49
- },
50
- "mbox": {
51
- "type": "string",
52
- "description": "A personal mailbox, ie. an Internet mailbox associated with exactly one owner, the first owner of this mailbox"
53
- },
54
- "homepage": {
55
- "type": "string",
56
- "description": "A homepage for some thing."
57
- },
58
- "depiction": {
59
- "$ref": "https://schema.twindev.org/foaf/FoafImage",
60
- "description": "A depiction of some thing."
9
+ "$ref": "https://schema.twindev.org/foaf/FoafContextType",
10
+ "description": "The LD Context."
61
11
  },
62
12
  "@type": {
63
- "type": "string",
64
13
  "const": "Person",
65
14
  "description": "Type."
66
15
  },
67
- "age": {
68
- "type": "number",
69
- "description": "The age in years of some agent."
70
- },
71
- "made": {
72
- "description": "Object or array data type",
73
- "anyOf": [
74
- {
75
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
76
- },
77
- {
78
- "type": "array",
79
- "items": {
80
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
81
- }
82
- }
83
- ]
84
- },
85
- "weblog": {
86
- "$ref": "https://schema.twindev.org/foaf/FoafDocument",
87
- "description": "A weblog of some thing (whether person, group, company etc.)."
88
- },
89
- "openid": {
90
- "$ref": "https://schema.twindev.org/foaf/FoafDocument",
91
- "description": "An OpenID for an agent."
92
- },
93
- "interest": {
94
- "$ref": "https://schema.twindev.org/foaf/FoafDocument",
95
- "description": "A page about a topic of interest to this person."
96
- },
97
- "topic_interest": {
98
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
99
- "description": "A thing of interest to this person."
100
- },
101
16
  "familyName": {
102
17
  "type": "string",
103
18
  "description": "The family name of some person."
@@ -107,7 +22,6 @@
107
22
  "description": "The given name of some person."
108
23
  },
109
24
  "knows": {
110
- "description": "Object or array data type",
111
25
  "anyOf": [
112
26
  {
113
27
  "$ref": "https://schema.twindev.org/foaf/FoafAgent"
@@ -118,7 +32,8 @@
118
32
  "$ref": "https://schema.twindev.org/foaf/FoafAgent"
119
33
  }
120
34
  }
121
- ]
35
+ ],
36
+ "description": "A person known by this person (indicating some level of reciprocated interaction between the parties)."
122
37
  },
123
38
  "img": {
124
39
  "$ref": "https://schema.twindev.org/foaf/FoafImage",
@@ -131,5 +46,10 @@
131
46
  },
132
47
  "required": [
133
48
  "@type"
49
+ ],
50
+ "allOf": [
51
+ {
52
+ "$ref": "https://schema.twindev.org/foaf/FoafAgent"
53
+ }
134
54
  ]
135
55
  }
@@ -1,6 +1,7 @@
1
+ import type { SingleOccurrenceArray } from "@twin.org/core";
1
2
  import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
2
3
  import type { FoafContexts } from "./foafContexts.js";
3
4
  /**
4
5
  * The FOAF JSON-LD context type.
5
6
  */
6
- export type FoafContextType = typeof FoafContexts.Context | [typeof FoafContexts.Context] | [...IJsonLdContextDefinitionElement[], typeof FoafContexts.Context];
7
+ export type FoafContextType = typeof FoafContexts.Context | SingleOccurrenceArray<IJsonLdContextDefinitionElement, typeof FoafContexts.Context>;
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.55](https://github.com/twinfoundation/standards/compare/standards-foaf-v0.0.3-next.54...standards-foaf-v0.0.3-next.55) (2026-03-19)
4
+
5
+
6
+ ### Features
7
+
8
+ * update to new ts-ts-schema and generic constructs ([4dff991](https://github.com/twinfoundation/standards/commit/4dff991fb70de4320668641ed94abf8e9b06acad))
9
+
10
+ ## [0.0.3-next.54](https://github.com/twinfoundation/standards/compare/standards-foaf-v0.0.3-next.53...standards-foaf-v0.0.3-next.54) (2026-03-12)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * **standards-foaf:** Synchronize repo versions
16
+
3
17
  ## [0.0.3-next.53](https://github.com/twinfoundation/standards/compare/standards-foaf-v0.0.3-next.52...standards-foaf-v0.0.3-next.53) (2026-03-11)
4
18
 
5
19
 
@@ -14,7 +14,7 @@ Data Type registration for FOAF
14
14
 
15
15
  ## Methods
16
16
 
17
- ### registerRedirects()
17
+ ### registerRedirects() {#registerredirects}
18
18
 
19
19
  > `static` **registerRedirects**(): `void`
20
20
 
@@ -26,7 +26,7 @@ Register redirects for FOAF namespace to enable offline JSON-LD processing.
26
26
 
27
27
  ***
28
28
 
29
- ### registerTypes()
29
+ ### registerTypes() {#registertypes}
30
30
 
31
31
  > `static` **registerTypes**(): `void`
32
32
 
@@ -18,7 +18,7 @@ http://xmlns.com/foaf/0.1/
18
18
 
19
19
  ## Properties
20
20
 
21
- ### @context?
21
+ ### @context? {#context}
22
22
 
23
23
  > `optional` **@context**: [`FoafContextType`](../type-aliases/FoafContextType.md)
24
24
 
@@ -30,7 +30,7 @@ The LD Context.
30
30
 
31
31
  ***
32
32
 
33
- ### @type
33
+ ### @type {#type}
34
34
 
35
35
  > **@type**: `string`
36
36
 
@@ -38,7 +38,7 @@ Type.
38
38
 
39
39
  ***
40
40
 
41
- ### age?
41
+ ### age? {#age}
42
42
 
43
43
  > `optional` **age**: `number`
44
44
 
@@ -50,7 +50,7 @@ http://xmlns.com/foaf/spec/#term_age
50
50
 
51
51
  ***
52
52
 
53
- ### made?
53
+ ### made? {#made}
54
54
 
55
55
  > `optional` **made**: `ObjectOrArray`\<`IJsonLdNodeObject`\>
56
56
 
@@ -62,7 +62,7 @@ http://xmlns.com/foaf/spec/#term_made
62
62
 
63
63
  ***
64
64
 
65
- ### weblog?
65
+ ### weblog? {#weblog}
66
66
 
67
67
  > `optional` **weblog**: [`IFoafDocument`](IFoafDocument.md)
68
68
 
@@ -74,7 +74,7 @@ http://xmlns.com/foaf/spec/#term_weblog
74
74
 
75
75
  ***
76
76
 
77
- ### openid?
77
+ ### openid? {#openid}
78
78
 
79
79
  > `optional` **openid**: [`IFoafDocument`](IFoafDocument.md)
80
80
 
@@ -86,7 +86,7 @@ http://xmlns.com/foaf/spec/#term_openid
86
86
 
87
87
  ***
88
88
 
89
- ### interest?
89
+ ### interest? {#interest}
90
90
 
91
91
  > `optional` **interest**: [`IFoafDocument`](IFoafDocument.md)
92
92
 
@@ -98,7 +98,7 @@ http://xmlns.com/foaf/spec/#term_interest
98
98
 
99
99
  ***
100
100
 
101
- ### topic\_interest?
101
+ ### topic\_interest? {#topic_interest}
102
102
 
103
103
  > `optional` **topic\_interest**: `IJsonLdNodeObject`
104
104
 
@@ -110,7 +110,7 @@ http://xmlns.com/foaf/spec/#term_topic_interest
110
110
 
111
111
  ***
112
112
 
113
- ### @id?
113
+ ### @id? {#id}
114
114
 
115
115
  > `optional` **@id**: `string`
116
116
 
@@ -122,7 +122,7 @@ The unique identifier for the FOAF object.
122
122
 
123
123
  ***
124
124
 
125
- ### name?
125
+ ### name? {#name}
126
126
 
127
127
  > `optional` **name**: `string`
128
128
 
@@ -138,7 +138,7 @@ http://xmlns.com/foaf/spec/#term_name
138
138
 
139
139
  ***
140
140
 
141
- ### title?
141
+ ### title? {#title}
142
142
 
143
143
  > `optional` **title**: `string`
144
144
 
@@ -154,7 +154,7 @@ http://xmlns.com/foaf/spec/#term_title
154
154
 
155
155
  ***
156
156
 
157
- ### mbox?
157
+ ### mbox? {#mbox}
158
158
 
159
159
  > `optional` **mbox**: `string`
160
160
 
@@ -170,7 +170,7 @@ http://xmlns.com/foaf/spec/#term_mbox
170
170
 
171
171
  ***
172
172
 
173
- ### homepage?
173
+ ### homepage? {#homepage}
174
174
 
175
175
  > `optional` **homepage**: `string`
176
176
 
@@ -186,7 +186,7 @@ http://xmlns.com/foaf/spec/#term_homepage
186
186
 
187
187
  ***
188
188
 
189
- ### depiction?
189
+ ### depiction? {#depiction}
190
190
 
191
191
  > `optional` **depiction**: [`IFoafImage`](IFoafImage.md)
192
192
 
@@ -13,7 +13,7 @@ http://xmlns.com/foaf/0.1/
13
13
 
14
14
  ## Properties
15
15
 
16
- ### @context?
16
+ ### @context? {#context}
17
17
 
18
18
  > `optional` **@context**: [`FoafContextType`](../type-aliases/FoafContextType.md)
19
19
 
@@ -21,7 +21,7 @@ The LD Context.
21
21
 
22
22
  ***
23
23
 
24
- ### @id?
24
+ ### @id? {#id}
25
25
 
26
26
  > `optional` **@id**: `string`
27
27
 
@@ -29,7 +29,7 @@ The unique identifier for the FOAF object.
29
29
 
30
30
  ***
31
31
 
32
- ### name?
32
+ ### name? {#name}
33
33
 
34
34
  > `optional` **name**: `string`
35
35
 
@@ -41,7 +41,7 @@ http://xmlns.com/foaf/spec/#term_name
41
41
 
42
42
  ***
43
43
 
44
- ### title?
44
+ ### title? {#title}
45
45
 
46
46
  > `optional` **title**: `string`
47
47
 
@@ -53,7 +53,7 @@ http://xmlns.com/foaf/spec/#term_title
53
53
 
54
54
  ***
55
55
 
56
- ### mbox?
56
+ ### mbox? {#mbox}
57
57
 
58
58
  > `optional` **mbox**: `string`
59
59
 
@@ -65,7 +65,7 @@ http://xmlns.com/foaf/spec/#term_mbox
65
65
 
66
66
  ***
67
67
 
68
- ### homepage?
68
+ ### homepage? {#homepage}
69
69
 
70
70
  > `optional` **homepage**: `string`
71
71
 
@@ -77,7 +77,7 @@ http://xmlns.com/foaf/spec/#term_homepage
77
77
 
78
78
  ***
79
79
 
80
- ### depiction?
80
+ ### depiction? {#depiction}
81
81
 
82
82
  > `optional` **depiction**: [`IFoafImage`](IFoafImage.md)
83
83
 
@@ -16,7 +16,7 @@ http://xmlns.com/foaf/0.1/
16
16
 
17
17
  ## Properties
18
18
 
19
- ### @id?
19
+ ### @id? {#id}
20
20
 
21
21
  > `optional` **@id**: `string`
22
22
 
@@ -28,7 +28,7 @@ The unique identifier for the FOAF object.
28
28
 
29
29
  ***
30
30
 
31
- ### name?
31
+ ### name? {#name}
32
32
 
33
33
  > `optional` **name**: `string`
34
34
 
@@ -44,7 +44,7 @@ http://xmlns.com/foaf/spec/#term_name
44
44
 
45
45
  ***
46
46
 
47
- ### title?
47
+ ### title? {#title}
48
48
 
49
49
  > `optional` **title**: `string`
50
50
 
@@ -60,7 +60,7 @@ http://xmlns.com/foaf/spec/#term_title
60
60
 
61
61
  ***
62
62
 
63
- ### mbox?
63
+ ### mbox? {#mbox}
64
64
 
65
65
  > `optional` **mbox**: `string`
66
66
 
@@ -76,7 +76,7 @@ http://xmlns.com/foaf/spec/#term_mbox
76
76
 
77
77
  ***
78
78
 
79
- ### homepage?
79
+ ### homepage? {#homepage}
80
80
 
81
81
  > `optional` **homepage**: `string`
82
82
 
@@ -92,7 +92,7 @@ http://xmlns.com/foaf/spec/#term_homepage
92
92
 
93
93
  ***
94
94
 
95
- ### depiction?
95
+ ### depiction? {#depiction}
96
96
 
97
97
  > `optional` **depiction**: [`IFoafImage`](IFoafImage.md)
98
98
 
@@ -108,7 +108,7 @@ http://xmlns.com/foaf/spec/#term_depiction
108
108
 
109
109
  ***
110
110
 
111
- ### @context?
111
+ ### @context? {#context}
112
112
 
113
113
  > `optional` **@context**: [`FoafContextType`](../type-aliases/FoafContextType.md)
114
114
 
@@ -120,7 +120,7 @@ The LD Context.
120
120
 
121
121
  ***
122
122
 
123
- ### @type
123
+ ### @type {#type}
124
124
 
125
125
  > **@type**: `"Document"` \| `"Image"`
126
126
 
@@ -128,7 +128,7 @@ Type.
128
128
 
129
129
  ***
130
130
 
131
- ### topic?
131
+ ### topic? {#topic}
132
132
 
133
133
  > `optional` **topic**: `string`
134
134
 
@@ -140,7 +140,7 @@ http://xmlns.com/foaf/spec/#term_topic
140
140
 
141
141
  ***
142
142
 
143
- ### primaryTopic?
143
+ ### primaryTopic? {#primarytopic}
144
144
 
145
145
  > `optional` **primaryTopic**: `ObjectOrArray`\<`IJsonLdNodeObject`\>
146
146
 
@@ -152,7 +152,7 @@ http://xmlns.com/foaf/spec/#term_primaryTopic
152
152
 
153
153
  ***
154
154
 
155
- ### sha1?
155
+ ### sha1? {#sha1}
156
156
 
157
157
  > `optional` **sha1**: `string`
158
158
 
@@ -12,7 +12,7 @@ http://xmlns.com/foaf/0.1/
12
12
 
13
13
  ## Properties
14
14
 
15
- ### age?
15
+ ### age? {#age}
16
16
 
17
17
  > `optional` **age**: `number`
18
18
 
@@ -28,7 +28,7 @@ http://xmlns.com/foaf/spec/#term_age
28
28
 
29
29
  ***
30
30
 
31
- ### made?
31
+ ### made? {#made}
32
32
 
33
33
  > `optional` **made**: `ObjectOrArray`\<`IJsonLdNodeObject`\>
34
34
 
@@ -44,7 +44,7 @@ http://xmlns.com/foaf/spec/#term_made
44
44
 
45
45
  ***
46
46
 
47
- ### weblog?
47
+ ### weblog? {#weblog}
48
48
 
49
49
  > `optional` **weblog**: [`IFoafDocument`](IFoafDocument.md)
50
50
 
@@ -60,7 +60,7 @@ http://xmlns.com/foaf/spec/#term_weblog
60
60
 
61
61
  ***
62
62
 
63
- ### openid?
63
+ ### openid? {#openid}
64
64
 
65
65
  > `optional` **openid**: [`IFoafDocument`](IFoafDocument.md)
66
66
 
@@ -76,7 +76,7 @@ http://xmlns.com/foaf/spec/#term_openid
76
76
 
77
77
  ***
78
78
 
79
- ### interest?
79
+ ### interest? {#interest}
80
80
 
81
81
  > `optional` **interest**: [`IFoafDocument`](IFoafDocument.md)
82
82
 
@@ -92,7 +92,7 @@ http://xmlns.com/foaf/spec/#term_interest
92
92
 
93
93
  ***
94
94
 
95
- ### topic\_interest?
95
+ ### topic\_interest? {#topic_interest}
96
96
 
97
97
  > `optional` **topic\_interest**: `IJsonLdNodeObject`
98
98
 
@@ -108,7 +108,7 @@ http://xmlns.com/foaf/spec/#term_topic_interest
108
108
 
109
109
  ***
110
110
 
111
- ### @id?
111
+ ### @id? {#id}
112
112
 
113
113
  > `optional` **@id**: `string`
114
114
 
@@ -120,7 +120,7 @@ The unique identifier for the FOAF object.
120
120
 
121
121
  ***
122
122
 
123
- ### name?
123
+ ### name? {#name}
124
124
 
125
125
  > `optional` **name**: `string`
126
126
 
@@ -136,7 +136,7 @@ http://xmlns.com/foaf/spec/#term_name
136
136
 
137
137
  ***
138
138
 
139
- ### title?
139
+ ### title? {#title}
140
140
 
141
141
  > `optional` **title**: `string`
142
142
 
@@ -152,7 +152,7 @@ http://xmlns.com/foaf/spec/#term_title
152
152
 
153
153
  ***
154
154
 
155
- ### mbox?
155
+ ### mbox? {#mbox}
156
156
 
157
157
  > `optional` **mbox**: `string`
158
158
 
@@ -168,7 +168,7 @@ http://xmlns.com/foaf/spec/#term_mbox
168
168
 
169
169
  ***
170
170
 
171
- ### homepage?
171
+ ### homepage? {#homepage}
172
172
 
173
173
  > `optional` **homepage**: `string`
174
174
 
@@ -184,7 +184,7 @@ http://xmlns.com/foaf/spec/#term_homepage
184
184
 
185
185
  ***
186
186
 
187
- ### depiction?
187
+ ### depiction? {#depiction}
188
188
 
189
189
  > `optional` **depiction**: [`IFoafImage`](IFoafImage.md)
190
190
 
@@ -200,7 +200,7 @@ http://xmlns.com/foaf/spec/#term_depiction
200
200
 
201
201
  ***
202
202
 
203
- ### @context?
203
+ ### @context? {#context}
204
204
 
205
205
  > `optional` **@context**: [`FoafContextType`](../type-aliases/FoafContextType.md)
206
206
 
@@ -212,7 +212,7 @@ The LD Context.
212
212
 
213
213
  ***
214
214
 
215
- ### @type
215
+ ### @type {#type}
216
216
 
217
217
  > **@type**: `"Group"`
218
218
 
@@ -224,7 +224,7 @@ Type.
224
224
 
225
225
  ***
226
226
 
227
- ### member?
227
+ ### member? {#member}
228
228
 
229
229
  > `optional` **member**: `ObjectOrArray`\<[`IFoafAgent`](IFoafAgent.md)\>
230
230
 
@@ -12,7 +12,7 @@ http://xmlns.com/foaf/0.1/
12
12
 
13
13
  ## Properties
14
14
 
15
- ### @id?
15
+ ### @id? {#id}
16
16
 
17
17
  > `optional` **@id**: `string`
18
18
 
@@ -24,7 +24,7 @@ The unique identifier for the FOAF object.
24
24
 
25
25
  ***
26
26
 
27
- ### name?
27
+ ### name? {#name}
28
28
 
29
29
  > `optional` **name**: `string`
30
30
 
@@ -40,7 +40,7 @@ http://xmlns.com/foaf/spec/#term_name
40
40
 
41
41
  ***
42
42
 
43
- ### title?
43
+ ### title? {#title}
44
44
 
45
45
  > `optional` **title**: `string`
46
46
 
@@ -56,7 +56,7 @@ http://xmlns.com/foaf/spec/#term_title
56
56
 
57
57
  ***
58
58
 
59
- ### mbox?
59
+ ### mbox? {#mbox}
60
60
 
61
61
  > `optional` **mbox**: `string`
62
62
 
@@ -72,7 +72,7 @@ http://xmlns.com/foaf/spec/#term_mbox
72
72
 
73
73
  ***
74
74
 
75
- ### homepage?
75
+ ### homepage? {#homepage}
76
76
 
77
77
  > `optional` **homepage**: `string`
78
78
 
@@ -88,7 +88,7 @@ http://xmlns.com/foaf/spec/#term_homepage
88
88
 
89
89
  ***
90
90
 
91
- ### depiction?
91
+ ### depiction? {#depiction}
92
92
 
93
93
  > `optional` **depiction**: `IFoafImage`
94
94
 
@@ -104,7 +104,7 @@ http://xmlns.com/foaf/spec/#term_depiction
104
104
 
105
105
  ***
106
106
 
107
- ### topic?
107
+ ### topic? {#topic}
108
108
 
109
109
  > `optional` **topic**: `string`
110
110
 
@@ -120,7 +120,7 @@ http://xmlns.com/foaf/spec/#term_topic
120
120
 
121
121
  ***
122
122
 
123
- ### primaryTopic?
123
+ ### primaryTopic? {#primarytopic}
124
124
 
125
125
  > `optional` **primaryTopic**: `ObjectOrArray`\<`IJsonLdNodeObject`\>
126
126
 
@@ -136,7 +136,7 @@ http://xmlns.com/foaf/spec/#term_primaryTopic
136
136
 
137
137
  ***
138
138
 
139
- ### sha1?
139
+ ### sha1? {#sha1}
140
140
 
141
141
  > `optional` **sha1**: `string`
142
142
 
@@ -152,7 +152,7 @@ http://xmlns.com/foaf/spec/#term_sha1sum
152
152
 
153
153
  ***
154
154
 
155
- ### @context?
155
+ ### @context? {#context}
156
156
 
157
157
  > `optional` **@context**: [`FoafContextType`](../type-aliases/FoafContextType.md)
158
158
 
@@ -164,7 +164,7 @@ The LD Context.
164
164
 
165
165
  ***
166
166
 
167
- ### @type
167
+ ### @type {#type}
168
168
 
169
169
  > **@type**: `"Image"`
170
170
 
@@ -176,7 +176,7 @@ Type.
176
176
 
177
177
  ***
178
178
 
179
- ### depicts?
179
+ ### depicts? {#depicts}
180
180
 
181
181
  > `optional` **depicts**: `IJsonLdNodeObject`
182
182
 
@@ -188,7 +188,7 @@ http://xmlns.com/foaf/spec/#term_depicts
188
188
 
189
189
  ***
190
190
 
191
- ### thumbnail?
191
+ ### thumbnail? {#thumbnail}
192
192
 
193
193
  > `optional` **thumbnail**: `IFoafImage`
194
194