@twin.org/standards-foaf 0.0.3-next.6 → 0.0.3-next.8

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 (56) hide show
  1. package/dist/es/dataTypes/foafDataTypes.js +6 -6
  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/schemas/{Agent.json → FoafAgent.json} +5 -5
  20. package/dist/es/schemas/{Document.json → FoafDocument.json} +2 -2
  21. package/dist/es/schemas/{Group.json → FoafGroup.json} +7 -7
  22. package/dist/es/schemas/{Image.json → FoafImage.json} +3 -3
  23. package/dist/es/schemas/{Organization.json → FoafOrganization.json} +5 -5
  24. package/dist/es/schemas/{Person.json → FoafPerson.json} +8 -8
  25. package/dist/types/index.d.ts +7 -7
  26. package/dist/types/models/{IAgent.d.ts → IFoafAgent.d.ts} +6 -6
  27. package/dist/types/models/{IBaseObject.d.ts → IFoafBaseObject.d.ts} +3 -3
  28. package/dist/types/models/{IDocument.d.ts → IFoafDocument.d.ts} +2 -2
  29. package/dist/types/models/{IGroup.d.ts → IFoafGroup.d.ts} +3 -3
  30. package/dist/types/models/{IImage.d.ts → IFoafImage.d.ts} +3 -3
  31. package/dist/types/models/{IOrganization.d.ts → IFoafOrganization.d.ts} +2 -2
  32. package/dist/types/models/{IPerson.d.ts → IFoafPerson.d.ts} +5 -5
  33. package/docs/changelog.md +14 -0
  34. package/docs/reference/index.md +7 -7
  35. package/docs/reference/interfaces/{IAgent.md → IFoafAgent.md} +16 -16
  36. package/docs/reference/interfaces/{IBaseObject.md → IFoafBaseObject.md} +4 -4
  37. package/docs/reference/interfaces/{IDocument.md → IFoafDocument.md} +11 -11
  38. package/docs/reference/interfaces/{IGroup.md → IFoafGroup.md} +20 -20
  39. package/docs/reference/interfaces/{IImage.md → IFoafImage.md} +14 -14
  40. package/docs/reference/interfaces/{IOrganization.md → IFoafOrganization.md} +19 -19
  41. package/docs/reference/interfaces/{IPerson.md → IFoafPerson.md} +21 -21
  42. package/package.json +1 -1
  43. package/dist/es/models/IAgent.js +0 -2
  44. package/dist/es/models/IAgent.js.map +0 -1
  45. package/dist/es/models/IBaseObject.js +0 -2
  46. package/dist/es/models/IBaseObject.js.map +0 -1
  47. package/dist/es/models/IDocument.js +0 -2
  48. package/dist/es/models/IDocument.js.map +0 -1
  49. package/dist/es/models/IGroup.js +0 -2
  50. package/dist/es/models/IGroup.js.map +0 -1
  51. package/dist/es/models/IImage.js +0 -2
  52. package/dist/es/models/IImage.js.map +0 -1
  53. package/dist/es/models/IOrganization.js +0 -2
  54. package/dist/es/models/IOrganization.js.map +0 -1
  55. package/dist/es/models/IPerson.js +0 -2
  56. package/dist/es/models/IPerson.js.map +0 -1
@@ -1,4 +1,4 @@
1
- # Interface: IPerson
1
+ # Interface: IFoafPerson
2
2
 
3
3
  A FOAF Person.
4
4
 
@@ -8,7 +8,7 @@ http://xmlns.com/foaf/0.1/
8
8
 
9
9
  ## Extends
10
10
 
11
- - [`IAgent`](IAgent.md)
11
+ - [`IFoafAgent`](IFoafAgent.md)
12
12
 
13
13
  ## Indexable
14
14
 
@@ -28,7 +28,7 @@ http://xmlns.com/foaf/spec/#term_age
28
28
 
29
29
  #### Inherited from
30
30
 
31
- [`IAgent`](IAgent.md).[`age`](IAgent.md#age)
31
+ [`IFoafAgent`](IFoafAgent.md).[`age`](IFoafAgent.md#age)
32
32
 
33
33
  ***
34
34
 
@@ -44,13 +44,13 @@ http://xmlns.com/foaf/spec/#term_made
44
44
 
45
45
  #### Inherited from
46
46
 
47
- [`IAgent`](IAgent.md).[`made`](IAgent.md#made)
47
+ [`IFoafAgent`](IFoafAgent.md).[`made`](IFoafAgent.md#made)
48
48
 
49
49
  ***
50
50
 
51
51
  ### weblog?
52
52
 
53
- > `optional` **weblog**: [`IDocument`](IDocument.md)
53
+ > `optional` **weblog**: [`IFoafDocument`](IFoafDocument.md)
54
54
 
55
55
  A weblog of some thing (whether person, group, company etc.).
56
56
 
@@ -60,13 +60,13 @@ http://xmlns.com/foaf/spec/#term_weblog
60
60
 
61
61
  #### Inherited from
62
62
 
63
- [`IAgent`](IAgent.md).[`weblog`](IAgent.md#weblog)
63
+ [`IFoafAgent`](IFoafAgent.md).[`weblog`](IFoafAgent.md#weblog)
64
64
 
65
65
  ***
66
66
 
67
67
  ### openid?
68
68
 
69
- > `optional` **openid**: [`IDocument`](IDocument.md)
69
+ > `optional` **openid**: [`IFoafDocument`](IFoafDocument.md)
70
70
 
71
71
  An OpenID for an agent.
72
72
 
@@ -76,13 +76,13 @@ http://xmlns.com/foaf/spec/#term_openid
76
76
 
77
77
  #### Inherited from
78
78
 
79
- [`IAgent`](IAgent.md).[`openid`](IAgent.md#openid)
79
+ [`IFoafAgent`](IFoafAgent.md).[`openid`](IFoafAgent.md#openid)
80
80
 
81
81
  ***
82
82
 
83
83
  ### interest?
84
84
 
85
- > `optional` **interest**: [`IDocument`](IDocument.md)
85
+ > `optional` **interest**: [`IFoafDocument`](IFoafDocument.md)
86
86
 
87
87
  A page about a topic of interest to this person.
88
88
 
@@ -92,7 +92,7 @@ http://xmlns.com/foaf/spec/#term_interest
92
92
 
93
93
  #### Inherited from
94
94
 
95
- [`IAgent`](IAgent.md).[`interest`](IAgent.md#interest)
95
+ [`IFoafAgent`](IFoafAgent.md).[`interest`](IFoafAgent.md#interest)
96
96
 
97
97
  ***
98
98
 
@@ -108,7 +108,7 @@ http://xmlns.com/foaf/spec/#term_topic_interest
108
108
 
109
109
  #### Inherited from
110
110
 
111
- [`IAgent`](IAgent.md).[`topic_interest`](IAgent.md#topic_interest)
111
+ [`IFoafAgent`](IFoafAgent.md).[`topic_interest`](IFoafAgent.md#topic_interest)
112
112
 
113
113
  ***
114
114
 
@@ -124,7 +124,7 @@ http://xmlns.com/foaf/spec/#term_name
124
124
 
125
125
  #### Inherited from
126
126
 
127
- [`IAgent`](IAgent.md).[`name`](IAgent.md#name)
127
+ [`IFoafAgent`](IFoafAgent.md).[`name`](IFoafAgent.md#name)
128
128
 
129
129
  ***
130
130
 
@@ -140,7 +140,7 @@ http://xmlns.com/foaf/spec/#term_title
140
140
 
141
141
  #### Inherited from
142
142
 
143
- [`IAgent`](IAgent.md).[`title`](IAgent.md#title)
143
+ [`IFoafAgent`](IFoafAgent.md).[`title`](IFoafAgent.md#title)
144
144
 
145
145
  ***
146
146
 
@@ -156,7 +156,7 @@ http://xmlns.com/foaf/spec/#term_mbox
156
156
 
157
157
  #### Inherited from
158
158
 
159
- [`IAgent`](IAgent.md).[`mbox`](IAgent.md#mbox)
159
+ [`IFoafAgent`](IFoafAgent.md).[`mbox`](IFoafAgent.md#mbox)
160
160
 
161
161
  ***
162
162
 
@@ -172,13 +172,13 @@ http://xmlns.com/foaf/spec/#term_homepage
172
172
 
173
173
  #### Inherited from
174
174
 
175
- [`IAgent`](IAgent.md).[`homepage`](IAgent.md#homepage)
175
+ [`IFoafAgent`](IFoafAgent.md).[`homepage`](IFoafAgent.md#homepage)
176
176
 
177
177
  ***
178
178
 
179
179
  ### depiction?
180
180
 
181
- > `optional` **depiction**: [`IImage`](IImage.md)
181
+ > `optional` **depiction**: [`IFoafImage`](IFoafImage.md)
182
182
 
183
183
  A depiction of some thing.
184
184
 
@@ -188,7 +188,7 @@ http://xmlns.com/foaf/spec/#term_depiction
188
188
 
189
189
  #### Inherited from
190
190
 
191
- [`IAgent`](IAgent.md).[`depiction`](IAgent.md#depiction)
191
+ [`IFoafAgent`](IFoafAgent.md).[`depiction`](IFoafAgent.md#depiction)
192
192
 
193
193
  ***
194
194
 
@@ -200,7 +200,7 @@ The LD Context.
200
200
 
201
201
  #### Overrides
202
202
 
203
- [`IAgent`](IAgent.md).[`@context`](IAgent.md#context)
203
+ [`IFoafAgent`](IFoafAgent.md).[`@context`](IFoafAgent.md#context)
204
204
 
205
205
  ***
206
206
 
@@ -212,7 +212,7 @@ Type.
212
212
 
213
213
  #### Overrides
214
214
 
215
- [`IAgent`](IAgent.md).[`@type`](IAgent.md#type)
215
+ [`IFoafAgent`](IFoafAgent.md).[`@type`](IFoafAgent.md#type)
216
216
 
217
217
  ***
218
218
 
@@ -242,7 +242,7 @@ http://xmlns.com/foaf/spec/#term_givenName
242
242
 
243
243
  ### knows?
244
244
 
245
- > `optional` **knows**: `ObjectOrArray`\<[`IAgent`](IAgent.md)\>
245
+ > `optional` **knows**: `ObjectOrArray`\<[`IFoafAgent`](IFoafAgent.md)\>
246
246
 
247
247
  A person known by this person (indicating some level of reciprocated interaction between the parties).
248
248
 
@@ -254,7 +254,7 @@ http://xmlns.com/foaf/spec/#term_knows
254
254
 
255
255
  ### img?
256
256
 
257
- > `optional` **img**: [`IImage`](IImage.md)
257
+ > `optional` **img**: [`IFoafImage`](IFoafImage.md)
258
258
 
259
259
  An image that can be used to represent some thing.
260
260
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-foaf",
3
- "version": "0.0.3-next.6",
3
+ "version": "0.0.3-next.8",
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"]}