@twin.org/standards-foaf 0.0.3-next.5 → 0.0.3-next.50

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 (71) hide show
  1. package/dist/es/dataTypes/foafDataTypes.js +36 -44
  2. package/dist/es/dataTypes/foafDataTypes.js.map +1 -1
  3. package/dist/es/index.js +7 -7
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/models/IFoafAgent.js +2 -0
  6. package/dist/es/models/IFoafAgent.js.map +1 -0
  7. package/dist/es/models/IFoafBaseObject.js +2 -0
  8. package/dist/es/models/IFoafBaseObject.js.map +1 -0
  9. package/dist/es/models/IFoafDocument.js +2 -0
  10. package/dist/es/models/IFoafDocument.js.map +1 -0
  11. package/dist/es/models/IFoafGroup.js +2 -0
  12. package/dist/es/models/IFoafGroup.js.map +1 -0
  13. package/dist/es/models/IFoafImage.js +2 -0
  14. package/dist/es/models/IFoafImage.js.map +1 -0
  15. package/dist/es/models/IFoafOrganization.js +2 -0
  16. package/dist/es/models/IFoafOrganization.js.map +1 -0
  17. package/dist/es/models/IFoafPerson.js +2 -0
  18. package/dist/es/models/IFoafPerson.js.map +1 -0
  19. package/dist/es/models/foafContextType.js.map +1 -1
  20. package/dist/es/models/foafContexts.js +12 -6
  21. package/dist/es/models/foafContexts.js.map +1 -1
  22. package/dist/es/schemas/{Group.json → FoafAgent.json} +12 -99
  23. package/dist/es/schemas/{Document.json → FoafDocument.json} +12 -84
  24. package/dist/es/schemas/{Agent.json → FoafGroup.json} +27 -84
  25. package/dist/es/schemas/{Image.json → FoafImage.json} +10 -82
  26. package/dist/es/schemas/{Organization.json → FoafOrganization.json} +12 -84
  27. package/dist/es/schemas/{Person.json → FoafPerson.json} +15 -87
  28. package/dist/types/index.d.ts +7 -7
  29. package/dist/types/models/{IAgent.d.ts → IFoafAgent.d.ts} +12 -7
  30. package/dist/types/models/{IBaseObject.d.ts → IFoafBaseObject.d.ts} +7 -4
  31. package/dist/types/models/{IDocument.d.ts → IFoafDocument.d.ts} +8 -3
  32. package/dist/types/models/IFoafGroup.d.ts +29 -0
  33. package/dist/types/models/{IImage.d.ts → IFoafImage.d.ts} +9 -4
  34. package/dist/types/models/IFoafOrganization.d.ts +23 -0
  35. package/dist/types/models/{IPerson.d.ts → IFoafPerson.d.ts} +11 -5
  36. package/dist/types/models/foafContextType.d.ts +1 -1
  37. package/dist/types/models/foafContexts.d.ts +12 -6
  38. package/docs/changelog.md +323 -0
  39. package/docs/reference/index.md +13 -7
  40. package/docs/reference/interfaces/{IAgent.md → IFoafAgent.md} +27 -23
  41. package/docs/reference/interfaces/{IBaseObject.md → IFoafBaseObject.md} +10 -14
  42. package/docs/reference/interfaces/{IDocument.md → IFoafDocument.md} +21 -17
  43. package/docs/reference/interfaces/{IGroup.md → IFoafGroup.md} +32 -24
  44. package/docs/reference/interfaces/{IImage.md → IFoafImage.md} +25 -17
  45. package/docs/reference/interfaces/{IOrganization.md → IFoafOrganization.md} +31 -23
  46. package/docs/reference/interfaces/{IPerson.md → IFoafPerson.md} +33 -25
  47. package/docs/reference/type-aliases/FoafContextType.md +1 -1
  48. package/docs/reference/type-aliases/IFoafAgentWithAliases.md +12 -0
  49. package/docs/reference/type-aliases/IFoafDocumentWithAliases.md +12 -0
  50. package/docs/reference/type-aliases/IFoafGroupWithAliases.md +12 -0
  51. package/docs/reference/type-aliases/IFoafImageWithAliases.md +12 -0
  52. package/docs/reference/type-aliases/IFoafOrganizationWithAliases.md +12 -0
  53. package/docs/reference/type-aliases/IFoafPersonWithAliases.md +12 -0
  54. package/docs/reference/variables/FoafContexts.md +17 -9
  55. package/package.json +1 -1
  56. package/dist/es/models/IAgent.js +0 -2
  57. package/dist/es/models/IAgent.js.map +0 -1
  58. package/dist/es/models/IBaseObject.js +0 -2
  59. package/dist/es/models/IBaseObject.js.map +0 -1
  60. package/dist/es/models/IDocument.js +0 -2
  61. package/dist/es/models/IDocument.js.map +0 -1
  62. package/dist/es/models/IGroup.js +0 -2
  63. package/dist/es/models/IGroup.js.map +0 -1
  64. package/dist/es/models/IImage.js +0 -2
  65. package/dist/es/models/IImage.js.map +0 -1
  66. package/dist/es/models/IOrganization.js +0 -2
  67. package/dist/es/models/IOrganization.js.map +0 -1
  68. package/dist/es/models/IPerson.js +0 -2
  69. package/dist/es/models/IPerson.js.map +0 -1
  70. package/dist/types/models/IGroup.d.ts +0 -23
  71. package/dist/types/models/IOrganization.d.ts +0 -17
@@ -1,4 +1,4 @@
1
- # Interface: IOrganization
1
+ # Interface: IFoafOrganization
2
2
 
3
3
  A FOAF Organization.
4
4
 
@@ -8,11 +8,7 @@ http://xmlns.com/foaf/0.1/
8
8
 
9
9
  ## Extends
10
10
 
11
- - [`IAgent`](IAgent.md)
12
-
13
- ## Indexable
14
-
15
- \[`key`: `string`\]: `string` \| `number` \| `boolean` \| `string`[] \| `IJsonLdContextDefinition` \| `IJsonLdNodeObject` \| `IJsonLdGraphObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdListObject` \| `IJsonLdSetObject` \| `IJsonLdNodePrimitive`[] \| `IJsonLdLanguageMap` \| `IJsonLdIndexMap` \| `IJsonLdNodeObject`[] \| `IJsonLdIdMap` \| `IJsonLdTypeMap` \| `IJsonLdContextDefinitionElement`[] \| `IJsonLdJsonObject` \| `IJsonLdJsonObject`[] \| \{\[`key`: `string`\]: `string`; \} \| `null` \| `undefined`
11
+ - [`IFoafAgent`](IFoafAgent.md)
16
12
 
17
13
  ## Properties
18
14
 
@@ -28,7 +24,7 @@ http://xmlns.com/foaf/spec/#term_age
28
24
 
29
25
  #### Inherited from
30
26
 
31
- [`IAgent`](IAgent.md).[`age`](IAgent.md#age)
27
+ [`IFoafAgent`](IFoafAgent.md).[`age`](IFoafAgent.md#age)
32
28
 
33
29
  ***
34
30
 
@@ -44,13 +40,13 @@ http://xmlns.com/foaf/spec/#term_made
44
40
 
45
41
  #### Inherited from
46
42
 
47
- [`IAgent`](IAgent.md).[`made`](IAgent.md#made)
43
+ [`IFoafAgent`](IFoafAgent.md).[`made`](IFoafAgent.md#made)
48
44
 
49
45
  ***
50
46
 
51
47
  ### weblog?
52
48
 
53
- > `optional` **weblog**: [`IDocument`](IDocument.md)
49
+ > `optional` **weblog**: [`IFoafDocument`](IFoafDocument.md)
54
50
 
55
51
  A weblog of some thing (whether person, group, company etc.).
56
52
 
@@ -60,13 +56,13 @@ http://xmlns.com/foaf/spec/#term_weblog
60
56
 
61
57
  #### Inherited from
62
58
 
63
- [`IAgent`](IAgent.md).[`weblog`](IAgent.md#weblog)
59
+ [`IFoafAgent`](IFoafAgent.md).[`weblog`](IFoafAgent.md#weblog)
64
60
 
65
61
  ***
66
62
 
67
63
  ### openid?
68
64
 
69
- > `optional` **openid**: [`IDocument`](IDocument.md)
65
+ > `optional` **openid**: [`IFoafDocument`](IFoafDocument.md)
70
66
 
71
67
  An OpenID for an agent.
72
68
 
@@ -76,13 +72,13 @@ http://xmlns.com/foaf/spec/#term_openid
76
72
 
77
73
  #### Inherited from
78
74
 
79
- [`IAgent`](IAgent.md).[`openid`](IAgent.md#openid)
75
+ [`IFoafAgent`](IFoafAgent.md).[`openid`](IFoafAgent.md#openid)
80
76
 
81
77
  ***
82
78
 
83
79
  ### interest?
84
80
 
85
- > `optional` **interest**: [`IDocument`](IDocument.md)
81
+ > `optional` **interest**: [`IFoafDocument`](IFoafDocument.md)
86
82
 
87
83
  A page about a topic of interest to this person.
88
84
 
@@ -92,7 +88,7 @@ http://xmlns.com/foaf/spec/#term_interest
92
88
 
93
89
  #### Inherited from
94
90
 
95
- [`IAgent`](IAgent.md).[`interest`](IAgent.md#interest)
91
+ [`IFoafAgent`](IFoafAgent.md).[`interest`](IFoafAgent.md#interest)
96
92
 
97
93
  ***
98
94
 
@@ -108,7 +104,19 @@ http://xmlns.com/foaf/spec/#term_topic_interest
108
104
 
109
105
  #### Inherited from
110
106
 
111
- [`IAgent`](IAgent.md).[`topic_interest`](IAgent.md#topic_interest)
107
+ [`IFoafAgent`](IFoafAgent.md).[`topic_interest`](IFoafAgent.md#topic_interest)
108
+
109
+ ***
110
+
111
+ ### @id?
112
+
113
+ > `optional` **@id**: `string`
114
+
115
+ The unique identifier for the FOAF object.
116
+
117
+ #### Inherited from
118
+
119
+ [`IFoafAgent`](IFoafAgent.md).[`@id`](IFoafAgent.md#id)
112
120
 
113
121
  ***
114
122
 
@@ -124,7 +132,7 @@ http://xmlns.com/foaf/spec/#term_name
124
132
 
125
133
  #### Inherited from
126
134
 
127
- [`IAgent`](IAgent.md).[`name`](IAgent.md#name)
135
+ [`IFoafAgent`](IFoafAgent.md).[`name`](IFoafAgent.md#name)
128
136
 
129
137
  ***
130
138
 
@@ -140,7 +148,7 @@ http://xmlns.com/foaf/spec/#term_title
140
148
 
141
149
  #### Inherited from
142
150
 
143
- [`IAgent`](IAgent.md).[`title`](IAgent.md#title)
151
+ [`IFoafAgent`](IFoafAgent.md).[`title`](IFoafAgent.md#title)
144
152
 
145
153
  ***
146
154
 
@@ -156,7 +164,7 @@ http://xmlns.com/foaf/spec/#term_mbox
156
164
 
157
165
  #### Inherited from
158
166
 
159
- [`IAgent`](IAgent.md).[`mbox`](IAgent.md#mbox)
167
+ [`IFoafAgent`](IFoafAgent.md).[`mbox`](IFoafAgent.md#mbox)
160
168
 
161
169
  ***
162
170
 
@@ -172,13 +180,13 @@ http://xmlns.com/foaf/spec/#term_homepage
172
180
 
173
181
  #### Inherited from
174
182
 
175
- [`IAgent`](IAgent.md).[`homepage`](IAgent.md#homepage)
183
+ [`IFoafAgent`](IFoafAgent.md).[`homepage`](IFoafAgent.md#homepage)
176
184
 
177
185
  ***
178
186
 
179
187
  ### depiction?
180
188
 
181
- > `optional` **depiction**: [`IImage`](IImage.md)
189
+ > `optional` **depiction**: [`IFoafImage`](IFoafImage.md)
182
190
 
183
191
  A depiction of some thing.
184
192
 
@@ -188,7 +196,7 @@ http://xmlns.com/foaf/spec/#term_depiction
188
196
 
189
197
  #### Inherited from
190
198
 
191
- [`IAgent`](IAgent.md).[`depiction`](IAgent.md#depiction)
199
+ [`IFoafAgent`](IFoafAgent.md).[`depiction`](IFoafAgent.md#depiction)
192
200
 
193
201
  ***
194
202
 
@@ -200,7 +208,7 @@ The LD Context.
200
208
 
201
209
  #### Overrides
202
210
 
203
- [`IAgent`](IAgent.md).[`@context`](IAgent.md#context)
211
+ [`IFoafAgent`](IFoafAgent.md).[`@context`](IFoafAgent.md#context)
204
212
 
205
213
  ***
206
214
 
@@ -212,4 +220,4 @@ Type.
212
220
 
213
221
  #### Overrides
214
222
 
215
- [`IAgent`](IAgent.md).[`@type`](IAgent.md#type)
223
+ [`IFoafAgent`](IFoafAgent.md).[`@type`](IFoafAgent.md#type)
@@ -1,4 +1,4 @@
1
- # Interface: IPerson
1
+ # Interface: IFoafPerson
2
2
 
3
3
  A FOAF Person.
4
4
 
@@ -8,11 +8,7 @@ http://xmlns.com/foaf/0.1/
8
8
 
9
9
  ## Extends
10
10
 
11
- - [`IAgent`](IAgent.md)
12
-
13
- ## Indexable
14
-
15
- \[`key`: `string`\]: `string` \| `number` \| `boolean` \| `string`[] \| `IJsonLdContextDefinition` \| `IJsonLdNodeObject` \| `IJsonLdGraphObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdListObject` \| `IJsonLdSetObject` \| `IJsonLdNodePrimitive`[] \| `IJsonLdLanguageMap` \| `IJsonLdIndexMap` \| `IJsonLdNodeObject`[] \| `IJsonLdIdMap` \| `IJsonLdTypeMap` \| `IJsonLdContextDefinitionElement`[] \| `IJsonLdJsonObject` \| `IJsonLdJsonObject`[] \| \{\[`key`: `string`\]: `string`; \} \| `null` \| `undefined`
11
+ - [`IFoafAgent`](IFoafAgent.md)
16
12
 
17
13
  ## Properties
18
14
 
@@ -28,7 +24,7 @@ http://xmlns.com/foaf/spec/#term_age
28
24
 
29
25
  #### Inherited from
30
26
 
31
- [`IAgent`](IAgent.md).[`age`](IAgent.md#age)
27
+ [`IFoafAgent`](IFoafAgent.md).[`age`](IFoafAgent.md#age)
32
28
 
33
29
  ***
34
30
 
@@ -44,13 +40,13 @@ http://xmlns.com/foaf/spec/#term_made
44
40
 
45
41
  #### Inherited from
46
42
 
47
- [`IAgent`](IAgent.md).[`made`](IAgent.md#made)
43
+ [`IFoafAgent`](IFoafAgent.md).[`made`](IFoafAgent.md#made)
48
44
 
49
45
  ***
50
46
 
51
47
  ### weblog?
52
48
 
53
- > `optional` **weblog**: [`IDocument`](IDocument.md)
49
+ > `optional` **weblog**: [`IFoafDocument`](IFoafDocument.md)
54
50
 
55
51
  A weblog of some thing (whether person, group, company etc.).
56
52
 
@@ -60,13 +56,13 @@ http://xmlns.com/foaf/spec/#term_weblog
60
56
 
61
57
  #### Inherited from
62
58
 
63
- [`IAgent`](IAgent.md).[`weblog`](IAgent.md#weblog)
59
+ [`IFoafAgent`](IFoafAgent.md).[`weblog`](IFoafAgent.md#weblog)
64
60
 
65
61
  ***
66
62
 
67
63
  ### openid?
68
64
 
69
- > `optional` **openid**: [`IDocument`](IDocument.md)
65
+ > `optional` **openid**: [`IFoafDocument`](IFoafDocument.md)
70
66
 
71
67
  An OpenID for an agent.
72
68
 
@@ -76,13 +72,13 @@ http://xmlns.com/foaf/spec/#term_openid
76
72
 
77
73
  #### Inherited from
78
74
 
79
- [`IAgent`](IAgent.md).[`openid`](IAgent.md#openid)
75
+ [`IFoafAgent`](IFoafAgent.md).[`openid`](IFoafAgent.md#openid)
80
76
 
81
77
  ***
82
78
 
83
79
  ### interest?
84
80
 
85
- > `optional` **interest**: [`IDocument`](IDocument.md)
81
+ > `optional` **interest**: [`IFoafDocument`](IFoafDocument.md)
86
82
 
87
83
  A page about a topic of interest to this person.
88
84
 
@@ -92,7 +88,7 @@ http://xmlns.com/foaf/spec/#term_interest
92
88
 
93
89
  #### Inherited from
94
90
 
95
- [`IAgent`](IAgent.md).[`interest`](IAgent.md#interest)
91
+ [`IFoafAgent`](IFoafAgent.md).[`interest`](IFoafAgent.md#interest)
96
92
 
97
93
  ***
98
94
 
@@ -108,7 +104,19 @@ http://xmlns.com/foaf/spec/#term_topic_interest
108
104
 
109
105
  #### Inherited from
110
106
 
111
- [`IAgent`](IAgent.md).[`topic_interest`](IAgent.md#topic_interest)
107
+ [`IFoafAgent`](IFoafAgent.md).[`topic_interest`](IFoafAgent.md#topic_interest)
108
+
109
+ ***
110
+
111
+ ### @id?
112
+
113
+ > `optional` **@id**: `string`
114
+
115
+ The unique identifier for the FOAF object.
116
+
117
+ #### Inherited from
118
+
119
+ [`IFoafAgent`](IFoafAgent.md).[`@id`](IFoafAgent.md#id)
112
120
 
113
121
  ***
114
122
 
@@ -124,7 +132,7 @@ http://xmlns.com/foaf/spec/#term_name
124
132
 
125
133
  #### Inherited from
126
134
 
127
- [`IAgent`](IAgent.md).[`name`](IAgent.md#name)
135
+ [`IFoafAgent`](IFoafAgent.md).[`name`](IFoafAgent.md#name)
128
136
 
129
137
  ***
130
138
 
@@ -140,7 +148,7 @@ http://xmlns.com/foaf/spec/#term_title
140
148
 
141
149
  #### Inherited from
142
150
 
143
- [`IAgent`](IAgent.md).[`title`](IAgent.md#title)
151
+ [`IFoafAgent`](IFoafAgent.md).[`title`](IFoafAgent.md#title)
144
152
 
145
153
  ***
146
154
 
@@ -156,7 +164,7 @@ http://xmlns.com/foaf/spec/#term_mbox
156
164
 
157
165
  #### Inherited from
158
166
 
159
- [`IAgent`](IAgent.md).[`mbox`](IAgent.md#mbox)
167
+ [`IFoafAgent`](IFoafAgent.md).[`mbox`](IFoafAgent.md#mbox)
160
168
 
161
169
  ***
162
170
 
@@ -172,13 +180,13 @@ http://xmlns.com/foaf/spec/#term_homepage
172
180
 
173
181
  #### Inherited from
174
182
 
175
- [`IAgent`](IAgent.md).[`homepage`](IAgent.md#homepage)
183
+ [`IFoafAgent`](IFoafAgent.md).[`homepage`](IFoafAgent.md#homepage)
176
184
 
177
185
  ***
178
186
 
179
187
  ### depiction?
180
188
 
181
- > `optional` **depiction**: [`IImage`](IImage.md)
189
+ > `optional` **depiction**: [`IFoafImage`](IFoafImage.md)
182
190
 
183
191
  A depiction of some thing.
184
192
 
@@ -188,7 +196,7 @@ http://xmlns.com/foaf/spec/#term_depiction
188
196
 
189
197
  #### Inherited from
190
198
 
191
- [`IAgent`](IAgent.md).[`depiction`](IAgent.md#depiction)
199
+ [`IFoafAgent`](IFoafAgent.md).[`depiction`](IFoafAgent.md#depiction)
192
200
 
193
201
  ***
194
202
 
@@ -200,7 +208,7 @@ The LD Context.
200
208
 
201
209
  #### Overrides
202
210
 
203
- [`IAgent`](IAgent.md).[`@context`](IAgent.md#context)
211
+ [`IFoafAgent`](IFoafAgent.md).[`@context`](IFoafAgent.md#context)
204
212
 
205
213
  ***
206
214
 
@@ -212,7 +220,7 @@ Type.
212
220
 
213
221
  #### Overrides
214
222
 
215
- [`IAgent`](IAgent.md).[`@type`](IAgent.md#type)
223
+ [`IFoafAgent`](IFoafAgent.md).[`@type`](IFoafAgent.md#type)
216
224
 
217
225
  ***
218
226
 
@@ -242,7 +250,7 @@ http://xmlns.com/foaf/spec/#term_givenName
242
250
 
243
251
  ### knows?
244
252
 
245
- > `optional` **knows**: `ObjectOrArray`\<[`IAgent`](IAgent.md)\>
253
+ > `optional` **knows**: `ObjectOrArray`\<[`IFoafAgent`](IFoafAgent.md)\>
246
254
 
247
255
  A person known by this person (indicating some level of reciprocated interaction between the parties).
248
256
 
@@ -254,7 +262,7 @@ http://xmlns.com/foaf/spec/#term_knows
254
262
 
255
263
  ### img?
256
264
 
257
- > `optional` **img**: [`IImage`](IImage.md)
265
+ > `optional` **img**: [`IFoafImage`](IFoafImage.md)
258
266
 
259
267
  An image that can be used to represent some thing.
260
268
 
@@ -1,5 +1,5 @@
1
1
  # Type Alias: FoafContextType
2
2
 
3
- > **FoafContextType** = *typeof* [`ContextRoot`](../variables/FoafContexts.md#contextroot) \| \[*typeof* [`ContextRoot`](../variables/FoafContexts.md#contextroot)\] \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`ContextRoot`](../variables/FoafContexts.md#contextroot)\]
3
+ > **FoafContextType** = *typeof* [`Context`](../variables/FoafContexts.md#context) \| \[*typeof* [`Context`](../variables/FoafContexts.md#context)\] \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`Context`](../variables/FoafContexts.md#context)\]
4
4
 
5
5
  The FOAF JSON-LD context type.
@@ -0,0 +1,12 @@
1
+ # Type Alias: IFoafAgentWithAliases\<T\>
2
+
3
+ > **IFoafAgentWithAliases**\<`T`\> = `JsonLdObjectWithAliases`\<[`IFoafAgent`](../interfaces/IFoafAgent.md), `T`\>
4
+
5
+ A FOAF Agent with FOAF-prefixed aliases for non-JSON-LD keys.
6
+ This allows using either prefixed aliases (e.g., "foaf:name") when defining a FOAF Agent.
7
+
8
+ ## Type Parameters
9
+
10
+ ### T
11
+
12
+ `T` *extends* `string` = `"foaf"`
@@ -0,0 +1,12 @@
1
+ # Type Alias: IFoafDocumentWithAliases\<T\>
2
+
3
+ > **IFoafDocumentWithAliases**\<`T`\> = `JsonLdObjectWithAliases`\<[`IFoafDocument`](../interfaces/IFoafDocument.md), `T`\>
4
+
5
+ A FOAF Document with FOAF-prefixed aliases for non-JSON-LD keys.
6
+ This allows using either prefixed aliases (e.g., "foaf:name") when defining a FOAF Document.
7
+
8
+ ## Type Parameters
9
+
10
+ ### T
11
+
12
+ `T` *extends* `string` = `"foaf"`
@@ -0,0 +1,12 @@
1
+ # Type Alias: IFoafGroupWithAliases\<T\>
2
+
3
+ > **IFoafGroupWithAliases**\<`T`\> = `JsonLdObjectWithAliases`\<[`IFoafGroup`](../interfaces/IFoafGroup.md), `T`\>
4
+
5
+ A FOAF Group with FOAF-prefixed aliases for non-JSON-LD keys.
6
+ This allows using either prefixed aliases (e.g., "foaf:name") when defining a FOAF Group.
7
+
8
+ ## Type Parameters
9
+
10
+ ### T
11
+
12
+ `T` *extends* `string` = `"foaf"`
@@ -0,0 +1,12 @@
1
+ # Type Alias: IFoafImageWithAliases\<T\>
2
+
3
+ > **IFoafImageWithAliases**\<`T`\> = `JsonLdObjectWithAliases`\<[`IFoafImage`](../interfaces/IFoafImage.md), `T`\>
4
+
5
+ A FOAF Image with FOAF-prefixed aliases for non-JSON-LD keys.
6
+ This allows using either prefixed aliases (e.g., "foaf:name") when defining a FOAF Image.
7
+
8
+ ## Type Parameters
9
+
10
+ ### T
11
+
12
+ `T` *extends* `string` = `"foaf"`
@@ -0,0 +1,12 @@
1
+ # Type Alias: IFoafOrganizationWithAliases\<T\>
2
+
3
+ > **IFoafOrganizationWithAliases**\<`T`\> = `JsonLdObjectWithAliases`\<[`IFoafOrganization`](../interfaces/IFoafOrganization.md), `T`\>
4
+
5
+ A FOAF Organization with FOAF-prefixed aliases for non-JSON-LD keys.
6
+ This allows using either prefixed aliases (e.g., "foaf:name") when defining a FOAF Organization.
7
+
8
+ ## Type Parameters
9
+
10
+ ### T
11
+
12
+ `T` *extends* `string` = `"foaf"`
@@ -0,0 +1,12 @@
1
+ # Type Alias: IFoafPersonWithAliases\<T\>
2
+
3
+ > **IFoafPersonWithAliases**\<`T`\> = `JsonLdObjectWithAliases`\<[`IFoafPerson`](../interfaces/IFoafPerson.md), `T`\>
4
+
5
+ A FOAF Person with FOAF-prefixed aliases for non-JSON-LD keys.
6
+ This allows using either prefixed aliases (e.g., "foaf:name") when defining a FOAF Person.
7
+
8
+ ## Type Parameters
9
+
10
+ ### T
11
+
12
+ `T` *extends* `string` = `"foaf"`
@@ -6,20 +6,28 @@ The LD Contexts concerning FOAF.
6
6
 
7
7
  ## Type Declaration
8
8
 
9
- ### ContextRoot
9
+ ### Namespace
10
10
 
11
- > `readonly` **ContextRoot**: `"https://xmlns.com/foaf/0.1/"` = `"https://xmlns.com/foaf/0.1/"`
11
+ > `readonly` **Namespace**: `"https://xmlns.com/foaf/0.1/"` = `"https://xmlns.com/foaf/0.1/"`
12
12
 
13
- The FOAF LD Context.
13
+ The canonical RDF namespace URI.
14
14
 
15
- ### TwinContext
15
+ ### Context
16
16
 
17
- > `readonly` **TwinContext**: `"https://schema.twindev.org/foaf/"` = `"https://schema.twindev.org/foaf/"`
17
+ > `readonly` **Context**: `"https://xmlns.com/foaf/0.1/"` = `"https://xmlns.com/foaf/0.1/"`
18
18
 
19
- The TWIN context for FOAF.
19
+ The value to use in @context.
20
+ Note: Context matches Namespace (both include trailing slash) as per FOAF specification.
21
+ The FOAF JSON-LD context URL format includes a trailing slash.
20
22
 
21
- ### ContextRedirect
23
+ ### JsonLdContext
22
24
 
23
- > `readonly` **ContextRedirect**: `"https://schema.twindev.org/foaf/types.jsonld"` = `"https://schema.twindev.org/foaf/types.jsonld"`
25
+ > `readonly` **JsonLdContext**: `"https://schema.twindev.org/foaf/types.jsonld"` = `"https://schema.twindev.org/foaf/types.jsonld"`
24
26
 
25
- The TWIN context redirect for JSON-LD.
27
+ The JSON-LD Context URL.
28
+
29
+ ### JsonSchemaNamespace
30
+
31
+ > `readonly` **JsonSchemaNamespace**: `"https://schema.twindev.org/foaf/"` = `"https://schema.twindev.org/foaf/"`
32
+
33
+ The namespace location of the hosted version of the JSON Schema.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-foaf",
3
- "version": "0.0.3-next.5",
3
+ "version": "0.0.3-next.50",
4
4
  "description": "Models which define the structure of FOAF",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IAgent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAgent.js","sourceRoot":"","sources":["../../../src/models/IAgent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IBaseObject } from \"./IBaseObject.js\";\nimport type { IDocument } from \"./IDocument.js\";\n\n/**\n * A FOAF Agent.\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IAgent extends IBaseObject {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\"?: FoafContextType;\n\n\t/**\n\t * Type.\n\t */\n\t\"@type\":\n\t\t| typeof FoafTypes.Agent\n\t\t| typeof FoafTypes.Person\n\t\t| typeof FoafTypes.Organization\n\t\t| typeof FoafTypes.Group\n\t\t| string;\n\n\t/**\n\t * The age in years of some agent.\n\t * @see http://xmlns.com/foaf/spec/#term_age\n\t */\n\tage?: number;\n\n\t/**\n\t * Something that was made by this agent.\n\t * @see http://xmlns.com/foaf/spec/#term_made\n\t */\n\tmade?: ObjectOrArray<IJsonLdNodeObject>;\n\n\t/**\n\t * A weblog of some thing (whether person, group, company etc.).\n\t * @see http://xmlns.com/foaf/spec/#term_weblog\n\t */\n\tweblog?: IDocument;\n\n\t/**\n\t * An OpenID for an agent.\n\t * @see http://xmlns.com/foaf/spec/#term_openid\n\t */\n\topenid?: IDocument;\n\n\t/**\n\t * A page about a topic of interest to this person.\n\t * @see http://xmlns.com/foaf/spec/#term_interest\n\t */\n\tinterest?: IDocument;\n\n\t/**\n\t * A thing of interest to this person.\n\t * @see http://xmlns.com/foaf/spec/#term_topic_interest\n\t */\n\ttopic_interest?: IJsonLdNodeObject;\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IBaseObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IBaseObject.js","sourceRoot":"","sources":["../../../src/models/IBaseObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { IImage } from \"./IImage.js\";\n\n/**\n * Core FOAF Properties\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IBaseObject extends IJsonLdNodeObject {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\"?: FoafContextType;\n\n\t/**\n\t * A name for some thing.\n\t * @see http://xmlns.com/foaf/spec/#term_name\n\t */\n\tname?: string;\n\n\t/**\n\t * Title (Mr, Mrs, Ms, Dr. etc)\n\t * @see http://xmlns.com/foaf/spec/#term_title\n\t */\n\ttitle?: string;\n\n\t/**\n\t * A personal mailbox, ie. an Internet mailbox associated with exactly one owner, the first owner of this mailbox\n\t * @see http://xmlns.com/foaf/spec/#term_mbox\n\t */\n\tmbox?: string;\n\n\t/**\n\t * A homepage for some thing.\n\t * @see http://xmlns.com/foaf/spec/#term_homepage\n\t */\n\thomepage?: string;\n\n\t/**\n\t * A depiction of some thing.\n\t * @see http://xmlns.com/foaf/spec/#term_depiction\n\t */\n\tdepiction?: IImage;\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IDocument.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IDocument.js","sourceRoot":"","sources":["../../../src/models/IDocument.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IBaseObject } from \"./IBaseObject.js\";\n\n/**\n * A FOAF Document\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IDocument extends IBaseObject {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\"?: FoafContextType;\n\n\t/**\n\t * Type.\n\t */\n\t\"@type\": typeof FoafTypes.Document | typeof FoafTypes.Image;\n\n\t/**\n\t * A topic of some page or document.\n\t * @see http://xmlns.com/foaf/spec/#term_topic\n\t */\n\ttopic?: string;\n\n\t/**\n\t * The primary topic of some page or document.\n\t * @see http://xmlns.com/foaf/spec/#term_primaryTopic\n\t */\n\tprimaryTopic?: ObjectOrArray<IJsonLdNodeObject>;\n\n\t/**\n\t * A sha1sum hash, in hex.\n\t * @see http://xmlns.com/foaf/spec/#term_sha1sum\n\t */\n\tsha1?: string;\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IGroup.js","sourceRoot":"","sources":["../../../src/models/IGroup.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IAgent } from \"./IAgent.js\";\n\n/**\n * A FOAF Group.\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IGroup extends IAgent {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\"?: FoafContextType;\n\n\t/**\n\t * Type.\n\t */\n\t\"@type\": typeof FoafTypes.Group;\n\n\t/**\n\t * Indicates a member of a Group\n\t * @see http://xmlns.com/foaf/spec/#term_member\n\t */\n\tmember?: ObjectOrArray<IAgent>;\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IImage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IImage.js","sourceRoot":"","sources":["../../../src/models/IImage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IDocument } from \"./IDocument.js\";\n\n/**\n * A FOAF image.\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IImage extends IDocument {\n\t/**\n\t * The LD Context.\n\t *\n\t */\n\t\"@context\"?: FoafContextType;\n\n\t/**\n\t * Type.\n\t */\n\t\"@type\": typeof FoafTypes.Image;\n\n\t/**\n\t * A thing depicted in this representation.\n\t * @see http://xmlns.com/foaf/spec/#term_depicts\n\t */\n\tdepicts?: IJsonLdNodeObject;\n\n\t/**\n\t * A derived thumbnail image.\n\t * @see http://xmlns.com/foaf/spec/#term_thumbnail\n\t */\n\tthumbnail?: IImage;\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IOrganization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IOrganization.js","sourceRoot":"","sources":["../../../src/models/IOrganization.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IAgent } from \"./IAgent.js\";\n\n/**\n * A FOAF Organization.\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IOrganization extends IAgent {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\"?: FoafContextType;\n\n\t/**\n\t * Type.\n\t */\n\t\"@type\": typeof FoafTypes.Organization;\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IPerson.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPerson.js","sourceRoot":"","sources":["../../../src/models/IPerson.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IAgent } from \"./IAgent.js\";\nimport type { IImage } from \"./IImage.js\";\n\n/**\n * A FOAF Person.\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IPerson extends IAgent {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\"?: FoafContextType;\n\n\t/**\n\t * Type.\n\t */\n\t\"@type\": typeof FoafTypes.Person;\n\n\t/**\n\t * The family name of some person.\n\t * @see http://xmlns.com/foaf/spec/#term_familyName\n\t */\n\tfamilyName?: string;\n\n\t/**\n\t * The given name of some person.\n\t * @see http://xmlns.com/foaf/spec/#term_givenName\n\t */\n\tgivenName?: string;\n\n\t/**\n\t * A person known by this person (indicating some level of reciprocated interaction between the parties).\n\t * @see http://xmlns.com/foaf/spec/#term_knows\n\t */\n\tknows?: ObjectOrArray<IAgent>;\n\n\t/**\n\t * An image that can be used to represent some thing.\n\t * @see http://xmlns.com/foaf/spec/#term_img\n\t */\n\timg?: IImage;\n\n\t/**\n\t * A short informal nickname characterizing an agent (includes login identifiers, IRC and other chat nicknames).\n\t * @see http://xmlns.com/foaf/spec/#term_nick\n\t */\n\tnick?: string;\n}\n"]}
@@ -1,23 +0,0 @@
1
- import type { ObjectOrArray } from "@twin.org/core";
2
- import type { FoafContextType } from "./foafContextType.js";
3
- import type { FoafTypes } from "./foafTypes.js";
4
- import type { IAgent } from "./IAgent.js";
5
- /**
6
- * A FOAF Group.
7
- * @see http://xmlns.com/foaf/0.1/
8
- */
9
- export interface IGroup extends IAgent {
10
- /**
11
- * The LD Context.
12
- */
13
- "@context"?: FoafContextType;
14
- /**
15
- * Type.
16
- */
17
- "@type": typeof FoafTypes.Group;
18
- /**
19
- * Indicates a member of a Group
20
- * @see http://xmlns.com/foaf/spec/#term_member
21
- */
22
- member?: ObjectOrArray<IAgent>;
23
- }
@@ -1,17 +0,0 @@
1
- import type { FoafContextType } from "./foafContextType.js";
2
- import type { FoafTypes } from "./foafTypes.js";
3
- import type { IAgent } from "./IAgent.js";
4
- /**
5
- * A FOAF Organization.
6
- * @see http://xmlns.com/foaf/0.1/
7
- */
8
- export interface IOrganization extends IAgent {
9
- /**
10
- * The LD Context.
11
- */
12
- "@context"?: FoafContextType;
13
- /**
14
- * Type.
15
- */
16
- "@type": typeof FoafTypes.Organization;
17
- }