@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.
- package/dist/es/dataTypes/foafDataTypes.js +6 -6
- package/dist/es/dataTypes/foafDataTypes.js.map +1 -1
- package/dist/es/index.js +7 -7
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IFoafAgent.js +2 -0
- package/dist/es/models/IFoafAgent.js.map +1 -0
- package/dist/es/models/IFoafBaseObject.js +2 -0
- package/dist/es/models/IFoafBaseObject.js.map +1 -0
- package/dist/es/models/IFoafDocument.js +2 -0
- package/dist/es/models/IFoafDocument.js.map +1 -0
- package/dist/es/models/IFoafGroup.js +2 -0
- package/dist/es/models/IFoafGroup.js.map +1 -0
- package/dist/es/models/IFoafImage.js +2 -0
- package/dist/es/models/IFoafImage.js.map +1 -0
- package/dist/es/models/IFoafOrganization.js +2 -0
- package/dist/es/models/IFoafOrganization.js.map +1 -0
- package/dist/es/models/IFoafPerson.js +2 -0
- package/dist/es/models/IFoafPerson.js.map +1 -0
- package/dist/es/schemas/{Agent.json → FoafAgent.json} +5 -5
- package/dist/es/schemas/{Document.json → FoafDocument.json} +2 -2
- package/dist/es/schemas/{Group.json → FoafGroup.json} +7 -7
- package/dist/es/schemas/{Image.json → FoafImage.json} +3 -3
- package/dist/es/schemas/{Organization.json → FoafOrganization.json} +5 -5
- package/dist/es/schemas/{Person.json → FoafPerson.json} +8 -8
- package/dist/types/index.d.ts +7 -7
- package/dist/types/models/{IAgent.d.ts → IFoafAgent.d.ts} +6 -6
- package/dist/types/models/{IBaseObject.d.ts → IFoafBaseObject.d.ts} +3 -3
- package/dist/types/models/{IDocument.d.ts → IFoafDocument.d.ts} +2 -2
- package/dist/types/models/{IGroup.d.ts → IFoafGroup.d.ts} +3 -3
- package/dist/types/models/{IImage.d.ts → IFoafImage.d.ts} +3 -3
- package/dist/types/models/{IOrganization.d.ts → IFoafOrganization.d.ts} +2 -2
- package/dist/types/models/{IPerson.d.ts → IFoafPerson.d.ts} +5 -5
- package/docs/changelog.md +14 -0
- package/docs/reference/index.md +7 -7
- package/docs/reference/interfaces/{IAgent.md → IFoafAgent.md} +16 -16
- package/docs/reference/interfaces/{IBaseObject.md → IFoafBaseObject.md} +4 -4
- package/docs/reference/interfaces/{IDocument.md → IFoafDocument.md} +11 -11
- package/docs/reference/interfaces/{IGroup.md → IFoafGroup.md} +20 -20
- package/docs/reference/interfaces/{IImage.md → IFoafImage.md} +14 -14
- package/docs/reference/interfaces/{IOrganization.md → IFoafOrganization.md} +19 -19
- package/docs/reference/interfaces/{IPerson.md → IFoafPerson.md} +21 -21
- package/package.json +1 -1
- package/dist/es/models/IAgent.js +0 -2
- package/dist/es/models/IAgent.js.map +0 -1
- package/dist/es/models/IBaseObject.js +0 -2
- package/dist/es/models/IBaseObject.js.map +0 -1
- package/dist/es/models/IDocument.js +0 -2
- package/dist/es/models/IDocument.js.map +0 -1
- package/dist/es/models/IGroup.js +0 -2
- package/dist/es/models/IGroup.js.map +0 -1
- package/dist/es/models/IImage.js +0 -2
- package/dist/es/models/IImage.js.map +0 -1
- package/dist/es/models/IOrganization.js +0 -2
- package/dist/es/models/IOrganization.js.map +0 -1
- package/dist/es/models/IPerson.js +0 -2
- package/dist/es/models/IPerson.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Interface:
|
|
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
|
-
- [`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
47
|
+
[`IFoafAgent`](IFoafAgent.md).[`made`](IFoafAgent.md#made)
|
|
48
48
|
|
|
49
49
|
***
|
|
50
50
|
|
|
51
51
|
### weblog?
|
|
52
52
|
|
|
53
|
-
> `optional` **weblog**: [`
|
|
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
|
-
[`
|
|
63
|
+
[`IFoafAgent`](IFoafAgent.md).[`weblog`](IFoafAgent.md#weblog)
|
|
64
64
|
|
|
65
65
|
***
|
|
66
66
|
|
|
67
67
|
### openid?
|
|
68
68
|
|
|
69
|
-
> `optional` **openid**: [`
|
|
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
|
-
[`
|
|
79
|
+
[`IFoafAgent`](IFoafAgent.md).[`openid`](IFoafAgent.md#openid)
|
|
80
80
|
|
|
81
81
|
***
|
|
82
82
|
|
|
83
83
|
### interest?
|
|
84
84
|
|
|
85
|
-
> `optional` **interest**: [`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
175
|
+
[`IFoafAgent`](IFoafAgent.md).[`homepage`](IFoafAgent.md#homepage)
|
|
176
176
|
|
|
177
177
|
***
|
|
178
178
|
|
|
179
179
|
### depiction?
|
|
180
180
|
|
|
181
|
-
> `optional` **depiction**: [`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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`\<[`
|
|
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**: [`
|
|
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
package/dist/es/models/IAgent.js
DELETED
|
@@ -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 +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 +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"]}
|
package/dist/es/models/IGroup.js
DELETED
|
@@ -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"]}
|
package/dist/es/models/IImage.js
DELETED
|
@@ -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 +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 +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"]}
|