@twin.org/standards-foaf 0.0.3-next.3

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 (62) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +21 -0
  3. package/dist/es/dataTypes/foafDataTypes.js +65 -0
  4. package/dist/es/dataTypes/foafDataTypes.js.map +1 -0
  5. package/dist/es/index.js +14 -0
  6. package/dist/es/index.js.map +1 -0
  7. package/dist/es/models/IAgent.js +2 -0
  8. package/dist/es/models/IAgent.js.map +1 -0
  9. package/dist/es/models/IBaseObject.js +2 -0
  10. package/dist/es/models/IBaseObject.js.map +1 -0
  11. package/dist/es/models/IDocument.js +2 -0
  12. package/dist/es/models/IDocument.js.map +1 -0
  13. package/dist/es/models/IGroup.js +2 -0
  14. package/dist/es/models/IGroup.js.map +1 -0
  15. package/dist/es/models/IImage.js +2 -0
  16. package/dist/es/models/IImage.js.map +1 -0
  17. package/dist/es/models/IOrganization.js +2 -0
  18. package/dist/es/models/IOrganization.js.map +1 -0
  19. package/dist/es/models/IPerson.js +2 -0
  20. package/dist/es/models/IPerson.js.map +1 -0
  21. package/dist/es/models/foafContextType.js +2 -0
  22. package/dist/es/models/foafContextType.js.map +1 -0
  23. package/dist/es/models/foafContexts.js +21 -0
  24. package/dist/es/models/foafContexts.js.map +1 -0
  25. package/dist/es/models/foafTypes.js +34 -0
  26. package/dist/es/models/foafTypes.js.map +1 -0
  27. package/dist/es/schemas/Agent.json +176 -0
  28. package/dist/es/schemas/Document.json +168 -0
  29. package/dist/es/schemas/Group.json +191 -0
  30. package/dist/es/schemas/Image.json +173 -0
  31. package/dist/es/schemas/Organization.json +177 -0
  32. package/dist/es/schemas/Person.json +207 -0
  33. package/dist/types/dataTypes/foafDataTypes.d.ts +13 -0
  34. package/dist/types/index.d.ts +11 -0
  35. package/dist/types/models/IAgent.d.ts +50 -0
  36. package/dist/types/models/IBaseObject.d.ts +38 -0
  37. package/dist/types/models/IDocument.d.ts +34 -0
  38. package/dist/types/models/IGroup.d.ts +23 -0
  39. package/dist/types/models/IImage.d.ts +29 -0
  40. package/dist/types/models/IOrganization.d.ts +17 -0
  41. package/dist/types/models/IPerson.d.ts +44 -0
  42. package/dist/types/models/foafContextType.d.ts +6 -0
  43. package/dist/types/models/foafContexts.d.ts +21 -0
  44. package/dist/types/models/foafTypes.d.ts +35 -0
  45. package/docs/changelog.md +10 -0
  46. package/docs/examples.md +1 -0
  47. package/docs/reference/classes/FoafDataTypes.md +37 -0
  48. package/docs/reference/index.md +26 -0
  49. package/docs/reference/interfaces/IAgent.md +197 -0
  50. package/docs/reference/interfaces/IBaseObject.md +92 -0
  51. package/docs/reference/interfaces/IDocument.md +159 -0
  52. package/docs/reference/interfaces/IGroup.md +227 -0
  53. package/docs/reference/interfaces/IImage.md +191 -0
  54. package/docs/reference/interfaces/IOrganization.md +215 -0
  55. package/docs/reference/interfaces/IPerson.md +275 -0
  56. package/docs/reference/type-aliases/FoafContextType.md +5 -0
  57. package/docs/reference/type-aliases/FoafContexts.md +5 -0
  58. package/docs/reference/type-aliases/FoafTypes.md +9 -0
  59. package/docs/reference/variables/FoafContexts.md +25 -0
  60. package/docs/reference/variables/FoafTypes.md +47 -0
  61. package/locales/en.json +1 -0
  62. package/package.json +52 -0
@@ -0,0 +1,275 @@
1
+ # Interface: IPerson
2
+
3
+ A FOAF Person.
4
+
5
+ ## See
6
+
7
+ http://xmlns.com/foaf/0.1/
8
+
9
+ ## Extends
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`
16
+
17
+ ## Properties
18
+
19
+ ### age?
20
+
21
+ > `optional` **age**: `number`
22
+
23
+ The age in years of some agent.
24
+
25
+ #### See
26
+
27
+ http://xmlns.com/foaf/spec/#term_age
28
+
29
+ #### Inherited from
30
+
31
+ [`IAgent`](IAgent.md).[`age`](IAgent.md#age)
32
+
33
+ ***
34
+
35
+ ### made?
36
+
37
+ > `optional` **made**: `ObjectOrArray`\<`IJsonLdNodeObject`\>
38
+
39
+ Something that was made by this agent.
40
+
41
+ #### See
42
+
43
+ http://xmlns.com/foaf/spec/#term_made
44
+
45
+ #### Inherited from
46
+
47
+ [`IAgent`](IAgent.md).[`made`](IAgent.md#made)
48
+
49
+ ***
50
+
51
+ ### weblog?
52
+
53
+ > `optional` **weblog**: [`IDocument`](IDocument.md)
54
+
55
+ A weblog of some thing (whether person, group, company etc.).
56
+
57
+ #### See
58
+
59
+ http://xmlns.com/foaf/spec/#term_weblog
60
+
61
+ #### Inherited from
62
+
63
+ [`IAgent`](IAgent.md).[`weblog`](IAgent.md#weblog)
64
+
65
+ ***
66
+
67
+ ### openid?
68
+
69
+ > `optional` **openid**: [`IDocument`](IDocument.md)
70
+
71
+ An OpenID for an agent.
72
+
73
+ #### See
74
+
75
+ http://xmlns.com/foaf/spec/#term_openid
76
+
77
+ #### Inherited from
78
+
79
+ [`IAgent`](IAgent.md).[`openid`](IAgent.md#openid)
80
+
81
+ ***
82
+
83
+ ### interest?
84
+
85
+ > `optional` **interest**: [`IDocument`](IDocument.md)
86
+
87
+ A page about a topic of interest to this person.
88
+
89
+ #### See
90
+
91
+ http://xmlns.com/foaf/spec/#term_interest
92
+
93
+ #### Inherited from
94
+
95
+ [`IAgent`](IAgent.md).[`interest`](IAgent.md#interest)
96
+
97
+ ***
98
+
99
+ ### topic\_interest?
100
+
101
+ > `optional` **topic\_interest**: `IJsonLdNodeObject`
102
+
103
+ A thing of interest to this person.
104
+
105
+ #### See
106
+
107
+ http://xmlns.com/foaf/spec/#term_topic_interest
108
+
109
+ #### Inherited from
110
+
111
+ [`IAgent`](IAgent.md).[`topic_interest`](IAgent.md#topic_interest)
112
+
113
+ ***
114
+
115
+ ### name?
116
+
117
+ > `optional` **name**: `string`
118
+
119
+ A name for some thing.
120
+
121
+ #### See
122
+
123
+ http://xmlns.com/foaf/spec/#term_name
124
+
125
+ #### Inherited from
126
+
127
+ [`IAgent`](IAgent.md).[`name`](IAgent.md#name)
128
+
129
+ ***
130
+
131
+ ### title?
132
+
133
+ > `optional` **title**: `string`
134
+
135
+ Title (Mr, Mrs, Ms, Dr. etc)
136
+
137
+ #### See
138
+
139
+ http://xmlns.com/foaf/spec/#term_title
140
+
141
+ #### Inherited from
142
+
143
+ [`IAgent`](IAgent.md).[`title`](IAgent.md#title)
144
+
145
+ ***
146
+
147
+ ### mbox?
148
+
149
+ > `optional` **mbox**: `string`
150
+
151
+ A personal mailbox, ie. an Internet mailbox associated with exactly one owner, the first owner of this mailbox
152
+
153
+ #### See
154
+
155
+ http://xmlns.com/foaf/spec/#term_mbox
156
+
157
+ #### Inherited from
158
+
159
+ [`IAgent`](IAgent.md).[`mbox`](IAgent.md#mbox)
160
+
161
+ ***
162
+
163
+ ### homepage?
164
+
165
+ > `optional` **homepage**: `string`
166
+
167
+ A homepage for some thing.
168
+
169
+ #### See
170
+
171
+ http://xmlns.com/foaf/spec/#term_homepage
172
+
173
+ #### Inherited from
174
+
175
+ [`IAgent`](IAgent.md).[`homepage`](IAgent.md#homepage)
176
+
177
+ ***
178
+
179
+ ### depiction?
180
+
181
+ > `optional` **depiction**: [`IImage`](IImage.md)
182
+
183
+ A depiction of some thing.
184
+
185
+ #### See
186
+
187
+ http://xmlns.com/foaf/spec/#term_depiction
188
+
189
+ #### Inherited from
190
+
191
+ [`IAgent`](IAgent.md).[`depiction`](IAgent.md#depiction)
192
+
193
+ ***
194
+
195
+ ### @context?
196
+
197
+ > `optional` **@context**: [`FoafContextType`](../type-aliases/FoafContextType.md)
198
+
199
+ The LD Context.
200
+
201
+ #### Overrides
202
+
203
+ [`IAgent`](IAgent.md).[`@context`](IAgent.md#context)
204
+
205
+ ***
206
+
207
+ ### @type
208
+
209
+ > **@type**: `"Person"`
210
+
211
+ Type.
212
+
213
+ #### Overrides
214
+
215
+ [`IAgent`](IAgent.md).[`@type`](IAgent.md#type)
216
+
217
+ ***
218
+
219
+ ### familyName?
220
+
221
+ > `optional` **familyName**: `string`
222
+
223
+ The family name of some person.
224
+
225
+ #### See
226
+
227
+ http://xmlns.com/foaf/spec/#term_familyName
228
+
229
+ ***
230
+
231
+ ### givenName?
232
+
233
+ > `optional` **givenName**: `string`
234
+
235
+ The given name of some person.
236
+
237
+ #### See
238
+
239
+ http://xmlns.com/foaf/spec/#term_givenName
240
+
241
+ ***
242
+
243
+ ### knows?
244
+
245
+ > `optional` **knows**: `ObjectOrArray`\<[`IAgent`](IAgent.md)\>
246
+
247
+ A person known by this person (indicating some level of reciprocated interaction between the parties).
248
+
249
+ #### See
250
+
251
+ http://xmlns.com/foaf/spec/#term_knows
252
+
253
+ ***
254
+
255
+ ### img?
256
+
257
+ > `optional` **img**: [`IImage`](IImage.md)
258
+
259
+ An image that can be used to represent some thing.
260
+
261
+ #### See
262
+
263
+ http://xmlns.com/foaf/spec/#term_img
264
+
265
+ ***
266
+
267
+ ### nick?
268
+
269
+ > `optional` **nick**: `string`
270
+
271
+ A short informal nickname characterizing an agent (includes login identifiers, IRC and other chat nicknames).
272
+
273
+ #### See
274
+
275
+ http://xmlns.com/foaf/spec/#term_nick
@@ -0,0 +1,5 @@
1
+ # Type Alias: FoafContextType
2
+
3
+ > **FoafContextType** = *typeof* [`ContextRoot`](../variables/FoafContexts.md#contextroot) \| \[*typeof* [`ContextRoot`](../variables/FoafContexts.md#contextroot)\] \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`ContextRoot`](../variables/FoafContexts.md#contextroot)\]
4
+
5
+ The FOAF JSON-LD context type.
@@ -0,0 +1,5 @@
1
+ # Type Alias: FoafContexts
2
+
3
+ > **FoafContexts** = *typeof* [`FoafContexts`](../variables/FoafContexts.md)\[keyof *typeof* [`FoafContexts`](../variables/FoafContexts.md)\]
4
+
5
+ The LD Contexts concerning FOAF.
@@ -0,0 +1,9 @@
1
+ # Type Alias: FoafTypes
2
+
3
+ > **FoafTypes** = *typeof* [`FoafTypes`](../variables/FoafTypes.md)\[keyof *typeof* [`FoafTypes`](../variables/FoafTypes.md)\]
4
+
5
+ The types for FOAF.
6
+
7
+ ## See
8
+
9
+ http://xmlns.com/foaf/0.1/
@@ -0,0 +1,25 @@
1
+ # Variable: FoafContexts
2
+
3
+ > `const` **FoafContexts**: `object`
4
+
5
+ The LD Contexts concerning FOAF.
6
+
7
+ ## Type Declaration
8
+
9
+ ### ContextRoot
10
+
11
+ > `readonly` **ContextRoot**: `"https://xmlns.com/foaf/0.1/"` = `"https://xmlns.com/foaf/0.1/"`
12
+
13
+ The FOAF LD Context.
14
+
15
+ ### TwinContext
16
+
17
+ > `readonly` **TwinContext**: `"https://schema.twindev.org/foaf/"` = `"https://schema.twindev.org/foaf/"`
18
+
19
+ The TWIN context for FOAF.
20
+
21
+ ### ContextRedirect
22
+
23
+ > `readonly` **ContextRedirect**: `"https://schema.twindev.org/foaf/types.jsonld"` = `"https://schema.twindev.org/foaf/types.jsonld"`
24
+
25
+ The TWIN context redirect for JSON-LD.
@@ -0,0 +1,47 @@
1
+ # Variable: FoafTypes
2
+
3
+ > `const` **FoafTypes**: `object`
4
+
5
+ The types for FOAF.
6
+
7
+ ## Type Declaration
8
+
9
+ ### Document
10
+
11
+ > `readonly` **Document**: `"Document"` = `"Document"`
12
+
13
+ Document.
14
+
15
+ ### Image
16
+
17
+ > `readonly` **Image**: `"Image"` = `"Image"`
18
+
19
+ Image.
20
+
21
+ ### Agent
22
+
23
+ > `readonly` **Agent**: `"Agent"` = `"Agent"`
24
+
25
+ Agent.
26
+
27
+ ### Person
28
+
29
+ > `readonly` **Person**: `"Person"` = `"Person"`
30
+
31
+ Person.
32
+
33
+ ### Organization
34
+
35
+ > `readonly` **Organization**: `"Organization"` = `"Organization"`
36
+
37
+ Organization.
38
+
39
+ ### Group
40
+
41
+ > `readonly` **Group**: `"Group"` = `"Group"`
42
+
43
+ Group.
44
+
45
+ ## See
46
+
47
+ http://xmlns.com/foaf/0.1/
@@ -0,0 +1 @@
1
+ {}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@twin.org/standards-foaf",
3
+ "version": "0.0.3-next.3",
4
+ "description": "Models which define the structure of FOAF",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/twinfoundation/standards.git",
8
+ "directory": "packages/standards-foaf"
9
+ },
10
+ "author": "martyn.janes@iota.org",
11
+ "license": "Apache-2.0",
12
+ "type": "module",
13
+ "engines": {
14
+ "node": ">=20.0.0"
15
+ },
16
+ "dependencies": {
17
+ "@twin.org/core": "next",
18
+ "@twin.org/data-core": "next",
19
+ "@twin.org/data-json-ld": "next"
20
+ },
21
+ "main": "./dist/es/index.js",
22
+ "types": "./dist/types/index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/types/index.d.ts",
26
+ "import": "./dist/es/index.js",
27
+ "default": "./dist/es/index.js"
28
+ },
29
+ "./locales/*.json": "./locales/*.json"
30
+ },
31
+ "files": [
32
+ "dist/es",
33
+ "dist/types",
34
+ "locales",
35
+ "docs"
36
+ ],
37
+ "keywords": [
38
+ "twin",
39
+ "trade",
40
+ "iota",
41
+ "framework",
42
+ "blockchain",
43
+ "standards",
44
+ "schema",
45
+ "specification",
46
+ "foaf"
47
+ ],
48
+ "bugs": {
49
+ "url": "git+https://github.com/twinfoundation/standards/issues"
50
+ },
51
+ "homepage": "https://twindev.org"
52
+ }