@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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schema.twindev.org/foaf/
|
|
4
|
-
"description": "A FOAF
|
|
3
|
+
"$id": "https://schema.twindev.org/foaf/FoafGroup",
|
|
4
|
+
"description": "A FOAF Group.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"@context": {
|
|
@@ -36,59 +36,8 @@
|
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
"@id": {
|
|
39
|
-
"anyOf": [
|
|
40
|
-
{
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"type": "array",
|
|
45
|
-
"items": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
"@included": {
|
|
52
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
53
|
-
},
|
|
54
|
-
"@graph": {
|
|
55
|
-
"anyOf": [
|
|
56
|
-
{
|
|
57
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "array",
|
|
61
|
-
"items": {
|
|
62
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
"@nest": {
|
|
68
|
-
"anyOf": [
|
|
69
|
-
{
|
|
70
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"type": "array",
|
|
74
|
-
"items": {
|
|
75
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
"@type": {
|
|
81
39
|
"type": "string",
|
|
82
|
-
"description": "
|
|
83
|
-
},
|
|
84
|
-
"@reverse": {
|
|
85
|
-
"type": "object",
|
|
86
|
-
"additionalProperties": {
|
|
87
|
-
"type": "string"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"@index": {
|
|
91
|
-
"type": "string"
|
|
40
|
+
"description": "The unique identifier for the FOAF object."
|
|
92
41
|
},
|
|
93
42
|
"name": {
|
|
94
43
|
"type": "string",
|
|
@@ -107,9 +56,14 @@
|
|
|
107
56
|
"description": "A homepage for some thing."
|
|
108
57
|
},
|
|
109
58
|
"depiction": {
|
|
110
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
59
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
111
60
|
"description": "A depiction of some thing."
|
|
112
61
|
},
|
|
62
|
+
"@type": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"const": "Group",
|
|
65
|
+
"description": "Type."
|
|
66
|
+
},
|
|
113
67
|
"age": {
|
|
114
68
|
"type": "number",
|
|
115
69
|
"description": "The age in years of some agent."
|
|
@@ -129,48 +83,37 @@
|
|
|
129
83
|
]
|
|
130
84
|
},
|
|
131
85
|
"weblog": {
|
|
132
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
86
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
133
87
|
"description": "A weblog of some thing (whether person, group, company etc.)."
|
|
134
88
|
},
|
|
135
89
|
"openid": {
|
|
136
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
90
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
137
91
|
"description": "An OpenID for an agent."
|
|
138
92
|
},
|
|
139
93
|
"interest": {
|
|
140
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
94
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
141
95
|
"description": "A page about a topic of interest to this person."
|
|
142
96
|
},
|
|
143
97
|
"topic_interest": {
|
|
144
98
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
145
99
|
"description": "A thing of interest to this person."
|
|
100
|
+
},
|
|
101
|
+
"member": {
|
|
102
|
+
"description": "Object or array data type",
|
|
103
|
+
"anyOf": [
|
|
104
|
+
{
|
|
105
|
+
"$ref": "https://schema.twindev.org/foaf/FoafAgent"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "array",
|
|
109
|
+
"items": {
|
|
110
|
+
"$ref": "https://schema.twindev.org/foaf/FoafAgent"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
146
114
|
}
|
|
147
115
|
},
|
|
148
116
|
"required": [
|
|
149
117
|
"@type"
|
|
150
|
-
]
|
|
151
|
-
"additionalProperties": {
|
|
152
|
-
"anyOf": [
|
|
153
|
-
{
|
|
154
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"type": "array"
|
|
173
|
-
}
|
|
174
|
-
]
|
|
175
|
-
}
|
|
118
|
+
]
|
|
176
119
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schema.twindev.org/foaf/
|
|
3
|
+
"$id": "https://schema.twindev.org/foaf/FoafImage",
|
|
4
4
|
"description": "A FOAF image.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -36,60 +36,8 @@
|
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
"@id": {
|
|
39
|
-
"anyOf": [
|
|
40
|
-
{
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"type": "array",
|
|
45
|
-
"items": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
"@included": {
|
|
52
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
53
|
-
},
|
|
54
|
-
"@graph": {
|
|
55
|
-
"anyOf": [
|
|
56
|
-
{
|
|
57
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "array",
|
|
61
|
-
"items": {
|
|
62
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
"@nest": {
|
|
68
|
-
"anyOf": [
|
|
69
|
-
{
|
|
70
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"type": "array",
|
|
74
|
-
"items": {
|
|
75
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
"@type": {
|
|
81
39
|
"type": "string",
|
|
82
|
-
"
|
|
83
|
-
"description": "Type."
|
|
84
|
-
},
|
|
85
|
-
"@reverse": {
|
|
86
|
-
"type": "object",
|
|
87
|
-
"additionalProperties": {
|
|
88
|
-
"type": "string"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"@index": {
|
|
92
|
-
"type": "string"
|
|
40
|
+
"description": "The unique identifier for the FOAF object."
|
|
93
41
|
},
|
|
94
42
|
"name": {
|
|
95
43
|
"type": "string",
|
|
@@ -108,9 +56,14 @@
|
|
|
108
56
|
"description": "A homepage for some thing."
|
|
109
57
|
},
|
|
110
58
|
"depiction": {
|
|
111
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
59
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
112
60
|
"description": "A depiction of some thing."
|
|
113
61
|
},
|
|
62
|
+
"@type": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"const": "Image",
|
|
65
|
+
"description": "Type."
|
|
66
|
+
},
|
|
114
67
|
"topic": {
|
|
115
68
|
"type": "string",
|
|
116
69
|
"description": "A topic of some page or document."
|
|
@@ -138,36 +91,11 @@
|
|
|
138
91
|
"description": "A thing depicted in this representation."
|
|
139
92
|
},
|
|
140
93
|
"thumbnail": {
|
|
141
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
94
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
142
95
|
"description": "A derived thumbnail image."
|
|
143
96
|
}
|
|
144
97
|
},
|
|
145
98
|
"required": [
|
|
146
99
|
"@type"
|
|
147
|
-
]
|
|
148
|
-
"additionalProperties": {
|
|
149
|
-
"anyOf": [
|
|
150
|
-
{
|
|
151
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"type": "array"
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
}
|
|
100
|
+
]
|
|
173
101
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schema.twindev.org/foaf/
|
|
3
|
+
"$id": "https://schema.twindev.org/foaf/FoafOrganization",
|
|
4
4
|
"description": "A FOAF Organization.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -36,60 +36,8 @@
|
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
"@id": {
|
|
39
|
-
"anyOf": [
|
|
40
|
-
{
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"type": "array",
|
|
45
|
-
"items": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
"@included": {
|
|
52
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
53
|
-
},
|
|
54
|
-
"@graph": {
|
|
55
|
-
"anyOf": [
|
|
56
|
-
{
|
|
57
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "array",
|
|
61
|
-
"items": {
|
|
62
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
"@nest": {
|
|
68
|
-
"anyOf": [
|
|
69
|
-
{
|
|
70
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"type": "array",
|
|
74
|
-
"items": {
|
|
75
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
"@type": {
|
|
81
39
|
"type": "string",
|
|
82
|
-
"
|
|
83
|
-
"description": "Type."
|
|
84
|
-
},
|
|
85
|
-
"@reverse": {
|
|
86
|
-
"type": "object",
|
|
87
|
-
"additionalProperties": {
|
|
88
|
-
"type": "string"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"@index": {
|
|
92
|
-
"type": "string"
|
|
40
|
+
"description": "The unique identifier for the FOAF object."
|
|
93
41
|
},
|
|
94
42
|
"name": {
|
|
95
43
|
"type": "string",
|
|
@@ -108,9 +56,14 @@
|
|
|
108
56
|
"description": "A homepage for some thing."
|
|
109
57
|
},
|
|
110
58
|
"depiction": {
|
|
111
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
59
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
112
60
|
"description": "A depiction of some thing."
|
|
113
61
|
},
|
|
62
|
+
"@type": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"const": "Organization",
|
|
65
|
+
"description": "Type."
|
|
66
|
+
},
|
|
114
67
|
"age": {
|
|
115
68
|
"type": "number",
|
|
116
69
|
"description": "The age in years of some agent."
|
|
@@ -130,15 +83,15 @@
|
|
|
130
83
|
]
|
|
131
84
|
},
|
|
132
85
|
"weblog": {
|
|
133
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
86
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
134
87
|
"description": "A weblog of some thing (whether person, group, company etc.)."
|
|
135
88
|
},
|
|
136
89
|
"openid": {
|
|
137
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
90
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
138
91
|
"description": "An OpenID for an agent."
|
|
139
92
|
},
|
|
140
93
|
"interest": {
|
|
141
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
94
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
142
95
|
"description": "A page about a topic of interest to this person."
|
|
143
96
|
},
|
|
144
97
|
"topic_interest": {
|
|
@@ -148,30 +101,5 @@
|
|
|
148
101
|
},
|
|
149
102
|
"required": [
|
|
150
103
|
"@type"
|
|
151
|
-
]
|
|
152
|
-
"additionalProperties": {
|
|
153
|
-
"anyOf": [
|
|
154
|
-
{
|
|
155
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"type": "array"
|
|
174
|
-
}
|
|
175
|
-
]
|
|
176
|
-
}
|
|
104
|
+
]
|
|
177
105
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schema.twindev.org/foaf/
|
|
3
|
+
"$id": "https://schema.twindev.org/foaf/FoafPerson",
|
|
4
4
|
"description": "A FOAF Person.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -36,60 +36,8 @@
|
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
"@id": {
|
|
39
|
-
"anyOf": [
|
|
40
|
-
{
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"type": "array",
|
|
45
|
-
"items": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
"@included": {
|
|
52
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
53
|
-
},
|
|
54
|
-
"@graph": {
|
|
55
|
-
"anyOf": [
|
|
56
|
-
{
|
|
57
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "array",
|
|
61
|
-
"items": {
|
|
62
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
"@nest": {
|
|
68
|
-
"anyOf": [
|
|
69
|
-
{
|
|
70
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"type": "array",
|
|
74
|
-
"items": {
|
|
75
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
"@type": {
|
|
81
39
|
"type": "string",
|
|
82
|
-
"
|
|
83
|
-
"description": "Type."
|
|
84
|
-
},
|
|
85
|
-
"@reverse": {
|
|
86
|
-
"type": "object",
|
|
87
|
-
"additionalProperties": {
|
|
88
|
-
"type": "string"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"@index": {
|
|
92
|
-
"type": "string"
|
|
40
|
+
"description": "The unique identifier for the FOAF object."
|
|
93
41
|
},
|
|
94
42
|
"name": {
|
|
95
43
|
"type": "string",
|
|
@@ -108,9 +56,14 @@
|
|
|
108
56
|
"description": "A homepage for some thing."
|
|
109
57
|
},
|
|
110
58
|
"depiction": {
|
|
111
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
59
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
112
60
|
"description": "A depiction of some thing."
|
|
113
61
|
},
|
|
62
|
+
"@type": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"const": "Person",
|
|
65
|
+
"description": "Type."
|
|
66
|
+
},
|
|
114
67
|
"age": {
|
|
115
68
|
"type": "number",
|
|
116
69
|
"description": "The age in years of some agent."
|
|
@@ -130,15 +83,15 @@
|
|
|
130
83
|
]
|
|
131
84
|
},
|
|
132
85
|
"weblog": {
|
|
133
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
86
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
134
87
|
"description": "A weblog of some thing (whether person, group, company etc.)."
|
|
135
88
|
},
|
|
136
89
|
"openid": {
|
|
137
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
90
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
138
91
|
"description": "An OpenID for an agent."
|
|
139
92
|
},
|
|
140
93
|
"interest": {
|
|
141
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
94
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
142
95
|
"description": "A page about a topic of interest to this person."
|
|
143
96
|
},
|
|
144
97
|
"topic_interest": {
|
|
@@ -157,18 +110,18 @@
|
|
|
157
110
|
"description": "Object or array data type",
|
|
158
111
|
"anyOf": [
|
|
159
112
|
{
|
|
160
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
113
|
+
"$ref": "https://schema.twindev.org/foaf/FoafAgent"
|
|
161
114
|
},
|
|
162
115
|
{
|
|
163
116
|
"type": "array",
|
|
164
117
|
"items": {
|
|
165
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
118
|
+
"$ref": "https://schema.twindev.org/foaf/FoafAgent"
|
|
166
119
|
}
|
|
167
120
|
}
|
|
168
121
|
]
|
|
169
122
|
},
|
|
170
123
|
"img": {
|
|
171
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
124
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
172
125
|
"description": "An image that can be used to represent some thing."
|
|
173
126
|
},
|
|
174
127
|
"nick": {
|
|
@@ -178,30 +131,5 @@
|
|
|
178
131
|
},
|
|
179
132
|
"required": [
|
|
180
133
|
"@type"
|
|
181
|
-
]
|
|
182
|
-
"additionalProperties": {
|
|
183
|
-
"anyOf": [
|
|
184
|
-
{
|
|
185
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"type": "array"
|
|
204
|
-
}
|
|
205
|
-
]
|
|
206
|
-
}
|
|
134
|
+
]
|
|
207
135
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from "./dataTypes/foafDataTypes.js";
|
|
2
|
-
export * from "./models/
|
|
3
|
-
export * from "./models/
|
|
4
|
-
export * from "./models/
|
|
5
|
-
export * from "./models/
|
|
6
|
-
export * from "./models/
|
|
7
|
-
export * from "./models/
|
|
8
|
-
export * from "./models/
|
|
2
|
+
export * from "./models/IFoafAgent.js";
|
|
3
|
+
export * from "./models/IFoafBaseObject.js";
|
|
4
|
+
export * from "./models/IFoafDocument.js";
|
|
5
|
+
export * from "./models/IFoafGroup.js";
|
|
6
|
+
export * from "./models/IFoafImage.js";
|
|
7
|
+
export * from "./models/IFoafOrganization.js";
|
|
8
|
+
export * from "./models/IFoafPerson.js";
|
|
9
9
|
export * from "./models/foafContexts.js";
|
|
10
10
|
export * from "./models/foafContextType.js";
|
|
11
11
|
export * from "./models/foafTypes.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
|
-
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { IJsonLdNodeObject, JsonLdObjectWithAliases } from "@twin.org/data-json-ld";
|
|
3
3
|
import type { FoafContextType } from "./foafContextType.js";
|
|
4
4
|
import type { FoafTypes } from "./foafTypes.js";
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
5
|
+
import type { IFoafBaseObject } from "./IFoafBaseObject.js";
|
|
6
|
+
import type { IFoafDocument } from "./IFoafDocument.js";
|
|
7
7
|
/**
|
|
8
8
|
* A FOAF Agent.
|
|
9
9
|
* @see http://xmlns.com/foaf/0.1/
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface IFoafAgent extends IFoafBaseObject {
|
|
12
12
|
/**
|
|
13
13
|
* The LD Context.
|
|
14
14
|
*/
|
|
@@ -31,20 +31,25 @@ export interface IAgent extends IBaseObject {
|
|
|
31
31
|
* A weblog of some thing (whether person, group, company etc.).
|
|
32
32
|
* @see http://xmlns.com/foaf/spec/#term_weblog
|
|
33
33
|
*/
|
|
34
|
-
weblog?:
|
|
34
|
+
weblog?: IFoafDocument;
|
|
35
35
|
/**
|
|
36
36
|
* An OpenID for an agent.
|
|
37
37
|
* @see http://xmlns.com/foaf/spec/#term_openid
|
|
38
38
|
*/
|
|
39
|
-
openid?:
|
|
39
|
+
openid?: IFoafDocument;
|
|
40
40
|
/**
|
|
41
41
|
* A page about a topic of interest to this person.
|
|
42
42
|
* @see http://xmlns.com/foaf/spec/#term_interest
|
|
43
43
|
*/
|
|
44
|
-
interest?:
|
|
44
|
+
interest?: IFoafDocument;
|
|
45
45
|
/**
|
|
46
46
|
* A thing of interest to this person.
|
|
47
47
|
* @see http://xmlns.com/foaf/spec/#term_topic_interest
|
|
48
48
|
*/
|
|
49
49
|
topic_interest?: IJsonLdNodeObject;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* A FOAF Agent with FOAF-prefixed aliases for non-JSON-LD keys.
|
|
53
|
+
* This allows using either prefixed aliases (e.g., "foaf:name") when defining a FOAF Agent.
|
|
54
|
+
*/
|
|
55
|
+
export type IFoafAgentWithAliases<T extends string = "foaf"> = JsonLdObjectWithAliases<IFoafAgent, T>;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
1
|
import type { FoafContextType } from "./foafContextType.js";
|
|
3
|
-
import type {
|
|
2
|
+
import type { IFoafImage } from "./IFoafImage.js";
|
|
4
3
|
/**
|
|
5
4
|
* Core FOAF Properties
|
|
6
5
|
* @see http://xmlns.com/foaf/0.1/
|
|
7
6
|
*/
|
|
8
|
-
export interface
|
|
7
|
+
export interface IFoafBaseObject {
|
|
9
8
|
/**
|
|
10
9
|
* The LD Context.
|
|
11
10
|
*/
|
|
12
11
|
"@context"?: FoafContextType;
|
|
12
|
+
/**
|
|
13
|
+
* The unique identifier for the FOAF object.
|
|
14
|
+
*/
|
|
15
|
+
"@id"?: string;
|
|
13
16
|
/**
|
|
14
17
|
* A name for some thing.
|
|
15
18
|
* @see http://xmlns.com/foaf/spec/#term_name
|
|
@@ -34,5 +37,5 @@ export interface IBaseObject extends IJsonLdNodeObject {
|
|
|
34
37
|
* A depiction of some thing.
|
|
35
38
|
* @see http://xmlns.com/foaf/spec/#term_depiction
|
|
36
39
|
*/
|
|
37
|
-
depiction?:
|
|
40
|
+
depiction?: IFoafImage;
|
|
38
41
|
}
|