@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,168 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/foaf/Document",
4
+ "description": "A FOAF Document",
5
+ "type": "object",
6
+ "properties": {
7
+ "@context": {
8
+ "description": "The FOAF JSON-LD context type.",
9
+ "anyOf": [
10
+ {
11
+ "type": "string",
12
+ "const": "https://xmlns.com/foaf/0.1/"
13
+ },
14
+ {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "string",
18
+ "const": "https://xmlns.com/foaf/0.1/"
19
+ },
20
+ "minItems": 1,
21
+ "maxItems": 1
22
+ },
23
+ {
24
+ "type": "array",
25
+ "minItems": 1,
26
+ "prefixItems": [
27
+ {
28
+ "type": "string",
29
+ "const": "https://xmlns.com/foaf/0.1/"
30
+ }
31
+ ],
32
+ "items": {
33
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
34
+ }
35
+ }
36
+ ]
37
+ },
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
+ "type": "string",
82
+ "enum": [
83
+ "Document",
84
+ "Image"
85
+ ],
86
+ "description": "Type."
87
+ },
88
+ "@reverse": {
89
+ "type": "object",
90
+ "additionalProperties": {
91
+ "type": "string"
92
+ }
93
+ },
94
+ "@index": {
95
+ "type": "string"
96
+ },
97
+ "name": {
98
+ "type": "string",
99
+ "description": "A name for some thing."
100
+ },
101
+ "title": {
102
+ "type": "string",
103
+ "description": "Title (Mr, Mrs, Ms, Dr. etc)"
104
+ },
105
+ "mbox": {
106
+ "type": "string",
107
+ "description": "A personal mailbox, ie. an Internet mailbox associated with exactly one owner, the first owner of this mailbox"
108
+ },
109
+ "homepage": {
110
+ "type": "string",
111
+ "description": "A homepage for some thing."
112
+ },
113
+ "depiction": {
114
+ "$ref": "https://schema.twindev.org/foaf/Image",
115
+ "description": "A depiction of some thing."
116
+ },
117
+ "topic": {
118
+ "type": "string",
119
+ "description": "A topic of some page or document."
120
+ },
121
+ "primaryTopic": {
122
+ "description": "Object or array data type",
123
+ "anyOf": [
124
+ {
125
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
126
+ },
127
+ {
128
+ "type": "array",
129
+ "items": {
130
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
131
+ }
132
+ }
133
+ ]
134
+ },
135
+ "sha1": {
136
+ "type": "string",
137
+ "description": "A sha1sum hash, in hex."
138
+ }
139
+ },
140
+ "required": [
141
+ "@type"
142
+ ],
143
+ "additionalProperties": {
144
+ "anyOf": [
145
+ {
146
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
147
+ },
148
+ {
149
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
150
+ },
151
+ {
152
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
153
+ },
154
+ {
155
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
156
+ },
157
+ {
158
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
159
+ },
160
+ {
161
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
162
+ },
163
+ {
164
+ "type": "array"
165
+ }
166
+ ]
167
+ }
168
+ }
@@ -0,0 +1,191 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/foaf/Group",
4
+ "description": "A FOAF Group.",
5
+ "type": "object",
6
+ "properties": {
7
+ "@context": {
8
+ "description": "The FOAF JSON-LD context type.",
9
+ "anyOf": [
10
+ {
11
+ "type": "string",
12
+ "const": "https://xmlns.com/foaf/0.1/"
13
+ },
14
+ {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "string",
18
+ "const": "https://xmlns.com/foaf/0.1/"
19
+ },
20
+ "minItems": 1,
21
+ "maxItems": 1
22
+ },
23
+ {
24
+ "type": "array",
25
+ "minItems": 1,
26
+ "prefixItems": [
27
+ {
28
+ "type": "string",
29
+ "const": "https://xmlns.com/foaf/0.1/"
30
+ }
31
+ ],
32
+ "items": {
33
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
34
+ }
35
+ }
36
+ ]
37
+ },
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
+ "type": "string",
82
+ "const": "Group",
83
+ "description": "Type."
84
+ },
85
+ "@reverse": {
86
+ "type": "object",
87
+ "additionalProperties": {
88
+ "type": "string"
89
+ }
90
+ },
91
+ "@index": {
92
+ "type": "string"
93
+ },
94
+ "name": {
95
+ "type": "string",
96
+ "description": "A name for some thing."
97
+ },
98
+ "title": {
99
+ "type": "string",
100
+ "description": "Title (Mr, Mrs, Ms, Dr. etc)"
101
+ },
102
+ "mbox": {
103
+ "type": "string",
104
+ "description": "A personal mailbox, ie. an Internet mailbox associated with exactly one owner, the first owner of this mailbox"
105
+ },
106
+ "homepage": {
107
+ "type": "string",
108
+ "description": "A homepage for some thing."
109
+ },
110
+ "depiction": {
111
+ "$ref": "https://schema.twindev.org/foaf/Image",
112
+ "description": "A depiction of some thing."
113
+ },
114
+ "age": {
115
+ "type": "number",
116
+ "description": "The age in years of some agent."
117
+ },
118
+ "made": {
119
+ "description": "Object or array data type",
120
+ "anyOf": [
121
+ {
122
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
123
+ },
124
+ {
125
+ "type": "array",
126
+ "items": {
127
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
128
+ }
129
+ }
130
+ ]
131
+ },
132
+ "weblog": {
133
+ "$ref": "https://schema.twindev.org/foaf/Document",
134
+ "description": "A weblog of some thing (whether person, group, company etc.)."
135
+ },
136
+ "openid": {
137
+ "$ref": "https://schema.twindev.org/foaf/Document",
138
+ "description": "An OpenID for an agent."
139
+ },
140
+ "interest": {
141
+ "$ref": "https://schema.twindev.org/foaf/Document",
142
+ "description": "A page about a topic of interest to this person."
143
+ },
144
+ "topic_interest": {
145
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
146
+ "description": "A thing of interest to this person."
147
+ },
148
+ "member": {
149
+ "description": "Object or array data type",
150
+ "anyOf": [
151
+ {
152
+ "$ref": "https://schema.twindev.org/foaf/Agent"
153
+ },
154
+ {
155
+ "type": "array",
156
+ "items": {
157
+ "$ref": "https://schema.twindev.org/foaf/Agent"
158
+ }
159
+ }
160
+ ]
161
+ }
162
+ },
163
+ "required": [
164
+ "@type"
165
+ ],
166
+ "additionalProperties": {
167
+ "anyOf": [
168
+ {
169
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
170
+ },
171
+ {
172
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
173
+ },
174
+ {
175
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
176
+ },
177
+ {
178
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
179
+ },
180
+ {
181
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
182
+ },
183
+ {
184
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
185
+ },
186
+ {
187
+ "type": "array"
188
+ }
189
+ ]
190
+ }
191
+ }
@@ -0,0 +1,173 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/foaf/Image",
4
+ "description": "A FOAF image.",
5
+ "type": "object",
6
+ "properties": {
7
+ "@context": {
8
+ "description": "The FOAF JSON-LD context type.",
9
+ "anyOf": [
10
+ {
11
+ "type": "string",
12
+ "const": "https://xmlns.com/foaf/0.1/"
13
+ },
14
+ {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "string",
18
+ "const": "https://xmlns.com/foaf/0.1/"
19
+ },
20
+ "minItems": 1,
21
+ "maxItems": 1
22
+ },
23
+ {
24
+ "type": "array",
25
+ "minItems": 1,
26
+ "prefixItems": [
27
+ {
28
+ "type": "string",
29
+ "const": "https://xmlns.com/foaf/0.1/"
30
+ }
31
+ ],
32
+ "items": {
33
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
34
+ }
35
+ }
36
+ ]
37
+ },
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
+ "type": "string",
82
+ "const": "Image",
83
+ "description": "Type."
84
+ },
85
+ "@reverse": {
86
+ "type": "object",
87
+ "additionalProperties": {
88
+ "type": "string"
89
+ }
90
+ },
91
+ "@index": {
92
+ "type": "string"
93
+ },
94
+ "name": {
95
+ "type": "string",
96
+ "description": "A name for some thing."
97
+ },
98
+ "title": {
99
+ "type": "string",
100
+ "description": "Title (Mr, Mrs, Ms, Dr. etc)"
101
+ },
102
+ "mbox": {
103
+ "type": "string",
104
+ "description": "A personal mailbox, ie. an Internet mailbox associated with exactly one owner, the first owner of this mailbox"
105
+ },
106
+ "homepage": {
107
+ "type": "string",
108
+ "description": "A homepage for some thing."
109
+ },
110
+ "depiction": {
111
+ "$ref": "https://schema.twindev.org/foaf/Image",
112
+ "description": "A depiction of some thing."
113
+ },
114
+ "topic": {
115
+ "type": "string",
116
+ "description": "A topic of some page or document."
117
+ },
118
+ "primaryTopic": {
119
+ "description": "Object or array data type",
120
+ "anyOf": [
121
+ {
122
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
123
+ },
124
+ {
125
+ "type": "array",
126
+ "items": {
127
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
128
+ }
129
+ }
130
+ ]
131
+ },
132
+ "sha1": {
133
+ "type": "string",
134
+ "description": "A sha1sum hash, in hex."
135
+ },
136
+ "depicts": {
137
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
138
+ "description": "A thing depicted in this representation."
139
+ },
140
+ "thumbnail": {
141
+ "$ref": "https://schema.twindev.org/foaf/Image",
142
+ "description": "A derived thumbnail image."
143
+ }
144
+ },
145
+ "required": [
146
+ "@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
+ }
173
+ }