@twin.org/standards-foaf 0.0.3-next.5 → 0.0.3-next.7
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 +6 -6
- 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/schemas/{Agent.json → FoafAgent.json} +5 -5
- package/dist/es/schemas/{Document.json → FoafDocument.json} +2 -2
- package/dist/es/schemas/{Group.json → FoafGroup.json} +7 -7
- package/dist/es/schemas/{Image.json → FoafImage.json} +3 -3
- package/dist/es/schemas/{Organization.json → FoafOrganization.json} +5 -5
- package/dist/es/schemas/{Person.json → FoafPerson.json} +8 -8
- package/dist/types/index.d.ts +7 -7
- package/dist/types/models/{IAgent.d.ts → IFoafAgent.d.ts} +6 -6
- package/dist/types/models/{IBaseObject.d.ts → IFoafBaseObject.d.ts} +3 -3
- package/dist/types/models/{IDocument.d.ts → IFoafDocument.d.ts} +2 -2
- package/dist/types/models/{IGroup.d.ts → IFoafGroup.d.ts} +3 -3
- package/dist/types/models/{IImage.d.ts → IFoafImage.d.ts} +3 -3
- package/dist/types/models/{IOrganization.d.ts → IFoafOrganization.d.ts} +2 -2
- package/dist/types/models/{IPerson.d.ts → IFoafPerson.d.ts} +5 -5
- package/docs/changelog.md +14 -0
- package/docs/reference/index.md +7 -7
- package/docs/reference/interfaces/{IAgent.md → IFoafAgent.md} +16 -16
- package/docs/reference/interfaces/{IBaseObject.md → IFoafBaseObject.md} +4 -4
- package/docs/reference/interfaces/{IDocument.md → IFoafDocument.md} +11 -11
- package/docs/reference/interfaces/{IGroup.md → IFoafGroup.md} +20 -20
- package/docs/reference/interfaces/{IImage.md → IFoafImage.md} +14 -14
- package/docs/reference/interfaces/{IOrganization.md → IFoafOrganization.md} +19 -19
- package/docs/reference/interfaces/{IPerson.md → IFoafPerson.md} +21 -21
- 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
|
@@ -4,12 +4,12 @@ import { DataTypeHandlerFactory } 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
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foafDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/foafDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,WAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"foafDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/foafDataTypes.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport type { JSONSchema7 } from \"json-schema\";\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.ContextRedirect);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(`${FoafContexts.TwinContext}/${FoafTypes.Agent}`, () => ({\n\t\t\tcontext: FoafContexts.TwinContext,\n\t\t\ttype: FoafTypes.Agent,\n\t\t\tdefaultValue: {},\n\t\t\tjsonSchema: async () => AgentSchema as JSONSchema7\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(`${FoafContexts.TwinContext}/${FoafTypes.Document}`, () => ({\n\t\t\tcontext: FoafContexts.TwinContext,\n\t\t\ttype: FoafTypes.Document,\n\t\t\tdefaultValue: {},\n\t\t\tjsonSchema: async () => DocumentSchema as JSONSchema7\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(`${FoafContexts.TwinContext}/${FoafTypes.Group}`, () => ({\n\t\t\tcontext: FoafContexts.TwinContext,\n\t\t\ttype: FoafTypes.Group,\n\t\t\tdefaultValue: {},\n\t\t\tjsonSchema: async () => GroupSchema as JSONSchema7\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(`${FoafContexts.TwinContext}/${FoafTypes.Image}`, () => ({\n\t\t\tcontext: FoafContexts.TwinContext,\n\t\t\ttype: FoafTypes.Image,\n\t\t\tdefaultValue: {},\n\t\t\tjsonSchema: async () => ImageSchema as JSONSchema7\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FoafContexts.TwinContext}/${FoafTypes.Organization}`,\n\t\t\t() => ({\n\t\t\t\tcontext: FoafContexts.TwinContext,\n\t\t\t\ttype: FoafTypes.Organization,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => OrganizationSchema as JSONSchema7\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(`${FoafContexts.TwinContext}/${FoafTypes.Person}`, () => ({\n\t\t\tcontext: FoafContexts.TwinContext,\n\t\t\ttype: FoafTypes.Person,\n\t\t\tdefaultValue: {},\n\t\t\tjsonSchema: async () => PersonSchema as JSONSchema7\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 } 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"]}
|
|
@@ -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 { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\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 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?: 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 } 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"]}
|
|
@@ -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 { 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"]}
|
|
@@ -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 } 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"]}
|
|
@@ -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 { 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"]}
|
|
@@ -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 { 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"]}
|
|
@@ -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/FoafAgent",
|
|
4
4
|
"description": "A FOAF Agent.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"description": "A homepage for some thing."
|
|
108
108
|
},
|
|
109
109
|
"depiction": {
|
|
110
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
110
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
111
111
|
"description": "A depiction of some thing."
|
|
112
112
|
},
|
|
113
113
|
"age": {
|
|
@@ -129,15 +129,15 @@
|
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
131
|
"weblog": {
|
|
132
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
132
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
133
133
|
"description": "A weblog of some thing (whether person, group, company etc.)."
|
|
134
134
|
},
|
|
135
135
|
"openid": {
|
|
136
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
136
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
137
137
|
"description": "An OpenID for an agent."
|
|
138
138
|
},
|
|
139
139
|
"interest": {
|
|
140
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
140
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
141
141
|
"description": "A page about a topic of interest to this person."
|
|
142
142
|
},
|
|
143
143
|
"topic_interest": {
|
|
@@ -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": {
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"description": "A homepage for some thing."
|
|
112
112
|
},
|
|
113
113
|
"depiction": {
|
|
114
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
114
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
115
115
|
"description": "A depiction of some thing."
|
|
116
116
|
},
|
|
117
117
|
"topic": {
|
|
@@ -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/FoafGroup",
|
|
4
4
|
"description": "A FOAF Group.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"description": "A homepage for some thing."
|
|
109
109
|
},
|
|
110
110
|
"depiction": {
|
|
111
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
111
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
112
112
|
"description": "A depiction of some thing."
|
|
113
113
|
},
|
|
114
114
|
"age": {
|
|
@@ -130,15 +130,15 @@
|
|
|
130
130
|
]
|
|
131
131
|
},
|
|
132
132
|
"weblog": {
|
|
133
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
133
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
134
134
|
"description": "A weblog of some thing (whether person, group, company etc.)."
|
|
135
135
|
},
|
|
136
136
|
"openid": {
|
|
137
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
137
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
138
138
|
"description": "An OpenID for an agent."
|
|
139
139
|
},
|
|
140
140
|
"interest": {
|
|
141
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
141
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
142
142
|
"description": "A page about a topic of interest to this person."
|
|
143
143
|
},
|
|
144
144
|
"topic_interest": {
|
|
@@ -149,12 +149,12 @@
|
|
|
149
149
|
"description": "Object or array data type",
|
|
150
150
|
"anyOf": [
|
|
151
151
|
{
|
|
152
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
152
|
+
"$ref": "https://schema.twindev.org/foaf/FoafAgent"
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
"type": "array",
|
|
156
156
|
"items": {
|
|
157
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
157
|
+
"$ref": "https://schema.twindev.org/foaf/FoafAgent"
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
]
|
|
@@ -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": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"description": "A homepage for some thing."
|
|
109
109
|
},
|
|
110
110
|
"depiction": {
|
|
111
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
111
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
112
112
|
"description": "A depiction of some thing."
|
|
113
113
|
},
|
|
114
114
|
"topic": {
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"description": "A thing depicted in this representation."
|
|
139
139
|
},
|
|
140
140
|
"thumbnail": {
|
|
141
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
141
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
142
142
|
"description": "A derived thumbnail image."
|
|
143
143
|
}
|
|
144
144
|
},
|
|
@@ -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": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"description": "A homepage for some thing."
|
|
109
109
|
},
|
|
110
110
|
"depiction": {
|
|
111
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
111
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
112
112
|
"description": "A depiction of some thing."
|
|
113
113
|
},
|
|
114
114
|
"age": {
|
|
@@ -130,15 +130,15 @@
|
|
|
130
130
|
]
|
|
131
131
|
},
|
|
132
132
|
"weblog": {
|
|
133
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
133
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
134
134
|
"description": "A weblog of some thing (whether person, group, company etc.)."
|
|
135
135
|
},
|
|
136
136
|
"openid": {
|
|
137
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
137
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
138
138
|
"description": "An OpenID for an agent."
|
|
139
139
|
},
|
|
140
140
|
"interest": {
|
|
141
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
141
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
142
142
|
"description": "A page about a topic of interest to this person."
|
|
143
143
|
},
|
|
144
144
|
"topic_interest": {
|
|
@@ -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": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"description": "A homepage for some thing."
|
|
109
109
|
},
|
|
110
110
|
"depiction": {
|
|
111
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
111
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
112
112
|
"description": "A depiction of some thing."
|
|
113
113
|
},
|
|
114
114
|
"age": {
|
|
@@ -130,15 +130,15 @@
|
|
|
130
130
|
]
|
|
131
131
|
},
|
|
132
132
|
"weblog": {
|
|
133
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
133
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
134
134
|
"description": "A weblog of some thing (whether person, group, company etc.)."
|
|
135
135
|
},
|
|
136
136
|
"openid": {
|
|
137
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
137
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
138
138
|
"description": "An OpenID for an agent."
|
|
139
139
|
},
|
|
140
140
|
"interest": {
|
|
141
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
141
|
+
"$ref": "https://schema.twindev.org/foaf/FoafDocument",
|
|
142
142
|
"description": "A page about a topic of interest to this person."
|
|
143
143
|
},
|
|
144
144
|
"topic_interest": {
|
|
@@ -157,18 +157,18 @@
|
|
|
157
157
|
"description": "Object or array data type",
|
|
158
158
|
"anyOf": [
|
|
159
159
|
{
|
|
160
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
160
|
+
"$ref": "https://schema.twindev.org/foaf/FoafAgent"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"type": "array",
|
|
164
164
|
"items": {
|
|
165
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
165
|
+
"$ref": "https://schema.twindev.org/foaf/FoafAgent"
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
170
|
"img": {
|
|
171
|
-
"$ref": "https://schema.twindev.org/foaf/
|
|
171
|
+
"$ref": "https://schema.twindev.org/foaf/FoafImage",
|
|
172
172
|
"description": "An image that can be used to represent some thing."
|
|
173
173
|
},
|
|
174
174
|
"nick": {
|
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";
|
|
@@ -2,13 +2,13 @@ import type { ObjectOrArray } from "@twin.org/core";
|
|
|
2
2
|
import type { IJsonLdNodeObject } 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,17 +31,17 @@ 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
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { FoafContextType } from "./foafContextType.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { IFoafImage } from "./IFoafImage.js";
|
|
4
4
|
/**
|
|
5
5
|
* Core FOAF Properties
|
|
6
6
|
* @see http://xmlns.com/foaf/0.1/
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface IFoafBaseObject extends IJsonLdNodeObject {
|
|
9
9
|
/**
|
|
10
10
|
* The LD Context.
|
|
11
11
|
*/
|
|
@@ -34,5 +34,5 @@ export interface IBaseObject extends IJsonLdNodeObject {
|
|
|
34
34
|
* A depiction of some thing.
|
|
35
35
|
* @see http://xmlns.com/foaf/spec/#term_depiction
|
|
36
36
|
*/
|
|
37
|
-
depiction?:
|
|
37
|
+
depiction?: IFoafImage;
|
|
38
38
|
}
|
|
@@ -2,12 +2,12 @@ import type { ObjectOrArray } from "@twin.org/core";
|
|
|
2
2
|
import type { IJsonLdNodeObject } 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 {
|
|
5
|
+
import type { IFoafBaseObject } from "./IFoafBaseObject.js";
|
|
6
6
|
/**
|
|
7
7
|
* A FOAF Document
|
|
8
8
|
* @see http://xmlns.com/foaf/0.1/
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface IFoafDocument extends IFoafBaseObject {
|
|
11
11
|
/**
|
|
12
12
|
* The LD Context.
|
|
13
13
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
2
|
import type { FoafContextType } from "./foafContextType.js";
|
|
3
3
|
import type { FoafTypes } from "./foafTypes.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { IFoafAgent } from "./IFoafAgent.js";
|
|
5
5
|
/**
|
|
6
6
|
* A FOAF Group.
|
|
7
7
|
* @see http://xmlns.com/foaf/0.1/
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface IFoafGroup extends IFoafAgent {
|
|
10
10
|
/**
|
|
11
11
|
* The LD Context.
|
|
12
12
|
*/
|
|
@@ -19,5 +19,5 @@ export interface IGroup extends IAgent {
|
|
|
19
19
|
* Indicates a member of a Group
|
|
20
20
|
* @see http://xmlns.com/foaf/spec/#term_member
|
|
21
21
|
*/
|
|
22
|
-
member?: ObjectOrArray<
|
|
22
|
+
member?: ObjectOrArray<IFoafAgent>;
|
|
23
23
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { FoafContextType } from "./foafContextType.js";
|
|
3
3
|
import type { FoafTypes } from "./foafTypes.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { IFoafDocument } from "./IFoafDocument.js";
|
|
5
5
|
/**
|
|
6
6
|
* A FOAF image.
|
|
7
7
|
* @see http://xmlns.com/foaf/0.1/
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface IFoafImage extends IFoafDocument {
|
|
10
10
|
/**
|
|
11
11
|
* The LD Context.
|
|
12
12
|
*
|
|
@@ -25,5 +25,5 @@ export interface IImage extends IDocument {
|
|
|
25
25
|
* A derived thumbnail image.
|
|
26
26
|
* @see http://xmlns.com/foaf/spec/#term_thumbnail
|
|
27
27
|
*/
|
|
28
|
-
thumbnail?:
|
|
28
|
+
thumbnail?: IFoafImage;
|
|
29
29
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { FoafContextType } from "./foafContextType.js";
|
|
2
2
|
import type { FoafTypes } from "./foafTypes.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { IFoafAgent } from "./IFoafAgent.js";
|
|
4
4
|
/**
|
|
5
5
|
* A FOAF Organization.
|
|
6
6
|
* @see http://xmlns.com/foaf/0.1/
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface IFoafOrganization extends IFoafAgent {
|
|
9
9
|
/**
|
|
10
10
|
* The LD Context.
|
|
11
11
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
2
|
import type { FoafContextType } from "./foafContextType.js";
|
|
3
3
|
import type { FoafTypes } from "./foafTypes.js";
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
4
|
+
import type { IFoafAgent } from "./IFoafAgent.js";
|
|
5
|
+
import type { IFoafImage } from "./IFoafImage.js";
|
|
6
6
|
/**
|
|
7
7
|
* A FOAF Person.
|
|
8
8
|
* @see http://xmlns.com/foaf/0.1/
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface IFoafPerson extends IFoafAgent {
|
|
11
11
|
/**
|
|
12
12
|
* The LD Context.
|
|
13
13
|
*/
|
|
@@ -30,12 +30,12 @@ export interface IPerson extends IAgent {
|
|
|
30
30
|
* A person known by this person (indicating some level of reciprocated interaction between the parties).
|
|
31
31
|
* @see http://xmlns.com/foaf/spec/#term_knows
|
|
32
32
|
*/
|
|
33
|
-
knows?: ObjectOrArray<
|
|
33
|
+
knows?: ObjectOrArray<IFoafAgent>;
|
|
34
34
|
/**
|
|
35
35
|
* An image that can be used to represent some thing.
|
|
36
36
|
* @see http://xmlns.com/foaf/spec/#term_img
|
|
37
37
|
*/
|
|
38
|
-
img?:
|
|
38
|
+
img?: IFoafImage;
|
|
39
39
|
/**
|
|
40
40
|
* A short informal nickname characterizing an agent (includes login identifiers, IRC and other chat nicknames).
|
|
41
41
|
* @see http://xmlns.com/foaf/spec/#term_nick
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.7](https://github.com/twinfoundation/standards/compare/standards-foaf-v0.0.3-next.6...standards-foaf-v0.0.3-next.7) (2026-01-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update type names ([#89](https://github.com/twinfoundation/standards/issues/89)) ([6fdef47](https://github.com/twinfoundation/standards/commit/6fdef4792151f89d1a95a07da8309d05a7b6de3d))
|
|
9
|
+
|
|
10
|
+
## [0.0.3-next.6](https://github.com/twinfoundation/standards/compare/standards-foaf-v0.0.3-next.5...standards-foaf-v0.0.3-next.6) (2025-12-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* **standards-foaf:** Synchronize repo versions
|
|
16
|
+
|
|
3
17
|
## [0.0.3-next.5](https://github.com/twinfoundation/standards/compare/standards-foaf-v0.0.3-next.4...standards-foaf-v0.0.3-next.5) (2025-11-28)
|
|
4
18
|
|
|
5
19
|
|
package/docs/reference/index.md
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
## Interfaces
|
|
8
8
|
|
|
9
|
-
- [
|
|
10
|
-
- [
|
|
11
|
-
- [
|
|
12
|
-
- [
|
|
13
|
-
- [
|
|
14
|
-
- [
|
|
15
|
-
- [
|
|
9
|
+
- [IFoafAgent](interfaces/IFoafAgent.md)
|
|
10
|
+
- [IFoafBaseObject](interfaces/IFoafBaseObject.md)
|
|
11
|
+
- [IFoafDocument](interfaces/IFoafDocument.md)
|
|
12
|
+
- [IFoafGroup](interfaces/IFoafGroup.md)
|
|
13
|
+
- [IFoafImage](interfaces/IFoafImage.md)
|
|
14
|
+
- [IFoafOrganization](interfaces/IFoafOrganization.md)
|
|
15
|
+
- [IFoafPerson](interfaces/IFoafPerson.md)
|
|
16
16
|
|
|
17
17
|
## Type Aliases
|
|
18
18
|
|