@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,15 +1,15 @@
|
|
|
1
1
|
// Copyright 2025 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
import {
|
|
3
|
+
import { DataTypeHelper } from "@twin.org/data-core";
|
|
4
4
|
import { JsonLdProcessor } from "@twin.org/data-json-ld";
|
|
5
5
|
import { FoafContexts } from "../models/foafContexts.js";
|
|
6
6
|
import { FoafTypes } from "../models/foafTypes.js";
|
|
7
|
-
import AgentSchema from "../schemas/
|
|
8
|
-
import DocumentSchema from "../schemas/
|
|
9
|
-
import GroupSchema from "../schemas/
|
|
10
|
-
import ImageSchema from "../schemas/
|
|
11
|
-
import OrganizationSchema from "../schemas/
|
|
12
|
-
import PersonSchema from "../schemas/
|
|
7
|
+
import AgentSchema from "../schemas/FoafAgent.json" with { type: "json" };
|
|
8
|
+
import DocumentSchema from "../schemas/FoafDocument.json" with { type: "json" };
|
|
9
|
+
import GroupSchema from "../schemas/FoafGroup.json" with { type: "json" };
|
|
10
|
+
import ImageSchema from "../schemas/FoafImage.json" with { type: "json" };
|
|
11
|
+
import OrganizationSchema from "../schemas/FoafOrganization.json" with { type: "json" };
|
|
12
|
+
import PersonSchema from "../schemas/FoafPerson.json" with { type: "json" };
|
|
13
13
|
/**
|
|
14
14
|
* Data Type registration for FOAF
|
|
15
15
|
*/
|
|
@@ -18,48 +18,40 @@ export class FoafDataTypes {
|
|
|
18
18
|
* Register redirects for FOAF namespace to enable offline JSON-LD processing.
|
|
19
19
|
*/
|
|
20
20
|
static registerRedirects() {
|
|
21
|
-
JsonLdProcessor.addRedirect(/https?:\/\/xmlns.com\/foaf\/0.1\//, FoafContexts.
|
|
21
|
+
JsonLdProcessor.addRedirect(/https?:\/\/xmlns.com\/foaf\/0.1\//, FoafContexts.JsonLdContext);
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Register all the data types.
|
|
25
25
|
*/
|
|
26
26
|
static registerTypes() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
jsonSchema: async () => OrganizationSchema
|
|
56
|
-
}));
|
|
57
|
-
DataTypeHandlerFactory.register(`${FoafContexts.TwinContext}/${FoafTypes.Person}`, () => ({
|
|
58
|
-
context: FoafContexts.TwinContext,
|
|
59
|
-
type: FoafTypes.Person,
|
|
60
|
-
defaultValue: {},
|
|
61
|
-
jsonSchema: async () => PersonSchema
|
|
62
|
-
}));
|
|
27
|
+
const types = [
|
|
28
|
+
{
|
|
29
|
+
type: FoafTypes.Agent,
|
|
30
|
+
schema: AgentSchema
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: FoafTypes.Document,
|
|
34
|
+
schema: DocumentSchema
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: FoafTypes.Group,
|
|
38
|
+
schema: GroupSchema
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: FoafTypes.Image,
|
|
42
|
+
schema: ImageSchema
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: FoafTypes.Organization,
|
|
46
|
+
schema: OrganizationSchema
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: FoafTypes.Person,
|
|
50
|
+
schema: PersonSchema
|
|
51
|
+
}
|
|
52
|
+
];
|
|
53
|
+
DataTypeHelper.registerTypes(FoafContexts.Namespace, FoafContexts.JsonLdContext, types);
|
|
54
|
+
DataTypeHelper.registerTypes(FoafContexts.JsonSchemaNamespace, FoafContexts.JsonLdContext, types);
|
|
63
55
|
}
|
|
64
56
|
}
|
|
65
57
|
//# sourceMappingURL=foafDataTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foafDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/foafDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"foafDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/foafDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,WAAW,MAAM,2BAA2B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1E,OAAO,cAAc,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChF,OAAO,WAAW,MAAM,2BAA2B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1E,OAAO,WAAW,MAAM,2BAA2B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1E,OAAO,kBAAkB,MAAM,kCAAkC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACxF,OAAO,YAAY,MAAM,4BAA4B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAE5E;;GAEG;AACH,MAAM,OAAgB,aAAa;IAClC;;OAEG;IACI,MAAM,CAAC,iBAAiB;QAC9B,eAAe,CAAC,WAAW,CAAC,mCAAmC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,MAAM,KAAK,GAAG;YACb;gBACC,IAAI,EAAE,SAAS,CAAC,KAAK;gBACrB,MAAM,EAAE,WAAW;aACnB;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,QAAQ;gBACxB,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,KAAK;gBACrB,MAAM,EAAE,WAAW;aACnB;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,KAAK;gBACrB,MAAM,EAAE,WAAW;aACnB;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,YAAY;gBAC5B,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,MAAM;gBACtB,MAAM,EAAE,YAAY;aACpB;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACxF,cAAc,CAAC,aAAa,CAC3B,YAAY,CAAC,mBAAmB,EAChC,YAAY,CAAC,aAAa,EAC1B,KAAK,CACL,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { FoafContexts } from \"../models/foafContexts.js\";\nimport { FoafTypes } from \"../models/foafTypes.js\";\nimport AgentSchema from \"../schemas/FoafAgent.json\" with { type: \"json\" };\nimport DocumentSchema from \"../schemas/FoafDocument.json\" with { type: \"json\" };\nimport GroupSchema from \"../schemas/FoafGroup.json\" with { type: \"json\" };\nimport ImageSchema from \"../schemas/FoafImage.json\" with { type: \"json\" };\nimport OrganizationSchema from \"../schemas/FoafOrganization.json\" with { type: \"json\" };\nimport PersonSchema from \"../schemas/FoafPerson.json\" with { type: \"json\" };\n\n/**\n * Data Type registration for FOAF\n */\nexport abstract class FoafDataTypes {\n\t/**\n\t * Register redirects for FOAF namespace to enable offline JSON-LD processing.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(/https?:\\/\\/xmlns.com\\/foaf\\/0.1\\//, FoafContexts.JsonLdContext);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: FoafTypes.Agent,\n\t\t\t\tschema: AgentSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: FoafTypes.Document,\n\t\t\t\tschema: DocumentSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: FoafTypes.Group,\n\t\t\t\tschema: GroupSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: FoafTypes.Image,\n\t\t\t\tschema: ImageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: FoafTypes.Organization,\n\t\t\t\tschema: OrganizationSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: FoafTypes.Person,\n\t\t\t\tschema: PersonSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(FoafContexts.Namespace, FoafContexts.JsonLdContext, types);\n\t\tDataTypeHelper.registerTypes(\n\t\t\tFoafContexts.JsonSchemaNamespace,\n\t\t\tFoafContexts.JsonLdContext,\n\t\t\ttypes\n\t\t);\n\t}\n}\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Copyright 2025 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
export * from "./dataTypes/foafDataTypes.js";
|
|
4
|
-
export * from "./models/
|
|
5
|
-
export * from "./models/
|
|
6
|
-
export * from "./models/
|
|
7
|
-
export * from "./models/
|
|
8
|
-
export * from "./models/
|
|
9
|
-
export * from "./models/
|
|
10
|
-
export * from "./models/
|
|
4
|
+
export * from "./models/IFoafAgent.js";
|
|
5
|
+
export * from "./models/IFoafBaseObject.js";
|
|
6
|
+
export * from "./models/IFoafDocument.js";
|
|
7
|
+
export * from "./models/IFoafGroup.js";
|
|
8
|
+
export * from "./models/IFoafImage.js";
|
|
9
|
+
export * from "./models/IFoafOrganization.js";
|
|
10
|
+
export * from "./models/IFoafPerson.js";
|
|
11
11
|
export * from "./models/foafContexts.js";
|
|
12
12
|
export * from "./models/foafContextType.js";
|
|
13
13
|
export * from "./models/foafTypes.js";
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/foafDataTypes.js\";\nexport * from \"./models/IFoafAgent.js\";\nexport * from \"./models/IFoafBaseObject.js\";\nexport * from \"./models/IFoafDocument.js\";\nexport * from \"./models/IFoafGroup.js\";\nexport * from \"./models/IFoafImage.js\";\nexport * from \"./models/IFoafOrganization.js\";\nexport * from \"./models/IFoafPerson.js\";\nexport * from \"./models/foafContexts.js\";\nexport * from \"./models/foafContextType.js\";\nexport * from \"./models/foafTypes.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFoafAgent.js","sourceRoot":"","sources":["../../../src/models/IFoafAgent.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, JsonLdObjectWithAliases } from \"@twin.org/data-json-ld\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IFoafBaseObject } from \"./IFoafBaseObject.js\";\nimport type { IFoafDocument } from \"./IFoafDocument.js\";\n\n/**\n * A FOAF Agent.\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IFoafAgent extends IFoafBaseObject {\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?: IFoafDocument;\n\n\t/**\n\t * An OpenID for an agent.\n\t * @see http://xmlns.com/foaf/spec/#term_openid\n\t */\n\topenid?: IFoafDocument;\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?: IFoafDocument;\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\n/**\n * A FOAF Agent with FOAF-prefixed aliases for non-JSON-LD keys.\n * This allows using either prefixed aliases (e.g., \"foaf:name\") when defining a FOAF Agent.\n */\nexport type IFoafAgentWithAliases<T extends string = \"foaf\"> = JsonLdObjectWithAliases<\n\tIFoafAgent,\n\tT\n>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFoafBaseObject.js","sourceRoot":"","sources":["../../../src/models/IFoafBaseObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { IFoafImage } from \"./IFoafImage.js\";\n\n/**\n * Core FOAF Properties\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IFoafBaseObject {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\"?: FoafContextType;\n\n\t/**\n\t * The unique identifier for the FOAF object.\n\t */\n\t\"@id\"?: string;\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?: IFoafImage;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFoafDocument.js","sourceRoot":"","sources":["../../../src/models/IFoafDocument.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, JsonLdObjectWithAliases } from \"@twin.org/data-json-ld\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IFoafBaseObject } from \"./IFoafBaseObject.js\";\n\n/**\n * A FOAF Document\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IFoafDocument extends IFoafBaseObject {\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\n/**\n * A FOAF Document with FOAF-prefixed aliases for non-JSON-LD keys.\n * This allows using either prefixed aliases (e.g., \"foaf:name\") when defining a FOAF Document.\n */\nexport type IFoafDocumentWithAliases<T extends string = \"foaf\"> = JsonLdObjectWithAliases<\n\tIFoafDocument,\n\tT\n>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFoafGroup.js","sourceRoot":"","sources":["../../../src/models/IFoafGroup.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { JsonLdObjectWithAliases } from \"@twin.org/data-json-ld\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IFoafAgent } from \"./IFoafAgent.js\";\n\n/**\n * A FOAF Group.\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IFoafGroup extends IFoafAgent {\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<IFoafAgent>;\n}\n\n/**\n * A FOAF Group with FOAF-prefixed aliases for non-JSON-LD keys.\n * This allows using either prefixed aliases (e.g., \"foaf:name\") when defining a FOAF Group.\n */\nexport type IFoafGroupWithAliases<T extends string = \"foaf\"> = JsonLdObjectWithAliases<\n\tIFoafGroup,\n\tT\n>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFoafImage.js","sourceRoot":"","sources":["../../../src/models/IFoafImage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject, JsonLdObjectWithAliases } from \"@twin.org/data-json-ld\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IFoafDocument } from \"./IFoafDocument.js\";\n\n/**\n * A FOAF image.\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IFoafImage extends IFoafDocument {\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?: IFoafImage;\n}\n\n/**\n * A FOAF Image with FOAF-prefixed aliases for non-JSON-LD keys.\n * This allows using either prefixed aliases (e.g., \"foaf:name\") when defining a FOAF Image.\n */\nexport type IFoafImageWithAliases<T extends string = \"foaf\"> = JsonLdObjectWithAliases<\n\tIFoafImage,\n\tT\n>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFoafOrganization.js","sourceRoot":"","sources":["../../../src/models/IFoafOrganization.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { JsonLdObjectWithAliases } from \"@twin.org/data-json-ld\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IFoafAgent } from \"./IFoafAgent.js\";\n\n/**\n * A FOAF Organization.\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IFoafOrganization extends IFoafAgent {\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\n/**\n * A FOAF Organization with FOAF-prefixed aliases for non-JSON-LD keys.\n * This allows using either prefixed aliases (e.g., \"foaf:name\") when defining a FOAF Organization.\n */\nexport type IFoafOrganizationWithAliases<T extends string = \"foaf\"> = JsonLdObjectWithAliases<\n\tIFoafOrganization,\n\tT\n>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFoafPerson.js","sourceRoot":"","sources":["../../../src/models/IFoafPerson.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { JsonLdObjectWithAliases } from \"@twin.org/data-json-ld\";\nimport type { FoafContextType } from \"./foafContextType.js\";\nimport type { FoafTypes } from \"./foafTypes.js\";\nimport type { IFoafAgent } from \"./IFoafAgent.js\";\nimport type { IFoafImage } from \"./IFoafImage.js\";\n\n/**\n * A FOAF Person.\n * @see http://xmlns.com/foaf/0.1/\n */\nexport interface IFoafPerson extends IFoafAgent {\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<IFoafAgent>;\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?: IFoafImage;\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\n/**\n * A FOAF Person with FOAF-prefixed aliases for non-JSON-LD keys.\n * This allows using either prefixed aliases (e.g., \"foaf:name\") when defining a FOAF Person.\n */\nexport type IFoafPersonWithAliases<T extends string = \"foaf\"> = JsonLdObjectWithAliases<\n\tIFoafPerson,\n\tT\n>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foafContextType.js","sourceRoot":"","sources":["../../../src/models/foafContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { FoafContexts } from \"./foafContexts.js\";\n\n/**\n * The FOAF JSON-LD context type.\n */\nexport type FoafContextType =\n\t| typeof FoafContexts.
|
|
1
|
+
{"version":3,"file":"foafContextType.js","sourceRoot":"","sources":["../../../src/models/foafContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { FoafContexts } from \"./foafContexts.js\";\n\n/**\n * The FOAF JSON-LD context type.\n */\nexport type FoafContextType =\n\t| typeof FoafContexts.Context\n\t| [typeof FoafContexts.Context]\n\t| [...IJsonLdContextDefinitionElement[], typeof FoafContexts.Context];\n"]}
|
|
@@ -6,16 +6,22 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const FoafContexts = {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The canonical RDF namespace URI.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
Namespace: "https://xmlns.com/foaf/0.1/",
|
|
12
12
|
/**
|
|
13
|
-
* The
|
|
13
|
+
* The value to use in @context.
|
|
14
|
+
* Note: Context matches Namespace (both include trailing slash) as per FOAF specification.
|
|
15
|
+
* The FOAF JSON-LD context URL format includes a trailing slash.
|
|
14
16
|
*/
|
|
15
|
-
|
|
17
|
+
Context: "https://xmlns.com/foaf/0.1/",
|
|
16
18
|
/**
|
|
17
|
-
* The
|
|
19
|
+
* The JSON-LD Context URL.
|
|
18
20
|
*/
|
|
19
|
-
|
|
21
|
+
JsonLdContext: "https://schema.twindev.org/foaf/types.jsonld",
|
|
22
|
+
/**
|
|
23
|
+
* The namespace location of the hosted version of the JSON Schema.
|
|
24
|
+
*/
|
|
25
|
+
JsonSchemaNamespace: "https://schema.twindev.org/foaf/"
|
|
20
26
|
};
|
|
21
27
|
//# sourceMappingURL=foafContexts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foafContexts.js","sourceRoot":"","sources":["../../../src/models/foafContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"foafContexts.js","sourceRoot":"","sources":["../../../src/models/foafContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,SAAS,EAAE,6BAA6B;IAExC;;;;OAIG;IACH,OAAO,EAAE,6BAA6B;IAEtC;;OAEG;IACH,aAAa,EAAE,8CAA8C;IAE7D;;OAEG;IACH,mBAAmB,EAAE,kCAAkC;CAC9C,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The LD Contexts concerning FOAF.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const FoafContexts = {\n\t/**\n\t * The canonical RDF namespace URI.\n\t */\n\tNamespace: \"https://xmlns.com/foaf/0.1/\",\n\n\t/**\n\t * The value to use in @context.\n\t * Note: Context matches Namespace (both include trailing slash) as per FOAF specification.\n\t * The FOAF JSON-LD context URL format includes a trailing slash.\n\t */\n\tContext: \"https://xmlns.com/foaf/0.1/\",\n\n\t/**\n\t * The JSON-LD Context URL.\n\t */\n\tJsonLdContext: \"https://schema.twindev.org/foaf/types.jsonld\",\n\n\t/**\n\t * The namespace location of the hosted version of the JSON Schema.\n\t */\n\tJsonSchemaNamespace: \"https://schema.twindev.org/foaf/\"\n} as const;\n\n/**\n * The LD Contexts concerning FOAF.\n */\nexport type FoafContexts = (typeof FoafContexts)[keyof typeof FoafContexts];\n"]}
|
|
@@ -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/FoafAgent",
|
|
4
|
+
"description": "A FOAF Agent.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"@context": {
|
|
@@ -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,13 @@
|
|
|
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
|
+
"description": "Type."
|
|
65
|
+
},
|
|
114
66
|
"age": {
|
|
115
67
|
"type": "number",
|
|
116
68
|
"description": "The age in years of some agent."
|
|
@@ -130,62 +82,23 @@
|
|
|
130
82
|
]
|
|
131
83
|
},
|
|
132
84
|
"weblog": {
|
|
133
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
85
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
134
86
|
"description": "A weblog of some thing (whether person, group, company etc.)."
|
|
135
87
|
},
|
|
136
88
|
"openid": {
|
|
137
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
89
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
138
90
|
"description": "An OpenID for an agent."
|
|
139
91
|
},
|
|
140
92
|
"interest": {
|
|
141
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
93
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
142
94
|
"description": "A page about a topic of interest to this person."
|
|
143
95
|
},
|
|
144
96
|
"topic_interest": {
|
|
145
97
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
146
98
|
"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
99
|
}
|
|
162
100
|
},
|
|
163
101
|
"required": [
|
|
164
102
|
"@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
|
-
}
|
|
103
|
+
]
|
|
191
104
|
}
|
|
@@ -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/FoafDocument",
|
|
4
4
|
"description": "A FOAF Document",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -36,63 +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
|
-
"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"
|
|
40
|
+
"description": "The unique identifier for the FOAF object."
|
|
96
41
|
},
|
|
97
42
|
"name": {
|
|
98
43
|
"type": "string",
|
|
@@ -111,9 +56,17 @@
|
|
|
111
56
|
"description": "A homepage for some thing."
|
|
112
57
|
},
|
|
113
58
|
"depiction": {
|
|
114
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
59
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
115
60
|
"description": "A depiction of some thing."
|
|
116
61
|
},
|
|
62
|
+
"@type": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"enum": [
|
|
65
|
+
"Document",
|
|
66
|
+
"Image"
|
|
67
|
+
],
|
|
68
|
+
"description": "Type."
|
|
69
|
+
},
|
|
117
70
|
"topic": {
|
|
118
71
|
"type": "string",
|
|
119
72
|
"description": "A topic of some page or document."
|
|
@@ -139,30 +92,5 @@
|
|
|
139
92
|
},
|
|
140
93
|
"required": [
|
|
141
94
|
"@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
|
-
}
|
|
95
|
+
]
|
|
168
96
|
}
|