@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.
- package/dist/es/dataTypes/foafDataTypes.js +36 -44
- 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/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/{Group.json → FoafAgent.json} +12 -99
- package/dist/es/schemas/{Document.json → FoafDocument.json} +12 -84
- package/dist/es/schemas/{Agent.json → FoafGroup.json} +27 -84
- package/dist/es/schemas/{Image.json → FoafImage.json} +10 -82
- package/dist/es/schemas/{Organization.json → FoafOrganization.json} +12 -84
- package/dist/es/schemas/{Person.json → FoafPerson.json} +15 -87
- package/dist/types/index.d.ts +7 -7
- package/dist/types/models/{IAgent.d.ts → IFoafAgent.d.ts} +12 -7
- package/dist/types/models/{IBaseObject.d.ts → IFoafBaseObject.d.ts} +7 -4
- package/dist/types/models/{IDocument.d.ts → IFoafDocument.d.ts} +8 -3
- package/dist/types/models/IFoafGroup.d.ts +29 -0
- package/dist/types/models/{IImage.d.ts → IFoafImage.d.ts} +9 -4
- package/dist/types/models/IFoafOrganization.d.ts +23 -0
- package/dist/types/models/{IPerson.d.ts → IFoafPerson.d.ts} +11 -5
- package/dist/types/models/foafContextType.d.ts +1 -1
- package/dist/types/models/foafContexts.d.ts +12 -6
- package/docs/changelog.md +323 -0
- package/docs/reference/index.md +13 -7
- package/docs/reference/interfaces/{IAgent.md → IFoafAgent.md} +27 -23
- package/docs/reference/interfaces/{IBaseObject.md → IFoafBaseObject.md} +10 -14
- package/docs/reference/interfaces/{IDocument.md → IFoafDocument.md} +21 -17
- package/docs/reference/interfaces/{IGroup.md → IFoafGroup.md} +32 -24
- package/docs/reference/interfaces/{IImage.md → IFoafImage.md} +25 -17
- package/docs/reference/interfaces/{IOrganization.md → IFoafOrganization.md} +31 -23
- package/docs/reference/interfaces/{IPerson.md → IFoafPerson.md} +33 -25
- package/docs/reference/type-aliases/FoafContextType.md +1 -1
- package/docs/reference/type-aliases/IFoafAgentWithAliases.md +12 -0
- package/docs/reference/type-aliases/IFoafDocumentWithAliases.md +12 -0
- package/docs/reference/type-aliases/IFoafGroupWithAliases.md +12 -0
- package/docs/reference/type-aliases/IFoafImageWithAliases.md +12 -0
- package/docs/reference/type-aliases/IFoafOrganizationWithAliases.md +12 -0
- package/docs/reference/type-aliases/IFoafPersonWithAliases.md +12 -0
- package/docs/reference/variables/FoafContexts.md +17 -9
- 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
- package/dist/types/models/IGroup.d.ts +0 -23
- package/dist/types/models/IOrganization.d.ts +0 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Interface:
|
|
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
|
-
- [`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
43
|
+
[`IFoafAgent`](IFoafAgent.md).[`made`](IFoafAgent.md#made)
|
|
48
44
|
|
|
49
45
|
***
|
|
50
46
|
|
|
51
47
|
### 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
|
|
|
@@ -60,13 +56,13 @@ http://xmlns.com/foaf/spec/#term_weblog
|
|
|
60
56
|
|
|
61
57
|
#### Inherited from
|
|
62
58
|
|
|
63
|
-
[`
|
|
59
|
+
[`IFoafAgent`](IFoafAgent.md).[`weblog`](IFoafAgent.md#weblog)
|
|
64
60
|
|
|
65
61
|
***
|
|
66
62
|
|
|
67
63
|
### openid?
|
|
68
64
|
|
|
69
|
-
> `optional` **openid**: [`
|
|
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
|
-
[`
|
|
75
|
+
[`IFoafAgent`](IFoafAgent.md).[`openid`](IFoafAgent.md#openid)
|
|
80
76
|
|
|
81
77
|
***
|
|
82
78
|
|
|
83
79
|
### 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
|
|
|
@@ -92,7 +88,7 @@ http://xmlns.com/foaf/spec/#term_interest
|
|
|
92
88
|
|
|
93
89
|
#### Inherited from
|
|
94
90
|
|
|
95
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
183
|
+
[`IFoafAgent`](IFoafAgent.md).[`homepage`](IFoafAgent.md#homepage)
|
|
176
184
|
|
|
177
185
|
***
|
|
178
186
|
|
|
179
187
|
### depiction?
|
|
180
188
|
|
|
181
|
-
> `optional` **depiction**: [`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
223
|
+
[`IFoafAgent`](IFoafAgent.md).[`@type`](IFoafAgent.md#type)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Interface:
|
|
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
|
-
- [`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
43
|
+
[`IFoafAgent`](IFoafAgent.md).[`made`](IFoafAgent.md#made)
|
|
48
44
|
|
|
49
45
|
***
|
|
50
46
|
|
|
51
47
|
### 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
|
|
|
@@ -60,13 +56,13 @@ http://xmlns.com/foaf/spec/#term_weblog
|
|
|
60
56
|
|
|
61
57
|
#### Inherited from
|
|
62
58
|
|
|
63
|
-
[`
|
|
59
|
+
[`IFoafAgent`](IFoafAgent.md).[`weblog`](IFoafAgent.md#weblog)
|
|
64
60
|
|
|
65
61
|
***
|
|
66
62
|
|
|
67
63
|
### openid?
|
|
68
64
|
|
|
69
|
-
> `optional` **openid**: [`
|
|
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
|
-
[`
|
|
75
|
+
[`IFoafAgent`](IFoafAgent.md).[`openid`](IFoafAgent.md#openid)
|
|
80
76
|
|
|
81
77
|
***
|
|
82
78
|
|
|
83
79
|
### 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
|
|
|
@@ -92,7 +88,7 @@ http://xmlns.com/foaf/spec/#term_interest
|
|
|
92
88
|
|
|
93
89
|
#### Inherited from
|
|
94
90
|
|
|
95
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
183
|
+
[`IFoafAgent`](IFoafAgent.md).[`homepage`](IFoafAgent.md#homepage)
|
|
176
184
|
|
|
177
185
|
***
|
|
178
186
|
|
|
179
187
|
### depiction?
|
|
180
188
|
|
|
181
|
-
> `optional` **depiction**: [`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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
|
-
[`
|
|
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`\<[`
|
|
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**: [`
|
|
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* [`
|
|
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
|
-
###
|
|
9
|
+
### 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
|
|
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
|
|
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
|
|
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
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"]}
|
|
@@ -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
|
-
}
|