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